Thread: [ubuntu] grub2
View Single Post
Old March 13th, 2009   #4
Herman
Ubuntu addict and loving it
 
Herman's Avatar
 
Join Date: Jul 2005
Location: Hughenden, Australia
Beans: 4,258
Ubuntu 9.04 Jaunty Jackalope
Re: grub2

When upgrading from GNU GRUB 0.97 to GRUB2 (or currently 1.96), if your existing /boot/grub/menu.lst file has the uuid command which replaced the root command, you need to revert to the root command.

You need to open your /boot/grub/menu/lst file as 'root' (administrator), with this command,
Code:
gksudo gedit /boot/grub/menu.lst
Then you need to edit the file and save the changes before closing.
For example, change this:
Code:
title    Ubuntu, kernel 2.6.20-15-generic
uuid     fe7bf845-7ce9-4733-b6de-f70f2b62076d
kernel   /boot/vmlinuz-2.6.20-15-generic root=UUID=fe7bf845-7ce9-4733-b6de-f70f2b62076d ro quiet splash
initrd   /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
to this:
Code:
title    Ubuntu, kernel 2.6.20-15-generic
root     (hd0,1)   # or alter for whatever hard disk and partition number you have
kernel   /boot/vmlinuz-2.6.20-15-generic root=UUID=fe7bf845-7ce9-4733-b6de-f70f2b62076d ro quiet splash
initrd   /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
Where: '(hd0,1) is the applicable hard disk and partition number in GRUB terms for your Ubuntu partition.
If you're not sure, run 'sudo fdisk -lu', or open Gnome Partition Editor from your Ubuntu Live CD and take a look.
You will see your Ubuntu partition described with a number like '/dev/sda2' or similar.
You can convert that to GRUB terms by looking here, A Quick Guide to GRUB's Numbering System.

Last edited by Herman; March 13th, 2009 at 04:32 AM..
Herman is offline   Reply With Quote