Linux - GeneralThis 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
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.
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?
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.