[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CD not found in grub2

From: Dominique Goncalves
Subject: CD not found in grub2
Date: Sun, 10 Dec 2006 12:39:59 +0100


I'd like to test the grub2.
My goal is to put grub2 on a livecd and be able to choose between boot
FreeBSD or memtest.

So far, I've made a floppy image but qemu (qemu -bood a -fda
/tmp/floppy.img  -cdrom livecd.iso) don't find a cd device.
I also tried to boot this floppy image on my computer without success.
(chainload (<tab> only shows fd0 or hd0)

Step used to create floppy image on FreeBSD:

dd if=/dev/zero of=/tmp/floppy.img count=1440 bs=1024 skip=1440

/tmp/install/bin/grub-mkimage -v -o /tmp/core.img _chain fat iso9660

newfs_msdos -f 1440 /tmp/floppy.img
sudo mdconfig -a -t vnode -f /tmp/floppy.img
sudo mount_msdosfs /dev/md0 /mnt
cd /mnt
sudo mkdir -p /mnt/boot/grub
sudo cp /tmp/core.img boot/grub
sudo cp /tmp/install/lib/grub/i386-pc/boot.img boot/grub
sudo cp /tmp/install/lib/grub/i386-pc/*.mod boot/grub
sudo cp ~/tmp/grub2/grub.cfg boot/grub
echo '(fd0)' /tmp/floppy.img > /tmp/
sudo /tmp/install/sbin/grub-setup -d /mnt/boot/grub -v -r '(fd0)' -m
/tmp/ '(fd0)'
rm /tmp/
sudo umount /mnt/
sudo mdconfig -d -u 0

By the way, on the wiki there is only an example for creating a floppy image.
What do I need to create a CD-rom image?

Any help is appreciated, thanks.


There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]