Forum Home
Press F1
 
Thread ID: 132716 2013-05-21 08:58:00 Which partition is which? asdex (1488) Press F1
Post ID Timestamp Content User
1342477 2013-05-21 08:58:00 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.
Thanks,
asdex (1488)
1342478 2013-05-21 09:43:00 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. :)
fred_fish (15241)
1342479 2013-05-21 10:07:00 Thanks, how would you tell which is the Ubuntu partition?
Cheers,

$ 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)
asdex (1488)
1342480 2013-05-21 10:16:00 sda5 (from your gparted screenshot & in mint sda7 is / so that is the only candidate left) fred_fish (15241)
1342481 2013-05-21 10:40:00 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.
Thanks
asdex (1488)
1342482 2013-05-21 11:08:00 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. johnd (85)
1342483 2013-05-21 11:26:00 ^^ 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'.
fred_fish (15241)
1342484 2013-05-21 11:29:00 Great, all clear thanks. I'll check I have nothing I want on Ubuntu and give it the heave-ho.
Thanks,
asdex
asdex (1488)
1