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

Re: debian installer 4k sectors



On Fri, Apr 08, 2016 at 08:36:50AM +0200, Pavel Kosina wrote:
> Hi,
> 
> several times I tried install Debian stable/testing. I have MB Asrock UEFI
> D1800B-ITX and HDD WD20EFRX. Debian installer /part where partitioning and
> formatting happens/ never formats to correct sectors 4k. It always formats
> to 512b:
> ----------------------
> linuxbox:~# fdisk -l
> Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disklabel type: dos
> Disk identifier: 0xa10b2c0d
> 
> Device     Boot      Start        End    Sectors  Size Id Type
> /dev/sda1  *          2048 3903531007 3903528960  1.8T 83 Linux
> /dev/sda2       3903533054 3907028991    3495938  1.7G  5 Extended
> /dev/sda5       3903533056 3907028991    3495936  1.7G 82 Linux swap /
> Solaris
> 
> Partition 2 does not start on physical sector boundary.
> -----------------------------
> 
> 
> why is that? Is that bug or I miss something?
> Due to this there is also error: "Partition 2 does not start on physical
> sector boundary."

Sorry I don't have the answer, but:
https://wiki.archlinux.org/index.php/Advanced_Format
shows the HDD WD20EFRX to be logical 512 and physical 4096

and
http://excess.org/article/2010/11/wd-hdd-lying-about-4k-sectors/

It seems the first partition is aligned correctly. 

Hopefully the answer isn't "you have to calculate the sector alignment 
yourself and physically enter those values."

-- 
The media's the most powerful entity on earth. 
They have the power to make the innocent guilty 
and to make the guilty innocent, and that's power.
 -- Malcolm X


Reply to: