[SOLVED] Adding Unallocated space to extended partition
Linux - NewbieThis 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
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.
My setup is as shown in the image below,i have 170G of unallocated space which id like to add to my Extended partition so that i can create logical partitions.
I can only create one primary partition now of 170G which i don't need.
Can i boot my machine off a live-cd and a run a gparted and add the unallocated space to the extended partition ? Thanks.
If you temporarily delete the swap partition, then you should be able to resize or add partitions to the extended block easily. Just add a new swap space to the end when your finished.
And be sure to update your fstab to account for the changes.
I think it may dependent on the partitioning tool you use.
I think Gparted (marked by the light blue border around sda5 and sda6) and fdisk have a fixed border for the extended partition making it hard to change.
However cfdisk does not recognise an extended partition so after deleting sda6 you can continuously creating logical partitions. This is because cfdisk has no tool to create an extended partition. The first time you create a logical partition it will automatically grabs the next primary partition device name and converts it.
I think it may dependent on the partitioning tool you use.
I think Gparted (marked by the light blue border around sda5 and sda6) and fdisk have a fixed border for the extended partition making it hard to change.
At least for GParted this should not be true. You should simply be able to grab the border with the mouse and resize it.
what cfdisk reports is different from gparted or fdisk,but cfdisk is letting me create logical partitions
i dont quite understand why they are reporting differently
cfdisk:
Code:
Name Flags Part Type FS Type [Label] Size (MB)
---------------------------------------------------------------------------------------------------------------------------------------------------
Primary Free Space 1.05 *
sda1 Boot Primary NTFS 104.86 *
sda2 Primary NTFS [] 62809.71 *
Pri/Log Free Space 1.05 *
sda5 NC Logical Linux ext3 71999.43 *
Pri/Log Free Space 185154.25
fdisk:
Code:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 7650 61337600 7 HPFS/NTFS
/dev/sda3 7650 16768 73243799+ 5 Extended
/dev/sda5 7650 16403 70311936 83 Linux
The hard disk partitions are identical in both cfdisk and fdisk except cfdisk does not report the Extended partition because it has no storage but just a border.
In your case the device name sda3 has been used up for the extended partition.
You can learn a lot by using the terminal partitioning tools in Linux because with Gparted the partitioning and formatting are combined together as one operation. Partition creation and deletion are reversible whereas formatting is irreversible. The terminal tools in Linux do partitioning only and a different set of tools are used for formatting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.