make bootable grub hd image
Posted: Tue May 29, 2018 10:53 pm
I'm trying to create a hd image with my own bootable os.
I have the following files:
I'm able to create a working bootable iso file with this:
now, I want to create a hard disk image instead of an iso file. I didn't find a way to convert an iso to a fat32 hd image, so thought about
using grub-mkimage. However, I couldn't make it work.
I've tried the following with no luck, any help very much appreciated
thanks for reading!
EDIT: there's one more requirement, I'd like to be able to avoid needing sudo, that's why I'm not trying mounting a loopback device.
I have the following files:
Code: Select all
build/iso/
- os.kernel
- boot/grub/grub.cfg
- a few extra files
Code: Select all
grub-mkrescue -o build/nopsys.iso build/iso
using grub-mkimage. However, I couldn't make it work.
I've tried the following with no luck, any help very much appreciated
Code: Select all
grub-mkimage -p build/iso -o build/nopsys.raw -O i386-pc fat
EDIT: there's one more requirement, I'd like to be able to avoid needing sudo, that's why I'm not trying mounting a loopback device.