Tri-boot to Dual-boot
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)
|
Quote:
|
@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 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:
|
I suppose I could just edit the command in GRUB is that does happen, and just change the number to the new number. Thanks then.
|
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?
|
Yancek is correct you will also have to edit /etc/fstab also before rebooting.
Post current /etc/fstab for Ubuntu. |
Also you'll want to get something like gparted & resize your Ubuntu installation atleast /home
|
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 |
You can repair grub from grub prompt
http://karuppuswamy.com/wordpress/20...-cd-for-grub2/ |
All times are GMT -5. The time now is 09:11 PM. |