View Full Version : Which partition is which?

21-05-2013, 08:58 PM
Hi, I have Windows 8 on my laptop and installed Ubuntu then Mint. I want to uninstall Ubuntu but not sure the best way to do this. I looked at the partitions but are not sure which is which and I think both Ubuntu and Mint are sharing some partitions. I want to keep the dual boot for Mint and Windows. I have attached a picture of the partitions.

21-05-2013, 09:43 PM
Boot into mint.
Check which partitions are mounted where with 'mount'.
Nuke the buntu one.
Do (as root) 'os-prober && update-grub && grub-install /dev/sda'
Have a beer. :)

21-05-2013, 10:07 PM
Thanks, how would you tell which is the Ubuntu partition?

$ mount
/dev/sda7 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfsd-fuse on /run/user/asdex/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=asdex)

21-05-2013, 10:16 PM
sda5 (from your gparted screenshot & in mint sda7 is / so that is the only candidate left)

21-05-2013, 10:40 PM
Thanks for that. Can you explain what 'os-prober && update-grub && grub-install /dev/sda' does or means?
I can't find it on Google.

21-05-2013, 11:08 PM
Because Linux was installed after MS Windows, the Linux boot loader (GRUB) will be the primary boot loader. These commands update the boot loader to account for the removal of one of the Linux distributions.

21-05-2013, 11:26 PM
^^ What he said.
'os-prober' see's what OS's it can find on the available media.
'update-grub' rewrites /boot/grub/grub.cfg with the current config.
'grub-install /dev/sda' (re)installs the grub bootloader code to the mbr (or efi partition now, apparently) of the first drive and also points it to the grub.cfg of the OS it is run from (this can be important when several linux's are installed and each has their own grub packages installed).
The '&&' means 'if the previous command exits with success then do the next command'.

21-05-2013, 11:29 PM
Great, all clear thanks. I'll check I have nothing I want on Ubuntu and give it the heave-ho.