I have a computer that dual boots Linux Mint, and Ubuntu, I am wondering what the best way would be to remove Linux Mint, then recovering the hard drive space that is resides in so that Ubuntu will be able to access it.
Asked
Active
Viewed 6,129 times
0
-
Could you please show the output of 'sudo fdisk -l' and note which partitions are used with Linux Mint (one root partition and one swap partition, most likely)? – Dec 02 '11 at 19:50
-
No I can't as I am work and my computer is at home, I will try to get to it later tonight if I have time. – TheXed Dec 02 '11 at 19:52
-
It is simple to do via GParted, as long as you understand what you are doing--I assume you do. But if removing the Mint partition disturbs your bootloader, you'll have to reinstall it, etc before you can boot. – jpaugh Dec 02 '11 at 20:10
1 Answers
1
Here are steps to claim space from Mint partition.
- Login to Ubuntu
- Start gparted:
sudo gparted
. If not available, then install it. Find the Mint partition and format it
Or delete it and create a new partition.
If Mint has modified (taken control of) your boot loader, then :
- Boot from live USB/CD for Ubuntu
- I use the same version. I have no idea how different versions of Ubuntu would work especially 32/64 bit differentiation.
- Open Terminal.
- If you don't know the drive where Ubuntu is installed, use
sudo fdisk -l
, which will list partitions. Note down the one with root. Boot will be indicated by a star (*
). Assuming your root (/
) partition shows /dev/sdaX, where X is a number. Execute:
sudo mount /dev/sdaX /mnt sudo mount --bind /dev /mnt/dev sudo mount --bind /proc /mnt/proc sudo chroot /mnt
Assuming you have only one HDD and it is sda, execute:
grub-install /dev/sda # Note there is no X here
Once it is installed unmount all
sudo umount /mnt/dev sudo umount /mnt/proc sudo umount /mnt
- Boot from live USB/CD for Ubuntu
Remove USB so you can boot from HDD, then reboot.

wjandrea
- 14,236
- 4
- 48
- 98

wisemonkey
- 3,393
-
-
sure :) just a note: once I deleted my Ubuntu partition instead of windows cause I was not paying proper attention :P – wisemonkey Dec 02 '11 at 20:35
-
-
Note that this applies to a BIOS/MBR system. Fixing the bootloader on a UEFI/GPT system is different. – wjandrea Apr 06 '17 at 21:46
-