LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to I make a bootable CD that contains grub2? (https://www.linuxquestions.org/questions/linux-general-1/how-to-i-make-a-bootable-cd-that-contains-grub2-766336/)

Mountain 11-02-2009 05:43 PM

How to I make a bootable CD that contains grub2?
 
If I'm running legacy grub now, how do I make a boot CD with grub2?

I can't use the tips I have found so far because my running system is using legacy grub.
See this link:
http://www.justlinux.com/forum/showthread.php?t=152790

That's good info, but it seems to require that you already been booted up with grub2 active. I don't want to touch my existing HDD. I just want to make a grub2 bootable CD.

linus72 11-02-2009 05:52 PM

seems you can use Ubuntu 9.10 livecd to make either rescue floppy or cd...

Quote:

May be there is a better way but I used a Grub2 floppy or a Grub2 CD. Each can only be made from a Live CD that has been shipped with Grub2, like Ubuntu 9.10. All you need to do is to boot up such a Linux Live CD, get into a root terminal, put a floppy into the drive and issue the following commands (originated from FranklinPiat/grub-mkrescue.manpage - GRUB Wiki)
Code:

grub-mkrescue --image-type=floppy /tmp/grub-rescue.flp
dd if=/tmp/grub-rescue.flp of=/dev/fd0 bs=1024

Basically the grub-mkrescue copies Grub2 image into the specified file and you use the dd command to write the same onto a floppy. For a bootable Grub2 CD the instructions are
Code:

grub-mkrescue --image-type=cdrom /tmp/grub-rescue.iso
wodim /tmp/grub-rescue.iso
that what you mean?

Mountain 11-02-2009 06:30 PM

Thank you. Yes, that's what I had in mind. I was hoping to not have to download a Ubuntu LiveCD. I thought maybe there was something like Super Grub Disk for Grub2. But I will give the LiveCD method a try. That seems like the only choice for now, and it should accomplish what I had in mind. Thanks.

Paul G. 08-06-2010 01:28 AM

Quote:

Originally Posted by Mountain (Post 3741934)
Thank you. Yes, that's what I had in mind. I was hoping to not have to download a Ubuntu LiveCD. I thought maybe there was something like Super Grub Disk for Grub2. But I will give the LiveCD method a try. That seems like the only choice for now, and it should accomplish what I had in mind. Thanks.

You could also use Synaptic to install grub-rescue-pc which contains an ISO image [grub-rescue-cdrom.iso] that you burn to CD to create a bootable CD from. This is only 850.0 KB so it is not a large download. You could keep this image on a USB flash drive and boot it from there. For really old machines there is also an image [grub-rescue-floppy.img] to write to a floppy disk, being only 1.4 MB in size.

Both will boot you into a grub command-line environment with all the tools you need to repair a GRUB-PC installation.

Other links : --

http://www.gnu.org/software/grub/gru...tation.en.html

GRUB 2 bootloader - Full tutorial

Paul


All times are GMT -5. The time now is 05:52 PM.