GRUB error: unknown filesystem when loading from USB flash d

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

GRUB error: unknown filesystem when loading from USB flash d

Post by osdever »

May, 31th my HDD was broken, and i'm lost all my OS srcs. But i haved backups, but no compiler is been with me. I'm downloaded i686-elf-gcc, but it doesn't contained C++ compiler. So, i'm started rewriting my OS from scratch. But i'm don't have grub-mkrescue and xorriso. I'm compiled and linked my OS and put os365.bin to ISO file, replacing old file. I'm copied iso file to USB flash drive using dd, but when i booting from USB flash, it shows me that:

Code: Select all

GRUB error: unknown filesystem.
Entering rescue mode...
grub rescue>
Is copying os365.bin to iso file caused that?
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: GRUB error: unknown filesystem when loading from USB fla

Post by Combuster »

An ISO file contains a filesystem that is read-only by design. The same filesystem is also designed exclusively for CDs by design. Therefore, both trying to modify an existing one and trying to put one on something that is not a CD are wrong by default.

You also seem to be incapable of explaining how and why you are trying this, and therefore I can't grant you any exceptions to the above rule. Start from the beginning, drop anything ISO-related, and treat your flash drive as any other harddisk that's (supposed to) have partitions.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: GRUB error: unknown filesystem when loading from USB fla

Post by osdever »

OK, thank you. But please give me grub-mkrescue & xorriso binaries (with all libraries) for x86. I can't install them from any packet system, because my internet is very bad (i'm in a village now).
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: GRUB error: unknown filesystem when loading from USB fla

Post by Combuster »

drop anything ISO-related
please give me (...) xorriso
](*,)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Octocontrabass
Member
Member
Posts: 5588
Joined: Mon Mar 25, 2013 7:01 pm

Re: GRUB error: unknown filesystem when loading from USB fla

Post by Octocontrabass »

Combuster wrote: ](*,)
catnikita255 wrote:grub-mkrescue
A hybrid ISO is one situation where putting an ISO-9660 filesystem on a flash drive makes sense.
catnikita255 wrote:I can't install them from any packet system, because my internet is very bad (i'm in a village now).
You can manually download the packages and use your package manager to install them offline. For example, if you are using Ubuntu, you can find the packages you need here.
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: GRUB error: unknown filesystem when loading from USB fla

Post by osdever »

Combuster wrote:
drop anything ISO-related
please give me (...) xorriso
](*,)
Ok, but is i need to copy all contents of my iso to USB flash drive and just do grub-install /dev/sxx on it?
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Post Reply