i made a GRUB image without a floppy ...
Posted: Wed Feb 04, 2004 7:49 am
for all who wonder how they will OS'dev on their floppyless laptop/imac/pda/whatever, here is *one* solution ...
1. have GRUB tools installed on your host system (this should come with /usr/sbin/grub and the stage1, stage2, etc. files ... )
I had my own stage1, etc. files from an archive named grub-0.92-i386-pc.tar.gz
2. create an empty file of 1.44MB with
3. become super-user and
4. create looppoint/boot/grub and copy all the files under your reference /boot/grub there ...
5. umount the looppoint
6. create a 'fake-device.map' file in which you will tell
7. invoke '/usr/sbin/grub --device-map=fake-device.map'
8. once in the GRUB shell, issue the following commands:
and voil?! your grubfd.img should now be bootable under bochs or any other PC emulator
let me know if it works for you ...
1. have GRUB tools installed on your host system (this should come with /usr/sbin/grub and the stage1, stage2, etc. files ... )
I had my own stage1, etc. files from an archive named grub-0.92-i386-pc.tar.gz
2. create an empty file of 1.44MB with
Code: Select all
head --bytes=1474560 /dev/zero > grubfd.img
mkdir looppoint
Code: Select all
mke2fs grubfd.img
mount grubfd.img looppoint/ -o loop -t ext2
5. umount the looppoint
6. create a 'fake-device.map' file in which you will tell
Code: Select all
(fd0) /dev/loop3
8. once in the GRUB shell, issue the following commands:
Code: Select all
device (fd0) grubfd.img
root (fd0)
setup (fd0)
quit
let me know if it works for you ...