Re: 4k sector size and WD20EARS

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

 



On 04/08/2010 06:02 PM, Martin K. Petersen wrote:
For unknown reasons these drive report themselves as 512-byte drives
despite using 4096-byte sectors internally.

ouch.

However, recent fdisk/parted will align on a 1MB boundary by
default which happens do the trick in this particular case

Alexander>   1 Primary 0 3907024064 63 3907024065 Linux (83) None
Alexander>  alex@hal:~$

No, you should shift the start sector using the fdisk's advanced menu.

I created this partition table using cfdisk (util-linux 2.17 from debian/experimental). I guess even that is too old?

I now re-created the partition table using fdisk from util-linux-ng git and got this:

Command (m for help): p

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2afff6d1

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  3907029167  1953513560   83  Linux

but:

$ sudo cfdisk -P s /dev/sdb
FATAL ERROR: Bad primary partition 0: Partition ends in the final partial cylinder

bug?

thanks for the help,
Alexander
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux