LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2009, 02:46 PM   #1
geno1234
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
update-grub question


How do I get update-grub to scan an entire drive to look for changes (rather than just scanntng the partition in which its distro is located)?

geno
 
Old 07-17-2009, 03:41 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by geno1234 View Post
How do I get update-grub to scan an entire drive to look for changes (rather than just scanntng the partition in which its distro is located)?

geno
What do you exactly mean by this ?
During install GrUB automaticly scans for other distro.
If you install a other distro the menu.lst of the new one is up to date
Some distro also gives the option after install to update the boot loader
automaticly , but updating manually is always possible
 
Old 07-18-2009, 11:51 AM   #3
geno1234
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Original Poster
Rep: Reputation: 0
ronlau9,

The question arose in connection with this article:

http://www.brighthub.com/computing/l...les/36648.aspx

Obviously I want to avoid the grub-on-grub-on-grub phenomenon each time I add a distro to my system. Now I pull out the Windows disk, run fixmbr destroying grub, and then let the new distro install grub afresh in the MBR. There must be a tidier non-arduous way to update the boot menu in the MBR!

geno
 
Old 07-18-2009, 12:43 PM   #4
nmanx62
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
update-grub question

when you install each distro, after you create your partition, the next page presents options for the boot loaders... simply indicate on that page which partition is going to have the grub, and the install should recognize the other partitions and properly load one grub.conf file with all your linux options.
This should work, shouldn't it?

Last edited by nmanx62; 07-18-2009 at 12:44 PM. Reason: grammar/spelling
 
Old 07-18-2009, 02:14 PM   #5
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by geno1234 View Post
ronlau9,

The question arose in connection with this article:

http://www.brighthub.com/computing/l...les/36648.aspx

Obviously I want to avoid the grub-on-grub-on-grub phenomenon each time I add a distro to my system. Now I pull out the Windows disk, run fixmbr destroying grub, and then let the new distro install grub afresh in the MBR. There must be a tidier non-arduous way to update the boot menu in the MBR!

geno
Let assume you like to install 4 linux distros
You have divided you're hard disk in 4 partitions
Let start which the distro in the last namely partition 4 install it over there and write GRUB in boot sector of partition 4 .
We do the same with partition 3 and partition 2
The distro in partition 1 we write GRUB in MBR
Normally the last distro is aware of the other distros in partition 2 up to four and updated its menu.lst or whatever it use to boot the other distros
In the menu.lst you will find all the installed distro
If this is going wrong for one reason or they other , we can always add it manually.
How exactly depends on the linux flavour in qeustion
MBR is only 512 bytes so you're menu.lst is not there.
You will find it in /boot/GRUB/menu.lst

But this only one way to do a multi boot there other ways to accomplish it.
I hope this make it somewhat clear how to do it

Last edited by ronlau9; 07-18-2009 at 02:17 PM.
 
Old 07-18-2009, 02:21 PM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
The easiest way I have found for adding and changing distros is by chainloading but as ronlau9 said there are three or four different ways.
 
Old 07-18-2009, 07:53 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,033

Rep: Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912
update-grub is not a part of grub - it is an added wrapper. Most notably on Debian derived distros - it is not shipped on all distros. Consequently, it is not run if you re-run grub-install - which *is* part of the grub project.
Being a script you are free to peruse and adapt update-grub should you feel the desire.

The running around finding other distros on your system is done by the distro installer, not grub (installer) or update-grub.
 
Old 07-18-2009, 09:32 PM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by syg00 View Post
update-grub is not a part of grub - it is an added wrapper. Most notably on Debian derived distros - it is not shipped on all distros. Consequently, it is not run if you re-run grub-install - which *is* part of the grub project.
Being a script you are free to peruse and adapt update-grub should you feel the desire.
If I remember right you need to build your own menu.lst when installing grub without the aid of a distro.
 
  


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
Grub re-written following update [Kubuntu] sehku17 Ubuntu 6 05-11-2008 12:07 PM
New GRUB worry after Update matrim Fedora 9 08-02-2005 02:13 PM
Grub update for 0.94? rusty_slacker Linux - Newbie 5 11-22-2004 02:04 PM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 08:16 AM
Update grub during rh install BBehemoth Linux - Software 11 07-19-2003 01:51 PM


All times are GMT -5. The time now is 07:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration