LinuxQuestions.org
Review your favorite Linux distribution.
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 10-15-2012, 01:46 PM   #1
samsam2
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
In a bit of a pickle about my extended partition!


Hey guys,

This is my first post here so be nice! Anyway, I have just installed Linux mint cinnamon, and allocated pretty small partition sizes which I now want to adjust. However, when using gParted it says that I cannot dismount the "home" partition because it was in use. I then attempted from the live CD, but this had the resize option grayed out, because the linux logical partitions are in an extended partition separate from the 300 gb of unallocated space on my HDD. How would I be able to add this space to my linux partitions, and should it go onto my home or root mounted partition?

I don't know how to add an image on this but I'll happily email you an image of the partition setup from gparted if needs be. (just give me your email address)

Thanks a bunch in advance,
Sam
 
Old 10-15-2012, 02:16 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
LiveCD's the way to do it.

If I remember correctly, you need to first extend the extended partition, and then the logical partitions into the extra space which you just moved into the extended partition.

I would put most of the extra space into your home partition, as you're more likely to add music/videos/documents than you are programmes - but as with everything, it's a balance that depends on exactly what you use your computer for. As long as you keep an eye on them, and are ready to adjust them if one's getting full, it's not that much of a problem.

For adding attachments, if you go to the full editor screen, there's a little paperclip icon above the message body which you can use to attach images.
 
Old 10-15-2012, 02:27 PM   #3
samsam2
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks a lot for the reply! However, there doesnt seem to be an option to enlarge the extended partition nor does there seem to be anything about it on google... can anyone explain to me how to do so. Oh, and before i forget, here is that image I was talking about...
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2012-10-15 20:25:39.png
Views:	17
Size:	62.7 KB
ID:	10974  
 
Old 10-15-2012, 02:41 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You need to first extend sda3 then you can either move or resize existing partitions and/or add additional partitions
 
Old 10-15-2012, 02:45 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Btw in order to resize sda5 or sda6 you will have to move the other partitions to the right.
Also how much ram do you have as your swap partition is quite large.
 
Old 10-15-2012, 02:50 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
A lot of live CDs automatically detect and enable the swap space. That prevents the partition changes you want (such as resizing the extended partition).

So within the live CD, you need to disable swapping.

In think the command (as root) is
Code:
/sbin/swapoff -a
Then retry the partitioning tool to resize the extended partition.

Quote:
Originally Posted by samsam2 View Post
should it go onto my home or root mounted partition?
That is one of the reasons I always advise beginners not to have home separate from root in the first place. But too late for that

I think you'll need to make your own guess now about where you will be using space.

After you grow sda3, you need to move (and probably grow) sda7 to get it out of the way in order to grow sda6 (assuming you want to grow sda6).

Last edited by johnsfine; 10-15-2012 at 02:57 PM.
 
1 members found this post helpful.
Old 10-15-2012, 02:52 PM   #7
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
You need to extend the extended partition into the unallocated space, and then resize the partitions inside it...

To change them, you have to click on that "teal" portion and then use menu options to move/resize. Inside gParted, you then actually click and drag the edges of the partition to pull it into the unused space... Then,... you need to click the checkmark to commit your changes... and get yourself a cold, or hot drink...

Once you extended your extended partition (like how I did that?!),... you do the same for your partitions that you want to grow. In addition to growing /home, you're going to have to move it. Do this in steps, rather than trying to commit a bunch of changes all at once... Don't actually move the starting point of / ,... just grow it in the space you cleared by moving /home.
 
Old 10-15-2012, 02:59 PM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by JaseP View Post
You need to extend the extended partition into the unallocated space, and then resize the partitions inside it...

To change them, you have to click on that "teal" portion and then use menu options to move/resize.
Please pay attention to what the OP has said before repeating the same insufficient advise.

Quote:
Originally Posted by samsam2 View Post
However, there doesnt seem to be an option to enlarge the extended partition
From that we can deduce that the swap space has been enabled and must be disabled before the extended partition can be resized.
 
1 members found this post helpful.
Old 10-15-2012, 04:30 PM   #9
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
Quote:
Originally Posted by johnsfine View Post
Please pay attention to what the OP has said before repeating the same insufficient advise.



From that we can deduce that the swap space has been enabled and must be disabled before the extended partition can be resized.
Not Necessarily, ... I have swap in an extended partition all the time, and I've never had a gParted live disk activate swap and prevent me from moving anything. GParted Live usually puts its entire filesystem in RAM... Anything else would defeat the purpose, every time a gParted Live CD is launched on a system that has a swap drive. Install CDs never failed to allow me to repartition either... as far as I can remember. But the screen shot is only gParted,... It doesn't show this to be an install CD, and on GParted Live, gParted usually defaults to fullscreen, just as his picture would indicate...

What has prevented me from moving things has been accidentally forgetting to select the correct partition, or trying to move the partitions within the extended partition, without first resizing the extended partition that it's inside. The empty, unallocated space is not in its own partition, and from the diagram, it's not in any filesystem or partition.

The only other choice is dependent on the original Windows install,... and whether this system is using some form of GPT/MBR hybrid, and/or has ExFAT partitions, which a regular gParted disk can't read... For that, he'd need Parted Magic.

But don't make it seems like I don't know what I'm talking about... I used gParted just last night in a system...

Oh,...And another thing,... He HAS a separate /home partition,... it's right there in the image... The problem is,... it's just small. Plus, in the picture, he has no partitions selected,... so options would be greyed out.
 
Old 10-15-2012, 04:30 PM   #10
samsam2
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks guys, got it in the end - resized home to 200gb and root to 100gb. Time to give a very small something back to the forums :P. You can also turn off swap in gParted, which saves a tad of time!
Quote:
Also how much ram do you have as your swap partition is quite large.
8gb; I read that the swap should be about double your ram.

Cheers everyone - I know where to come if I have any more queries!
 
Old 10-15-2012, 07:41 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379
Quote:
8gb; I read that the swap should be about double your ram.
Actually, that's really old advice from when RAM was measured in MB.
These days, it really depends on how hard you push your system.
Its a very subjective thing by the way, so you'll get lots of different opinions unfortunately.
I tend to go with a number somewhere between 2GB and 1 x RAM.
Given that disk space is dirt cheap these days, probably the latter, but as said, its really up to you.
some people go without entirely, but I'd rather not....
 
Old 10-15-2012, 08:40 PM   #12
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
It is also a matter of practicality ... Sometimes, because of drive geometry, you end up with a larger available space than is ordinarily practical for swap. Then it's just a matter of saying. "what the heck."
 
Old 10-16-2012, 06:34 AM   #13
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by samsam2 View Post
Thanks guys, got it in the end
Brilliant, well done. Please mark the thread as 'SOLVED' using the link at the top of the page, so that other people know the thread contains a solution (and if appropriate, mark posts you found helpful as helpful - e.g. johnsfine's one)

Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Possibility to create swap partition if extended partition is out of space? bhavisavla Linux - Newbie 1 09-12-2011 06:39 AM
[SOLVED] I need help converting a vfat extended partition into a ext4 partition zorro70 Linux - General 6 02-15-2011 08:55 PM
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
extended sata partition shrunk at 15 partition limit, how to re-enlarge Siljrath Linux - General 3 06-02-2010 10:33 PM
[SOLVED] Safety: Primary Partition and Extended (Logical) Partition MBA Whore Linux - Security 11 01-03-2007 02:05 PM


All times are GMT -5. The time now is 03:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration