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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2010, 02:20 PM   #1
houndhen
Member
 
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 85

Rep: Reputation: 16
growing a partition


I multiboot Windows XP and 5 linux OSes. My partitions are:
Code:
sda1
sda2
sda3 extended
sda5
sda6
sda7
sda8
sda9
sda10
60gb unallocated
All of those under the extended partiton are 10gb except for sda10. I am running out of room in sda10 and would like to increase the size of it by using the unallocated space.
I have tried using a live cd and gparted but could not increase the size of sda10. Is it because sda10 is a logical partition under the extended partition?
Is it going to be possible to grow sda10 without uninstalling and reinstalling everything in the extended partition?

Last edited by houndhen; 12-28-2010 at 03:22 PM.
 
Old 12-28-2010, 02:33 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by houndhen View Post
I have tried using a live cd and gparted but could not increase the size of sda10. Is it because sda10 is a logical partition under the extended partition?
We would need to see the current partition info in more detail to answer that.

Try posting the output from the following command (as root)
/sbin/fdisk -l


Quote:
Is it going to be possible to grow sda10 without uninstalling and reinstalling everything in the extended partition?
Yes. Gparted from a liveCD can move/change whatever is needed in order to grow sda10 (if necessary, also growing sda3). It may take a few steps (depending on some details of your existing partitioning).

Your liveCD may be automatically enabling the swap partition on the HD. That may interfere with what Gparted needs to do (to sda3). So after booting the liveCD and before running Gparted, you may need to turn off swapping. IIRC, that command (as root) is
swapoff -a

Last edited by johnsfine; 12-28-2010 at 02:38 PM.
 
Old 12-28-2010, 02:43 PM   #3
houndhen
Member
 
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 85

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by johnsfine View Post
We would need to see the current partition info in more detail to answer that.

Try posting the output from the following command (as root)
/sbin/fdisk -l


Yes. Gparted from a liveCD can move/change whatever is needed in order to grow sda10 (if necessary, also growing sda3). It may take a few steps (depending on some details of your existing partitioning).

Your liveCD may be automatically enabling the swap partition on the HD. That may interfere with what Gparted needs to do. So after booting the liveCD and before running Gparted, you may need to turn off swapping. IIRC, that command (as root) is
swapoff -a
I will try turning swapoff. Meanwhile, here is the results of /sbin/fdisk -l:
Code:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x14c814c8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2662    21382483+   7  HPFS/NTFS
/dev/sda2            2663        3057     3172837+  82  Linux swap / Solaris
/dev/sda3            3058       22636   157268287    5  Extended
/dev/sda5            3058        4362    10482381   83  Linux
/dev/sda6   *        4363        5667    10482381   83  Linux
/dev/sda7            5668        6972    10482381   83  Linux
/dev/sda8            6973        8277    10482381   83  Linux
/dev/sda9            8278        9582    10482381   83  Linux
/dev/sda10           9583       22636   104856223+  83  Linux
after edit
Got it after turning off swap partiton. Thanks so much.

Last edited by houndhen; 12-28-2010 at 03:21 PM. Reason: new information
 
Old 12-28-2010, 03:52 PM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Based on the fdisk output you posted, I don't understand why swapoff would be needed.

Your first post made it seem likely that swapoff might be needed. But the fdisk output seems to indicate it is not needed.

I'm glad it worked for you, and I guess it doesn't matter that I don't understand why it didn't work earlier.
 
Old 12-28-2010, 04:17 PM   #5
houndhen
Member
 
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 85

Original Poster
Rep: Reputation: 16
It may have been that I did the fdisk output from inside an installed distro rather than the livecd.

The more I learn the less I understand, it seems.
 
Old 12-28-2010, 04:29 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by houndhen View Post
It may have been that I did the fdisk output from inside an installed distro rather than the livecd.
That's not an issue. Changing the partitioning requires the affected partitions not be mounted, so it is very hard to accomplish except via live CD. But listing the partitions should be the same from either place.

Quote:
The more I learn the less I understand, it seems.
I'm sure that is not the case. Not everything gets explained. But as you do more with Linux, you will find a much larger fraction of it makes sense.

I expect you needed to grow sda3 as part of growing sda10. I don't happen to know if Gparted would do that automatically, or if you need to explicitly tell it to grow sda3 before growing sda10.

I'm pretty sure you can't grow sda3 while any logical partition is mounted.

So I guessed your swap was a logical partition and swapping was enabled and that stopped sda3 from growing. But your swap partition was sda2, which is a primary partition.

Last edited by johnsfine; 12-28-2010 at 04:32 PM.
 
Old 12-28-2010, 05:26 PM   #7
houndhen
Member
 
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 85

Original Poster
Rep: Reputation: 16
Yes, I did have to grow sda3 (extended partition) and then grow sda10. It worked out perfectly regardless of whether the swap needed to be turned off or not. I don't remember trying to grow sda3 before I posted my question but it is a possibility that it could have worked then but I was so unsure of what I was doing that I needed someone else (you) to sort of guide me.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL ibdata1 growing and growing and growing and... jnojr Linux - Software 1 07-20-2009 07:11 PM
Growing an HFS+ partition jgombos Linux - General 1 06-23-2009 12:30 AM
Resizing/growing RAID partition dadevilx Linux - General 1 03-22-2009 02:41 AM
Need help growing partition wslyhbb Linux - General 5 01-24-2008 03:55 PM
growing an lvm partition- format question kpachopoulos Linux - General 3 11-16-2006 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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