Installed Ubuntu multiple times by mistake and can't delete partition with GParted
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.
Installed Ubuntu multiple times by mistake and can't delete partition with GParted
Hi
First of all I’m a newbie to Linux and I’ve downloaded 14.02 32 bit Ubuntu and upgraded to 16.04 32 bit. Its working fine now but my disk is almost full because I downloaded it twicw (or maybe three times) by mistake.
I got this info from Tereminal using sudo fdisk -l:
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x006c006c
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 136884168 136884106 65.3G 7 HPFS/NTFS/exFAT
/dev/sda2 136884222 214972415 78088194 37.2G 5 Extended
/dev/sda4 215896064 234434559 18538496 8.9G 7 HPFS/NTFS/exFAT
/dev/sda5 152602624 210917375 58314752 27.8G 83 Linux
/dev/sda6 210921472 214972415 4050944 2G 82 Linux swap / Solaris
/dev/sda7 136884224 152602623 15718400 7.5G 83 Linux
Partition table entries are not in disk order.
Since there are three Linux entries I presume the /dev/sda5….27.8G partition is the one I did by mistske.
I’m trying to delete it using GParted Partition Editor but having no luck.
When I click my RHM and select Delete I get the following error:
Unable to delete /dev/sda5!
Please unmount any logical partitions having a number higher than 5
Now /dev/sda6 doesn’t have an option to unmount so I did it on /dev/sda7 and got the following error:
Could not unmount /dev/sda7
# umount -v "/"
umount: /: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
I’ve done this a number of times but get the same errrors every time.
Are you using the Live CD or the installed Gparted in Ubuntu?
I'm using the installed Gparted in Ubuntu. Can anyone tell me how to obtain, create and use the Live CD in the Ubuntu Application? I'm afraid I'm a complete Newbie :-(
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by Terry Clarke
I'm using the installed Gparted in Ubuntu. Can anyone tell me how to obtain, create and use the Live CD in the Ubuntu Application? I'm afraid I'm a complete Newbie :-(
If you've still got the Ubuntu installation media, either DVD or USB, that's got gparted on it. So if you boot to that you'll be able to deal with your partitions.
Edit: Those 3 linux partitions could easily be your root, home, and swap partitions. If that's true then there's nothing wrong with your setup.
If you've still got the Ubuntu installation media, either DVD or USB, that's got gparted on it. So if you boot to that you'll be able to deal with your partitions.
I didnt realise I had to use ISO Image Software to create the boot CD, so wasted a couple of hours there, but now I have it, 'Furious ISO Mount Tool 0,11,3,1', I've created the CD and it loads up on boot.
My problem now is once I boot from the CD, the first screen appears as it should and I select: DParted Live (Default Settings) by pressing enter. It say Automatic boot in 30 seconds. It repeats this sequence every time I press enter, but reloads the original first screen again and again, even when I press esc.
Had enough for today but going to download the ISO file again tomorrow, make a new CD and try it again.
Last edited by Terry Clarke; 11-11-2017 at 04:29 PM.
I didnt realise I had to use ISO Image Software to create the boot CD, so wasted a couple of hours there, but now I have it, 'Furious ISO Mount Tool 0,11,3,1', I've created the CD and it loads up on boot.
My problem now is once I boot from the CD, the first screen appears as it should and I select: DParted Live (Default Settings) by pressing enter. It say Automatic boot in 30 seconds. It repeats this sequence every time I press enter, but reloads the original first screen again and again, even when I press esc.
Had enough for today but going to download the ISO file again tomorrow, make a new CD and try it again.
Check your ISO with the MD5 or SHA256 or whatever number. And most CD/DVD burning programs have the ability to burn ISOs correctly. In this circumstance I would definitely try a different one.
If you used a DVD/flash drive to install Ubuntu and you still have it/them, you have GParted as pointed out above. Just boot the DVD/flash drive and open a terminal and type: sudo gparted This will open the partition manager.
From the info you posted it appears sda7 is your root filesystem partition and it is only 7.5GB. I'm surprised you were able to install on that small a partition and you will have constant problems with a partition that small if you install any new software or save data to it. Probably better off to start over and create a larger partition or use sda5 which is 27GB.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.