Filesystem when GRUB is used to create an ISO file

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
adamfc2000
Posts: 6
Joined: Thu Apr 06, 2017 2:59 pm

Filesystem when GRUB is used to create an ISO file

Post 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.
heat
Member
Member
Posts: 103
Joined: Sat Mar 28, 2015 11:23 am
Libera.chat IRC: heat

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

Post 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).
If some of you people keep insisting on having backwards compatibitity with the stone age, we'll have stone tools forever.
My Hobby OS: https://github.com/heatd/Onyx
User avatar
ThisMayWork
Member
Member
Posts: 65
Joined: Sat Mar 22, 2014 1:14 pm
Location: /bin

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

Post 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.
"Programming is an art form that fights back."
-Kudzu
Post Reply