Re: gpart and sector size

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Thu, 08 Apr 2010 16:24:12 +0200
Alexey Tarasov <me_at_lexasoft.ru> writes:
> Ok, in case of GPT? :-)

I doubt it, but I don't know for sure.

> GPT implementation can be the simplest solution to this problem
> compared to implementing additional ATA commands to determine if disk
> is in Advanced Format.

There are two issues:

1) There is already an ATA command to report both physical and logical
   sector sizes, but the disk lies - it always reports 512/512.

2) The disk may have already been formatted on a system that doesn't
   support 4k sectors, and may contain unaligned partitions and file
   systems, which won't be visible if we forcibly and unconditionally
   use 4k sectors.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Thu Apr 08 2010 - 12:24:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:02 UTC