Re: Howto for properly partitioning new drives with 4096 byte sectors (like Western Digital Advanced Format EARS drives)

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

 



On Wed, Jan 20, 2010 at 12:24 AM, Karel Zak <kzak@xxxxxxxxxx> wrote:
> On Tue, Jan 19, 2010 at 07:00:03PM +0100, Aleksander Adamowski wrote:
>> Concerning the recent rollout of HDDs with 4 kb physical sectors and
>
>  install kernel >= 2.6.31, util-linux-ng 2.17, and use fdisk.

Considering the various customizations/patches that distributors do to
packaged kernels, is there a universal method to verify whether the
given kernel supports the necessary functionality (regardless of
reported version)?

Ideally, the method should employ the same syscalls that the new fdisk
and parted would use.

Is using sg_readcap like below sufficient?

$ sudo sg_readcap -l /dev/sdc
Read Capacity results:
.....
Logical block length=512 bytes
Logical blocks per physical block=3 (log base 2) [actual=8]

AFAIU, sg_readcap would not report logical blocks per physical block
on older kernels?

-- 
Best Regards,
  Aleksander Adamowski
  http://olo.org.pl
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux