Installed Ubuntu twice, and would like delete one of them
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Installed Ubuntu twice, and would like delete one of them
Good day. I have installed Ubuntu 9.04 twice. I want to use first one(/dev/sda1), so I have to delete second one.
But it seems, system read /boot/grub/menu.lst file from OS that was installed second.
How can I properly delete second installed Ubuntu?
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00085414
Device Boot Start End Blocks Id System
/dev/sda1 * 1 18969 152368461 83 Linux
/dev/sda2 18970 19457 3919860 5 Extended
/dev/sda5 19296 19457 1301233+ 82 Linux swap / Solaris
/dev/sda6 18970 19273 2441817 83 Linux
/dev/sda7 19274 19295 176683+ 82 Linux swap / Solaris
Partition table entries are not in disk order
menu.lst of second installed system(that need to be removed):
Code:
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid d174aa04-2d37-4b4c-ba5d-623d4f768111
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d174aa04-2d37-4b4c-ba5d-623d4f768111 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid d174aa04-2d37-4b4c-ba5d-623d4f768111
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d174aa04-2d37-4b4c-ba5d-623d4f768111 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid d174aa04-2d37-4b4c-ba5d-623d4f768111
kernel /boot/memtest86+.bin
quiet
### 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 an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, kernel 2.6.28-11-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=e73811ca-e605-40f1-aa6d-b062b54a1d14 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode) (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=e73811ca-e605-40f1-aa6d-b062b54a1d14 ro single
initrd /boot/initrd.img-2.6.28-11-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, memtest86+ (on /dev/sda1)
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot
i think you need to format the /dev/sda6 and restore the grub on /dev/sda1.. may be the grub is written to your mbr.. so what you have to do is just format the second ubuntu..
Last edited by mobinskariya; 08-20-2009 at 02:45 AM.
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:
What puzzled me is where ever you installed GRUB of the second installation it should have both installation in its menu.lst
If you started UBUNTU which choices are presented which ?
What puzzled me is where ever you installed GRUB of the second installation it should have both installation in its menu.lst
If you started UBUNTU which choices are presented which ?
title Other operating systems:
root
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, kernel 2.6.28-11-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=e73811ca-e605-40f1-aa6d-b062b54a1d14 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode) (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=e73811ca-e605-40f1-aa6d-b062b54a1d14 ro single
initrd /boot/initrd.img-2.6.28-11-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, memtest86+ (on /dev/sda1)
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot
thats presents second installed system.
So, do I need to format /dev/sda6 , and that's all?
title Other operating systems:
root
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, kernel 2.6.28-11-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=e73811ca-e605-40f1-aa6d-b062b54a1d14 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode) (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=e73811ca-e605-40f1-aa6d-b062b54a1d14 ro single
initrd /boot/initrd.img-2.6.28-11-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Ubuntu 9.04, memtest86+ (on /dev/sda1)
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot
you said that you first installed ubuntu on /dev/sda1.. am i right? just try formatting sda6.. after all learning linux means experimentation. Also please don't forget to mention the result here.
Last edited by mobinskariya; 08-21-2009 at 02:43 AM.
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:
Using the option presented to you when UBUNTU is booting and knowing that UBUNTU is using UUID to boot we can determine which UBUNTu is booting
The next command will give you the UUID
ls -l(L lower case) /dev/disk/by-uuid
than you know for certain with UBUNTU is booting
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.