LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-29-2004, 03:12 PM   #1
logi
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
Grub bootable CD


Hello, I have been looking around searching and not found anything yet. I probably missed it, but I already can do a bootable lilo cd. But I can't find anything on how to make a bootable grub cd. Could someone either tell me or point me in the direction I need. I already looked at linux-live.org but not what I need. I wanted to make a bootable grub cd.

Is this possible

Thanks

logi
 
Old 01-29-2004, 03:33 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Grub Boot Floppy

Now that site tells you how to make a boot floppy, so instead of doing that to a floppy drive, do it to a file and use that file as a boot image to include when you do a mkisofs.

Last edited by jtshaw; 01-29-2004 at 03:34 PM.
 
Old 01-29-2004, 03:43 PM   #3
logi
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the help, but this seems to want to write to the first and second block of the floppy disk. Can't wirte this to a dir or file. Unless I am missing something here.

Thanks

Logi
 
Old 01-29-2004, 04:00 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
oh, duh, good point What you need to do is build an image with those two files sandwiched together. I didnt' read the dd statements carefully enough.
 
Old 01-29-2004, 04:59 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
I found some place on the web with instructions on how to make a grub boot floppy. Can't remember where though.
Anywho, I used those notes and some notes on making a bootable cdrom from a Windows boot floppy I just used the grub floppy instead and it worked!!

Here are my notes.....

1. Creat the Grub boot floppy

This gives you the boot menu just like it was installed on the hard drive.

fdformat /dev/fd0
mke2fs m 0 /dev/fd0
mount -t ext2 /dev/fd0 /mnt/floppy
mkdir -p /mnt/floppy/boot/grub
cp -pa /boot/grub/* /mnt/floppy/boot/grub
umount /mnt/floppy


Create a text file called /home/stuff and add these lines to that file
##
root (fd0)
#the following is all one line
install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 0x8000 p (fd0)/boot/grub/menu.lst
#
quit


Install grub to the floppy disk with this command:

grep -v ^# /home/stuff | grub --batch


2. Create Grub Boot CD from that floppy

Make a directory and cd into that directory.

Copy the entire boot disk to a file
dd if=/dev/fd0 of=boot.img bs=10k count=144

Make the iso image with boot.img ( and boot.cat if you have one )
mkisofs -r -b boot.img -c boot.cat -o bootcd.iso .

Make the bootable cd
cdrecord -v speed=4 dev=0,0,0 -data bootcd.iso
 
Old 04-04-2007, 06:45 PM   #6
andrewstr
Member
 
Registered: Oct 2003
Location: WA--USA
Distribution: Red Hat 9, Suse 10.2
Posts: 144

Rep: Reputation: 15
Here are the official instructions to create a Grub CD:

http://www.gnu.org/software/grub/man...le-CD-ROM.html
 
Old 05-04-2008, 02:48 AM   #7
noranthon
Member
 
Registered: Apr 2006
Location: Australia
Distribution: PCLinuxOS with Xfce
Posts: 301

Rep: Reputation: 30
I tried following those instructions. There must be a trick to running the script in a particular location. I ran the following:

Code:
mkisofs -R -b ./boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o ./grub.iso iso
I got this error:

Quote:
Originally Posted by error
I: -input-charset not specified, using iso-8859-1 (detected in locale settings)
genisoimage: No such file or directory. Invalid node - 'iso'.
 
Old 05-04-2008, 07:12 AM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
If you want to make the iso image directly without making a floppy, you could try this...
Code:
cd /home
mkdir -p iso/boot/grub
cp /boot/grub/grub.conf /home/iso/boot/grub
cp /boot/grub/stage* /home/iso/boot/grub
cp /boot/grub/iso9660_stage1_5 /home/iso/boot/grub
mkisofs -R -b boot/grub/iso9660_stage1_5 -no-emul-boot \
-boot-load-size 4 -boot-info-table -o grub.iso iso
 
Old 05-04-2008, 11:29 PM   #9
noranthon
Member
 
Registered: Apr 2006
Location: Australia
Distribution: PCLinuxOS with Xfce
Posts: 301

Rep: Reputation: 30
I eventually succeeded after change the word 'iso' at the end to /mnt/iso I had put the iso directory in the mnt folder.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of Bootable OS's Grub can handle trinkett42 Linux - Software 10 09-21-2005 04:00 PM
M$ Windows XP bootable CD and GRUB . I cannot start debian. zvonSully Debian 5 04-01-2005 08:36 AM
Reinstalling grub without Linux and without available bootable FD and CD Yoko Linux - Laptop and Netbook 3 01-18-2005 05:02 PM
grub not alowing bootable cd's atapi103 Linux - Newbie 2 04-14-2004 11:46 PM
Installing Slackware with non-bootable CD or bootable floppy (but not both) TiddlyPom Slackware 2 03-22-2004 04:15 PM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration