[arch-general] How to align partitions?

Sébastien Luttringer seblu at seblu.net
Thu Aug 30 11:17:44 EDT 2012


On Thu, Aug 30, 2012 at 4:24 PM, Stayvoid <stayvoid at gmail.com> wrote:
> Hi,
>
> I'd like to know how to create aligned partitions on a 160GB disk
> which uses a 512B sector size.

Almost all recent HDD/SSD have 4KiB internal sector (even when
reported as 512B by ATA). Read [1].

> (Partition table: msdos)
>
> I've got the theory [1, 2], but I can't make it work.
>
> I'd like to have three partitions:
> 1. ext3 ~ 100mb /boot
> 2. linux-swap ~ 1GB swap
> 3. ext3 (for the rest of the system)
>
> How to adjust the sizes?
Recent versions of fdiks, parted, gdisk do it for you. This is boring
in some cases.

[1] https://ata.wiki.kernel.org/index.php/ATA_4_KiB_sector_issues

-- 
Sébastien "Seblu" Luttringer
www.seblu.net


More information about the arch-general mailing list