LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Reply
  Search this Thread
Old 09-01-2012, 04:09 PM   #1
cjones903
LQ Newbie
 
Registered: Sep 2012
Posts: 10

Rep: Reputation: Disabled
GPARTED help


I have been browsing this site for hours and while I can find plenty of threads on the subject, I cannot seem to find one that matches my situation... or at least that I can get their solution to work. I have read in several places that if unallocated space is next to a partition, I should be able to extend the partition to consume the unallocated space. I understand the concepts of unmounting and running from a livecd, and have used parted magic to no avail. When I click my sda4 and try to resize it, it is showing no avaialable space at the end, and saying that it is already at its maximum size. I am including a screenshot of GPARTED and my fdisk -l output. Thanks.
 
Old 09-01-2012, 04:16 PM   #2
cjones903
LQ Newbie
 
Registered: Sep 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
http://www.flickr.com/photos/86335928@N05/
 
Old 09-01-2012, 04:19 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Nothing attached---perhaps because you are new.

I assume you are using GParted from a live CD----and also running fdisk from live CD?

Just tell us the essence of how the disk is partitioned----eg the number and size of the partitions and are they all primary---or is there an "extended" partition, plus one or more "logical".
 
Old 09-01-2012, 04:20 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You were posting your screen shots while I was typing----Stand By....
 
Old 09-01-2012, 04:24 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK---You have an extended partition** (sda3) taking all the space not used by sda1 or sda2. You can create new partitions inside sda3, but you cannot grow sda1 or sda2 into that space.

All you need to do is to first shrink sda3---then you can increase or move sda2.


**Think of extended partitions as "containers" for logical partitions.
 
Old 09-01-2012, 04:34 PM   #6
cjones903
LQ Newbie
 
Registered: Sep 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for such a quick response. As i understand it, I could shrink sda3 and then move sda4 to take that space? I have tried shrinking the large unallocated space, but GPARTED will not let me. I appreciate the explanation of partitions. I forgot to mention, I would like for sda4 to occupy, additionally, the unallocated space

Last edited by cjones903; 09-01-2012 at 04:43 PM. Reason: Unclear of intent
 
Old 09-01-2012, 04:47 PM   #7
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Yes, it looks like sda3 (the extended partition) contains only unallocated space and the swap partition.

In principle you could delete the swap partition sda5 and then delete the extended partition sda3 completed - and recreate them afterwards. Swap areas don't contain anything you need to save between reboots.

However it may be that the Live CD has found the swap partition and is using it (though I don't see a lock on it in your gparted screenshot).

Try deleting the swap partition sda5, and if you can do that, delete sda3 - or resize it if you prefer.

(You can't resize an unallocated space ... because this doesn’t really mean anything.)

Last edited by SecretCode; 09-01-2012 at 04:50 PM.
 
Old 09-01-2012, 04:53 PM   #8
cjones903
LQ Newbie
 
Registered: Sep 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
I have deleted sda5, but I do not understand what you mean by "then delete the extended partition sda3 completed". I'm sorry, this is my first experience repartitioning in Linux.
 
Old 09-01-2012, 04:55 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You cant shrink the unallocated space you have to shrink the container(extended partition) which is sda3 then you can grow sda4.
Using gparted shrink sda3 from left.

Last edited by EDDY1; 09-01-2012 at 04:57 PM.
 
1 members found this post helpful.
Old 09-01-2012, 04:59 PM   #10
cjones903
LQ Newbie
 
Registered: Sep 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
AHA! The eureka moment was "from left". I had always assumed it just shrank as a whole instead of actually considering the borders as movable things. Thank you so much!
 
Old 09-01-2012, 05:10 PM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You're welcome!
 
Old 09-01-2012, 05:24 PM   #12
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by cjones903 View Post
I have deleted sda5, but I do not understand what you mean by "then delete the extended partition sda3 completed". I'm sorry, this is my first experience repartitioning in Linux.
Sorry, that was a typo for "completely"

Anyway, glad to see you have fixed it.
 
Old 09-01-2012, 07:16 PM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
As SecretCode explained you could've remove sda5 & sda3 especially since the only thing that resides in sda3 so it wouldn't have change your /etc/fstab so there would be no real editing. But by doing so, depending on how much ram your system has, you could possibly run short of memory.
 
Old 09-01-2012, 08:00 PM   #14
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Quote:
Originally Posted by cjones903 View Post
I have deleted sda5, but I do not understand what you mean by "then delete the extended partition sda3 completed". I'm sorry, this is my first experience repartitioning in Linux.
Hello cjones. I'm glad to hear your issue is now resolved. I just thought i'd explain a couple things for your benefit.
There are three types of partitions; Primary, Extended, and Logical. Because of old technical limitations, the maximum amount of primary partitions you can have is four. A primary partition can be bootable and often has an operating system on it. Due to the four partition limitations, Extended partitions were invented. You may have up to only three primary partitions with the extended partition: and only ever one extended partition regardless of what else is there. An extended partition work like a container. On my computer and likely other peoples too, it is the biggest partition. It is often the biggest partition, because an extended partition is then separated into x amount of logical partitions, the user deems appropriate. A logical partition works much like a primary partition and often also contains an operating system.

Gnu/Linux is bootable off both primary and logical partitions. It's important though to realise that not all operating systems are bootable off logical partitions. FreeBSD for example needs to be on a primary partition, (FreeBSD also uses different jargon to describe partitions, but i'm not going to get into that here). I'm unsure on Windows, but i think it needs a primary partition too.

I hope that has helped your understanding of partitioning. :-)
 
  


Reply



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
LXer: GParted Live CD 0.13.0-1 Is Based on GParted 0.13.0 LXer Syndicated Linux News 0 07-16-2012 04:40 PM
gparted drakeone Linux - Newbie 5 07-07-2009 06:47 PM
about gparted rob33n Debian 2 10-22-2007 12:29 PM
gParted Help carlosinfl Linux - Software 6 09-26-2006 08:41 PM
GParted mtecknology Linux - Software 1 07-25-2005 10:11 AM

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

All times are GMT -5. The time now is 01:05 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