grub, 2nd install, issues...

Markus Kolb ubuntu-ml at
Sun Sep 26 12:38:42 UTC 2004

On 25.09.2004 23:12, Tom Hilbert schrieb:
> I used a windows partition tool to resize my c:  partition, gaining
> about 12gb in space.
> I then created a new ext3 partition and when I rebooted Grub would not
> work anymore.
> I then re-install ubuntu to the new partition which is now hda7.  How
> can I boot my old ubuntu from this grub??  I would like to avoid
> losing all my settings and what not.!!
> Thanks

Hello Tom,

I am not sure if I understand your situation but I think all you have to 
do is to change the root entry in /boot/grub/menu.lst.
To boot the first time Ubuntu you can edit the Grub menu before booting 
up. Enter the menu, choose the right entry and press "e" for edit. Then 
you can edit the menu.lst line for this entry.
Change root=... behind the kernel entry to root=/dev/hda7.
The root line for Grub you must change to (hd0,6).
Exit edit mode but do not exit the choosen entry (or your changes will 
be lost again) and press "b" for boot.
This new entries are for root- and boot on the same partition (hda7 or 
If you have a 2nd boot partition you have to change (hd0,6) to maybe 
(hd0,5) which would be /dev/hda6.
When in system you have to edit the following part in 
/boot/grub/menu.lst and run update-grub as root afterwards.

## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda10 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,9)


More information about the ubuntu-users mailing list