LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Closed Thread
  Search this Thread
Old 11-10-2017, 04:00 PM   #1
Terry Clarke
LQ Newbie
 
Registered: Nov 2017
Posts: 7

Rep: Reputation: Disabled
Installed Ubuntu twice - can't delet the old one.


Quote:
Originally Posted by Thelionroars View Post
You don't need to spend $35 on a partition editor. You can use your Ubuntu live CD, or if you're feeling extravagant you can download and burn the open source GParted Live, or System Rescue CD.

Let's assume you are going to use your Ubuntu Live CD. Boot it up, then go into System>Administration>Partition Editor. GParted will boot up and show you the partitions on your hard drive(s) (you can switch between drives using a button on the top right). You will see your 2.5 GB partition, your 18 GB partition, and your linux-swap partition, and also a table listing them with some further info to help identify which is which.

Now:
-Get rid of your 2.5 GB partition - right click on it and select 'delete'.
-Then expand your 18 GB partition to use the extra space - right click and select Resize/Move, then increase the size to max. available.
-Then click the big 'apply' button.

Simple, right? No need to fork out $35 (unless of course you want to). Gparted is on pretty much every live linux CD out there.

-----------------------------------------------------------------------------------------------------------


Hi

First of all I’m a complete newbie to Linux and my problem is similar to this thread (post moved to new thread and link to older thread added by moderator). I downloaded Ubuntu 14.02 32bit and upgraded to Ubuntu 16.04 32bit. Its working fine now but my disk is almost full because I downloaded it twice (or maybe three times) by mistake. Ive tried to fix it myself but had no luck. here's what i did:

I got the following partition 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.
------------------------------------------------------------------------------------------------------

And since there are three Linux entries I presume the /dev/sda5….27.8G partition is the one I did by mistake.

I’m trying to delete it using GParted Partition Editor but having no luck.

When I click my RHM on /dev/sda5...27.8G 83 Linux 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 errors every time.

Can anyone please help?

Last edited by rtmistler; 11-13-2017 at 07:46 AM.
 
Old 11-13-2017, 07:48 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Thread closed due to duplicate post. Please use https://www.linuxquestions.org/quest...ed-4175617411/
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't delet or create files... Babe963 Linux - General 13 01-12-2007 04:54 PM
Delet To wastebasket omnibus Linux - Newbie 4 08-20-2006 05:18 PM
delet a record from a file anoosh Programming 1 04-12-2006 11:07 AM
how to delet non-empty dirs bernstein Linux - General 6 04-30-2005 01:07 AM
how do you delet more than 1 line using SED jsandro7 Linux - Newbie 2 12-12-2003 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration