Getting grub-mkrescue to use a different filesystem

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
j4cobgarby
Member
Member
Posts: 64
Joined: Fri Jan 26, 2018 11:43 am

Getting grub-mkrescue to use a different filesystem

Post 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?
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Getting grub-mkrescue to use a different filesystem

Post 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.
j4cobgarby
Member
Member
Posts: 64
Joined: Fri Jan 26, 2018 11:43 am

Re: Getting grub-mkrescue to use a different filesystem

Post 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 :)
Post Reply