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]

 



>>>>> "Aleksander" == Aleksander Adamowski <linux@xxxxxxxxxx> writes:

Aleksander> Is using sg_readcap like below sufficient?

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

sg_readcap sends a SCSI command directly to the disk so that won't work.

You can look for alignment_offset in /sys/block/sdX, call the
BLKALIGNOFF ioctl, or use blockdev from a recent util-linux.

-- 
Martin K. Petersen	Oracle Linux Engineering
--
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