LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 02-08-2004, 08:33 PM   #1
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
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

Any help would be much appreciated. Thanks.
 
Old 02-10-2004, 07:36 PM   #2
miguetoo
Member
 
Registered: Mar 2003
Location: soCal..
Distribution: lfs server.. slackware workstation..
Posts: 58

Rep: Reputation: 15
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..
 
Old 02-24-2004, 04:10 PM   #3
personne4792
Member
 
Registered: Jan 2004
Location: France
Distribution: Win2KPro,RH9
Posts: 34

Rep: Reputation: 15
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.
 
Old 01-01-2008, 05:03 PM   #4
kamathln
LQ Newbie
 
Registered: Jun 2003
Location: Mangalore,India
Distribution: redhat 8 (currently) but i keep changing distros
Posts: 5

Rep: Reputation: 0
CFdisk!

try cfdisk!!! I just fixed the same problem..
 
Old 01-01-2008, 05:27 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
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.

Last edited by michaelk; 01-01-2008 at 05:32 PM.
 
Old 02-03-2009, 12:43 AM   #6
ruwindada
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 0
Post No free sectors available

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 !!

BR.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
fdisk doesn't recognize free space on 300GB Disk thesix Ubuntu 6 05-21-2005 10:30 PM
fdisk doesn't recognize free space on 300GB Disk thesix Linux - Hardware 2 05-14-2005 08:19 PM
fdisk "No free sectors Available" xfezz Linux - General 3 04-21-2005 09:25 AM
Free, free,FREE=? no money, = Freedom? murshed Linux - Newbie 8 01-20-2003 07:01 AM
is windows extended partion free space visible to linux fdisk purplesky Linux - General 1 11-12-2002 07:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:56 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
Open Source Consulting | Domain Registration