Page 1 of 1

Filesystem when GRUB is used to create an ISO file

Posted: Thu Apr 06, 2017 3:23 pm
by adamfc2000
I have been using GRUB's mkrescue to create ISO images from my compiled source files. I'm now at the point of developing my OS where I want to move into looking at reading/writing to the hard disk, but I do not know what filesystem is created by GRUB's mkrescue on the ISO image.

To be specific, I am using the command:

Code: Select all

grub-mkrescue -o os.iso sysrooot
Where os.iso is the name of the output ISO file and sysroot is the name of the root directory of my OS.

Any help would be appreciated.

Re: Filesystem when GRUB is used to create an ISO file

Posted: Thu Apr 06, 2017 5:35 pm
by heat
I think it uses ISO9660(not sure). Anyway, if you want to read from a hard disk, you can't read from an ISO(they're supposed to be CD-ROMs, not hard drives).

Re: Filesystem when GRUB is used to create an ISO file

Posted: Tue Apr 11, 2017 4:59 am
by ThisMayWork
As heat stated, the ISO file produced by mk-rescue is an image of a CD-ROM. Reading from the hard disk(s) is an entirely different topic. I suggest developing in an emulator/virtualization software, so that you can attach a "virtual" hard disk containing any (or even none) filesystem you want. Then you can start developing your driver.