Page 1 of 1

Getting grub-mkrescue to use a different filesystem

Posted: Wed Jan 27, 2021 6:51 am
by j4cobgarby
I've got to the stage in my operating system where I want to start reading executables from a disk for the OS to run as processes. So, I checked what sort of filesystem grub-mkrescue created when I made my operating system .iso file, and it said this:

Code: Select all

build/octos.iso: ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'ISOIMAGE' (bootable)
So, okay, I could write an ISO 9660 filesystem driver, but I've already written a FAT12 and FAT16 driver, which I'm testing by reading and writing files off a different drive (so, I have bochs loading two separate drives, one for the grub-mkrescue generated iso, and one for a fat-12 formatted drive). I would instead like to allow the user to just need one drive to load the operating system and all user files off, so, is there any way to make grub-mkrescue create a FAT formatted filesystem instead of an ISO9660 one?

Re: Getting grub-mkrescue to use a different filesystem

Posted: Wed Jan 27, 2021 6:58 am
by kzinti
There seem to be some instructions on how to do just that here: https://wiki.osdev.org/GRUB.

Look for the "Disk image instructions" that shows you how to build a disk image with Grub and a FAT32 partition.

Re: Getting grub-mkrescue to use a different filesystem

Posted: Wed Jan 27, 2021 7:02 am
by j4cobgarby
kzinti wrote:There seem to be some instructions on how to do just that here: https://wiki.osdev.org/GRUB.

Look for the "Disk image instructions" that shows you how to build a disk image with Grub and a FAT32 partition.
Thank you :)