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.
Hello all.
I've recently installed Ubuntu onto my laptop, which already had Windows 7 and Kubuntu on it (I realised later that this might not have been the best way to do it) and I was planning to install Ubuntu over Kubuntu, but couldn't figure out which Partitions were safe to remove, and which weren't, so I just resized Kubuntu to minimum, and put Ubuntu in it's space. Now, I would like to know what I can do to remove Kubuntu, without removing Ubuntu, and screwing up GRUB? I assume I'm going to have to change something the the GRUB file list thingy (can't remember what it's called, but the list that is loaded when GRUB starts and asks what you want to boot). So, what do I remove, and in what order?
Thanks in advance,
XP105
You haven't posted enough details. Do all three systems boot now? Do you want to get rid of Kubuntu and keep windows and Ubuntu? Do you want to delete the Kubuntu partition or do you just want to remove the entry in the boot menu (grub.cfg file in /boot/grub/ directory)? Boot either Kubuntu or Ubuntu and run this command from a terminal and post the output: sudo fdisk -l (lower case Letter L in the command)
so I just resized Kubuntu to minimum, and put Ubuntu in it's space
How did you do this? What did you do to put Ubuntu in Kubuntu's space? If I understand what you did, but not sure, you need to boot into Ubuntu and reinstall grub to the mbr Of your hard drive and rerun update-grub before removing Kubuntu. This link tells how. https://help.ubuntu.com/community/Grub2/Installing to reinstall grub under Item 2. One other note if you redo your hard drive partitioning after removing Kubunut(ie deleting a preexisting partition) will cause booting problems.
Last edited by colorpurple21859; 09-13-2012 at 01:25 PM.
@yancek
I would like to remove the whole Kubuntu partition, but I just want to be sure that removing the partition will not screw up the booting. The operating systems all boot correctly. Here's the output:
Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20811488
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 1918 15360000 7 HPFS/NTFS
/dev/sda3 1918 21615 158216446 7 HPFS/NTFS
/dev/sda4 21615 38914 138952705 5 Extended
/dev/sda5 21615 22260 5182156 83 Linux
/dev/sda6 38206 38914 5684224 82 Linux swap / Solaris
/dev/sda7 22260 37552 122834944 83 Linux
/dev/sda8 37553 38205 5244928 82 Linux swap / Solaris
Partition table entries are not in disk order
@colorpurple21859
I did a Side-By-Side install of Ubuntu, which took space from Kubuntu based on the amount I dragged the partition along (there was a mouse drag option for it).
Also, I'm not entirely sure I understand what you mean by updating before I remove Kubuntu. Isn't my GRUB updated already? Or do I have to manually update it? I had GRUB installed prior to installing Ubuntu (when I dual-booted windows 7 and Kubuntu) and it updated the list itself (in fact, I am currently in Ubuntu right now).
If grub was installed to the MBR during the Ubuntu Installation then You should not have to reinstall grub to the mbr. If You didn't install grub during the ubuntu installation or installed it to a partition, then Kubuntu's grub will still be in the MBR and will cause problems when kubuntu is removed. Running
Quote:
update-grub
updates the grub menu you see when the computer first boots, if you have installed/uninstalled other distros. Whether or not deleting a partition will cause booting problems will depend on if Ubuntu's partition number change's after deleting the partition.
Last edited by colorpurple21859; 09-13-2012 at 02:11 PM.
You have two Linux partitions, sda5 and sda7. If you have Kubuntu on sda5 and delete it from Ubuntu you will not be able to boot Ubuntu as its partition will change from sda7 (assuming that is where it is based upon partitions sizes?) to sda6. I would think that if you were booted into Ubuntu and deleted Kubuntu on sda5 and then ran os-prober and update-grub you would be alright. Posting your Ubuntu grub.cfg would give more information to make a recommendation, from Ubuntu if you use the Ubuntu bootloader?
I understand what you meant now. Deleting Kubuntu would mean that the GRUB file that was there would not exist, stopping GRUB from working correctly (I forgot that the files were kept on there, and not on the boot partition). I couldn't get update-grub to work due to a mounting error. I've decided to just start from scratch and delete my partitions through windows, fix the mbr, then dual boot it from there (am currently installing Ubuntu now).
Thanks for all the help, but it seemed like it was more trouble than it was worth given how much easier a clean install of it seemed (I didn't want to cause more damage by screwing up the boot and not being able to access anything).
XP105
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.