OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Jan 28, 2021 9:07 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Getting grub-mkrescue to use a different filesystem
PostPosted: Wed Jan 27, 2021 6:51 am 
Offline
Member
Member

Joined: Fri Jan 26, 2018 11:43 am
Posts: 47
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:
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?


Top
 Profile  
 
 Post subject: Re: Getting grub-mkrescue to use a different filesystem
PostPosted: Wed Jan 27, 2021 6:58 am 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 463
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.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: Getting grub-mkrescue to use a different filesystem
PostPosted: Wed Jan 27, 2021 7:02 am 
Offline
Member
Member

Joined: Fri Jan 26, 2018 11:43 am
Posts: 47
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 :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group