Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #166524

Re: debian installer 4k sectors

From Sven Hartge <sven@svenhartge.de>
Newsgroups linux.debian.user
Subject Re: debian installer 4k sectors
Date 2016-04-08 10:10 +0200
Message-ID <rlzEm-Px-19@gated-at.bofh.it> (permalink)
References <rlyoW-8fi-15@gated-at.bofh.it>
Organization Newsfeed am Wurmloch

Show all headers | View raw


Pavel Kosina <peekaa@email.cz> wrote:

> 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?

Partition 2 is the Extended Partition, which is only a container for
logical partitions. The extended partition does not need to be aligned
with the 4096 sector size. Partition 5, the first logical partition,
which contains the real file system needs to be aligned and it is:
3903533056/4096=953011.

> Due to this there is also error: "Partition 2 does not start on physical 
> sector boundary."

This is, because fdisk is a bit dumb in that context.

Everything is fine and correctly aligned.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

debian installer 4k sectors Pavel Kosina <peekaa@email.cz> - 2016-04-08 08:50 +0200
  Re: debian installer 4k sectors Sven Hartge <sven@svenhartge.de> - 2016-04-08 10:10 +0200
    Re: debian installer 4k sectors <peekaa@email.cz> - 2016-04-08 10:30 +0200
      Re: debian installer 4k sectors Sven Hartge <sven@svenhartge.de> - 2016-04-08 11:10 +0200
    Re: debian installer 4k sectors Curt <curty@free.fr> - 2016-04-08 11:00 +0200
  Re: debian installer 4k sectors cbannister@slingshot.co.nz - 2016-04-08 10:30 +0200
  Re: debian installer 4k sectors Felix Miata <mrmazda@earthlink.net> - 2016-04-08 11:00 +0200

csiph-web