LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-25-2009, 05:09 PM   #1
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Kubuntu, Mint
Posts: 402

Rep: Reputation: 31
Grub CD and extended partitions


I made a Grub CD which I intended to use to access various linux OS spread over different partitions (including extended) in the event of a failed MBR or missing Grub on a newly installed OS.

If I interrupt my hard drive MBR Grub, to go to command mode, the "find /boot/vmlinuz" finds vmlinuz on all partitions (including extended) on two drives.

If I interrupt the Grub on the CD, the command "find vmlinuz" cannot find vmlinuz on extended partitions or second drives.

Is this normal? How can you overcome the problem?
 
Old 05-25-2009, 05:14 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
How did you make the grub cd?
 
Old 05-25-2009, 07:37 PM   #3
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Kubuntu, Mint
Posts: 402

Original Poster
Rep: Reputation: 31
It was some time ago, and here is the fomular i used.

To make grub floppy:

# cd /usr/share/grub/i386-pc
# dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
# dd if=stage2 of=/dev/fd0 bs=512 seek=1
153+1 records in
153+1 records out
#


To make a bootable CD-ROM image, first, make a top directory for the bootable image, say, `iso': $ mkdir iso

Make a directory for GRUB: $ mkdir -p iso/boot/grub

Copy the file `stage2_eltorito': $ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub

If desired, make the config file `menu.lst' under `iso/boot/grub' (*note Configuration:, and copy any files and directories for the disc to the directory `iso/'.

Finally, make a ISO9660 image file like this: $ mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \ -boot-load-size 4 -boot-info-table -o grub.iso iso

There must be a better way to make the CD now(?).
 
  


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
Extended partitions? vigneshsubha General 4 02-27-2008 08:47 PM
Extended partitions? Location of partitions? General Linux - Hardware 13 05-03-2006 02:01 PM
extended partitions pixellany Linux - General 4 03-28-2006 02:05 PM
fstab extended partitions Chrax Slackware 2 01-03-2005 06:19 PM
What can extended partitions be used for? imemyself Linux - Hardware 4 02-29-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration