-   Linux - Software (
-   -   fdisk fails to create partition, but drive has free space (

whysyn 04-17-2007 03:00 PM

fdisk fails to create partition, but drive has free space
I'm totally lost and don't even know how to proceed. Below is output from fdisk when I try to create a new partition.

(I should mention that this box is hosted elsewhere, so I have to make sure whatever I do doesn't crash the box...)

OK: Start up fdisk, and look at the partition list. 80 gig hard drive, only about 12 gig partitioned out.

# fdisk /dev/hda

The number of cylinders for this disk is set to 155061.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot    Start      End    Blocks  Id  System
/dev/hda1  *        1      271    136552+  83  Linux
/dev/hda2          272      8967  4382784  83  Linux
/dev/hda3          8968    11548  1300824  82  Linux swap
/dev/hda4        11549    23985  6268248    f  Win95 Ext'd (LBA)
/dev/hda5        11549    23985  6268216+  83  Linux

Try to add a partition, error on no free sectors... WTF?

Command (m for help): n
No free sectors available

Thanks all for any help you can lend!!!

Matir 04-17-2007 03:08 PM

The extended partition (in which you presumably want to create a new logical partition) only extends to cylinder 23985, all of which is already used. In other words, there is nowhere to create a new partition without first modifying the extended partition.

whysyn 04-17-2007 03:13 PM

How safely/reliably can the extended partition be modified? Can you recommend an app for doing so?

I don't know who installed this thing, but come to think of it I've never seen an extended partition like that in Linux before...

whysyn 04-17-2007 03:13 PM

(and BTW, thanks for such a quick response!)

All times are GMT -5. The time now is 10:54 PM.