fdisk -- no free sectors available; i have a few gigs free???
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
fdisk -- no free sectors available; i have a few gigs free???
I am just starting my LFS project and right now I am trying to partition my disk. I am starting with Redhat 9.0 and I don't have cfdisk (??) so I am using fdisk. I type 'fdisk /dev/hda', which works and type 'n' to create a new partition, and I get the message 'No free sectors available'. Does anybody know why this is? Here are the results of a 'fdisk -l' from the command line.
/dev/hda1 * 1 1530 12289693+ 7 HPFS/NTFS
/dev/hda2 1531 4080 20482875 83 Linux
/dev/hda3 4081 4175 522112+ 82 Linux Swap
/dev/hda4 4196 7911 30250395 f Win95 Ext'd (LBA)
/dev/hda5 4146 6695 20482843 7 HPFS/NTFS
/dev/hda6 6696 7911 9767488+ 83 Linux
it might be that all your partitions are used up by other OS's.. you need to delete some partitions in order to reuse them.. in this case, a backup of anything important on those partitions are needed..
It's probably linked to NTFS or a kind of dynamic disk. You know that you have some space available, but at the end of your disk, there is sthing that gives the impression the disk is already full.I had sthing similar and I needed to change from dynamic disk to basic one to get through it, 'cause even parted (and disk-druid also) couldn't create a new partition.
To elaborate just a little. Even though you might have some unallocated disk space available you are unable to create another partition due to the fact that you already have 4 primary partitions (hda1 - hda4 ) and no free space inside the extended partition. Assuming the unallocated disk space is at the end of the drive you can resize the extended partition and then create additional logical partitions. You did not include the header information from the output of the fdisk -l command to know the total number of blocks on your hard drive to determine where your free space is located.
In a nutshell back in the old days of PCs hard drives could only be divided into 4 partitions. To overcome this limitation due to increasing size of hard drives and the desire to subdivide them more the extended/logical partitions were created. The original 4 partitions are now known as primary partitions. A primary partition can be designated as an extended partition which is just a container for logical partitions. Logical partitions are anything >= 5. If you look at the start/end blocks for hda5 and hda6 you will notice that they coincide with hda4.
I too had this very same problem. Solution was to get the extended partition re-sized.Try to get it done using fdisk , cfdisk , Gparted -> nothing works for me.
After that i tried parted [command line of the Gparted] Strangely it allows me to re-size my extended partition. CHEEERS !!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.