[arch-general] How to align partitions?

Stayvoid stayvoid at gmail.com
Thu Aug 30 10:24:56 EDT 2012


Hi,

I'd like to know how to create aligned partitions on a 160GB disk
which uses a 512B sector size.
(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?

I'm planning to encrypt swap and the third partition with dm-crypt (not LUKS).
Separate /boot is needed to mount and decrypt them after booting.

[1] http://forums.gentoo.org/viewtopic-t-838522.html
[2] http://superuser.com/questions/349887/gnu-parted-how-to-deal-with-the-error-about-proper-aligment-of-partitions

Thanks


More information about the arch-general mailing list