From: Riccardo on
I have 80 GB Maxtor Hard Disk on Linux Fedora Core 1 but
when I try to using fdisk command, it shows:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 255 2048256 83 Linux
/dev/hda2 256 765 4096575 83 Linux
/dev/hda3 766 1275 4096575 83 Linux
/dev/hda4 1276 4427 25318440 f Win95 Ext'd (LBA)
/dev/hda5 1276 1785 4096543+ 83 Linux
/dev/hda6 1786 2167 3068383+ 82 Linux swap
/dev/hda7 2168 2422 2048256 83 Linux
/dev/hda8 2423 2677 2048256 83 Linux

I can see 9729 cylinders but by fdisk I can create partition until to
4427 cylinder,
perhaps HD has been cloned from smaller to bigger HD by dd command ?
How to solve it for creating new partition on all free space on disk ?


From: Grant on
On Mon, 17 May 2010 04:37:16 -0700 (PDT), Riccardo <ric.castellani(a)alice.it> wrote:

>I have 80 GB Maxtor Hard Disk on Linux Fedora Core 1 but
>when I try to using fdisk command, it shows:
>
>Disk /dev/hda: 80.0 GB, 80026361856 bytes
>255 heads, 63 sectors/track, 9729 cylinders
>Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
>/dev/hda1 * 1 255 2048256 83 Linux
>/dev/hda2 256 765 4096575 83 Linux
>/dev/hda3 766 1275 4096575 83 Linux
>/dev/hda4 1276 4427 25318440 f Win95 Ext'd (LBA)
>/dev/hda5 1276 1785 4096543+ 83 Linux
>/dev/hda6 1786 2167 3068383+ 82 Linux swap
>/dev/hda7 2168 2422 2048256 83 Linux
>/dev/hda8 2423 2677 2048256 83 Linux
>
>I can see 9729 cylinders but by fdisk I can create partition until to
>4427 cylinder,
>perhaps HD has been cloned from smaller to bigger HD by dd command ?
>How to solve it for creating new partition on all free space on disk ?
>
Sure it's an 80GB drive? Check the label.

If so, does the drive have a link to limit it to 32GB?

Does the dmesg offer a clue? 'less /var/log/dmesg' if the machine up
for a while. For example, is there an HPA defined:

~# grep HPA /var/log/dmesg
ata1.00: HPA detected: current 156299375, native 156301488
ata2.00: HPA detected: current 156299375, native 156301488
ata9.00: HPA detected: current 488395055, native 488397168
ata10.00: HPA detected: current 488395055, native 488397168

Dunno what else, your 4427 works out to 36GB (decimal) or 33.9GiB,
an odd looking number for HDD size.

An easy way to check would be to clear the first track and start over
with fdisk, for example 'dd if=/dev/zero bs=1M count=1 of=/dev/$your_drive'

But then it's a Maxtor, not even good enough for a doorstop ;)

Grant.
--
http://bugs.id.au/
From: Robert Nichols on
On 05/17/2010 06:37 AM, Riccardo wrote:
> I have 80 GB Maxtor Hard Disk on Linux Fedora Core 1 but
> when I try to using fdisk command, it shows:
>
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 255 2048256 83 Linux
> /dev/hda2 256 765 4096575 83 Linux
> /dev/hda3 766 1275 4096575 83 Linux
> /dev/hda4 1276 4427 25318440 f Win95 Ext'd (LBA)
> /dev/hda5 1276 1785 4096543+ 83 Linux
> /dev/hda6 1786 2167 3068383+ 82 Linux swap
> /dev/hda7 2168 2422 2048256 83 Linux
> /dev/hda8 2423 2677 2048256 83 Linux
>
> I can see 9729 cylinders but by fdisk I can create partition until to
> 4427 cylinder,
> perhaps HD has been cloned from smaller to bigger HD by dd command ?
> How to solve it for creating new partition on all free space on disk ?

Your extended partition (hda4) currently ends at cylinder 4427. You
need to grow the extended partition to include the rest of the disk.
You can use gparted (and probably other tools) to do that safely.

If you're brave, you can do it with fdisk by deleting partition 4 and
then making a new extended partition from cylinder 1276 to the end
of the disk. You'll then need to re-create partitions 5 through 8
in exactly the same places as they were before if you want to
preserve the data that was on them.

Safer to use gparted.

--
Bob Nichols AT comcast.net I am "RNichols42"
From: Nico Kadel-Garcia on
On May 17, 7:37 am, Riccardo <ric.castell...(a)alice.it> wrote:
> I have 80 GB Maxtor Hard Disk on Linux Fedora Core 1 but
> when I try to using fdisk command, it shows:
>
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1       255   2048256   83  Linux
> /dev/hda2           256       765   4096575   83  Linux
> /dev/hda3           766      1275   4096575   83  Linux
> /dev/hda4          1276      4427  25318440    f  Win95 Ext'd (LBA)
> /dev/hda5          1276      1785   4096543+  83  Linux
> /dev/hda6          1786      2167   3068383+  82  Linux swap
> /dev/hda7          2168      2422   2048256   83  Linux
> /dev/hda8          2423      2677   2048256   83  Linux
>
> I can see 9729 cylinders but by fdisk I can create partition until to
> 4427 cylinder,
> perhaps HD has been cloned from smaller to bigger HD by dd command ?
> How to solve it for creating new partition on all free space on disk ?

Update to something that's not obsolete for five years. You have
plenty of space to install Fedora 12: the Fedora Legacy project is
*DEAD*, as it should be, because maintaining such out of date releases
is an incredible wate of engineering time better spent updating your
systems to contemporary software and security tools. Please don't
waste your time this way.
From: Pascal Hambourg on
Hello,

Robert Nichols a �crit :
>
> Your extended partition (hda4) currently ends at cylinder 4427. You
> need to grow the extended partition to include the rest of the disk.

Indeed, there can be only 4 primary partitions including the extended
partition.

> You can use gparted (and probably other tools) to do that safely.

For instance cfdisk will automatically enlarge the extended partition
when adding logical partitions.