[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Squeeze installation fdisk bug



Hi,

I installed Debian Squeeze on a server with 2 Disks on RAID 1
The second disk failed and I was trying to replace it with a new one.
And I found this in the partition table

================================
root@vmsrv:~# fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e3c2

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          37      291840   fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2              37         159      976896   fd  Linux raid autodetect
Partition 2 does not end on cylinder boundary.
/dev/sda3             159        2225    16601088   fd  Linux raid autodetect
/dev/sda4            2225       60802   470515712   fd  Linux raid autodetect
root@vmsrv:~#
==========================================

The disk has only 60801 cylinders but the ending cylinder is 60802 for the 4th partition :-(

The end of a partion and the begining of the following one are identical.

If i try to create the same on another identical disk using fdisk I get the value out of range error.

Finally I did

#sfdisk -d /dev/sda | sfdisk -f /dev/sdb

and got the hard disk added to raid.

Is this partitioning dangerous?

How should I rectify it?

Thanks

--Siju




Reply to: