Multiple grub menu.lst?

NoOp glgxg at sbcglobal.net
Sun May 4 01:45:37 UTC 2008


On 05/03/2008 03:33 PM, Rashkae wrote:
> NoOp wrote:
>> On 05/03/2008 02:32 PM, Charlie Zender wrote:
>> 
>>> zender at virga:~$ sudo fuser /boot
>>> sudo: unable to resolve host virga
>>> zender at virga:~$
>> 
>> Resolve the host first:
>> 
>> gksu gedit /etc/hosts
>> 
>> Now edit:
>> 
>> 127.0.0.1 localhost virga
>> 127.0.1.1 virga
>> 
>> save. And then:
>> 
>> sudo /etc/init.d/networking restart
>> 
>> Now try your commands and they should work.
>> 
>> Now, from a terminal do as Aart suggests:
>> 
>> sudo update-grub
>> 
>> And if you still have problems:
>> 
>> sudo grub
>> grub> find /boot/grub/stage1
>> grub> quit
>> 
>> "grub>" is the internal grub prompt, you don't type that in.
>> 
>> Note the location that find '/boot/grub/stage1' returns then quit. It
>> should look something like this:
>> 
>> grub> find /boot/grub/stage1
>>  (hd0,0)
>> 
>> Post the results of that *and* the results of:
>> 
>> sudo fdisk -l
> 
> You are overlooking the OP's real problem, but maybe you can help here
> where I fail.
> 
> The problem is that he has his root file system on LVM, and is unable to
> mount his boot partition, which was therefore never updated with new
> kernels and menu.lst.  If you can solve the issue of /boot not mounting
> (see previous messages for details) grub will be snap to fix.
> 

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          31      248976   83  Linux
/dev/sda2              32       11978    95964277+   5  Extended
/dev/sda5              32       11978    95964246   8e  Linux LVM

I _think_ he needs to tell grub where the new root is (hd0,0).

grub> find /boot/grub/stage1

Should tell him where is grub is currently located and pointing to.
After that he then should be able to tell grub where root is located.
Perhaps the easiest would be to set it up on hd0,0?

sudo grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

sudo update-grub

Also there have been problems with the kernels not being updated, so it
might not be a bad idea to update all of the initramfs':

sudo update-initramfs -c -k all







More information about the ubuntu-users mailing list