Hello,
I decided to delete a partition last night which had nothing to do with my Ubuntu 10.4 installation. When I restarted my PC, GRUB wouldn't load. It just had
[code]error 17: unknown filesystem.
>grub rescue [/code]
I thought, okay, I'll boot from a LiveCD, but I tried all different commands on terminal which led to no avail. To try and resolve GRUB, I installed another copy of Ubuntu on the partition which I cleared (was 50GB free space) and restarted. When the GRUB menu came up, I could see my old Ubuntu there, so I booted into that (which I am now typing from).
The question is: How would I go around deleting the newer Ubuntu in GRUB so that I can just go to this one I'm using now without cocking up again?
(BTW I have Windows 7 installed also on a now triple-boot system)
This is relevent to my interests.
[code]gksudo gedit /boot/grub/menu.lst[/code]
Example :
[code]
## ## End Default Options ##
title Ubuntu, kernel 2.6.15-27-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
savedefault
boot
title Ubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.15-27-386
boot
title Ubuntu, kernel 2.6.15-26-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot
title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot
[b]
title Ubuntu, kernel 2.6.15-26-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot
title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot
[/b]
title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1[/code]
Delete the bolded part. And be careful.
[editline]06:18PM[/editline]
Find on which partition your newer ubuntu was installed (i.e. hd(0,2), hd(0,1) or whatever) and remove the lines parsing to this partition
[editline]06:20PM[/editline]
in hd(x,y) x is the hard drive number (hda, hdb,hdc in ubuntu) and y is the logical partition number. hd(0,1) means [i]The second partition on the primary HDD[/i]
[editline]06:21PM[/editline]
Well, post your menu.lst here
My menu.lst is blank, it seems to me that if I copied the text from the newer Ubuntu installation and pasted it in the one I'm using now, then it would work?
Yep. You'd just have to make sure to remove the newer ubuntu from the new menu.lst
[QUOTE=pikzen;23100039]Yep. You'd just have to make sure to remove the newer ubuntu from the new menu.lst[/QUOTE]
Damn, more problems. The menu.lst in my newer Ubuntu installation is blank also. Could GRUB be installed on the Windows partition I wonder?
Sorry, you need to Log In to post a reply to this thread.