FindPage
View Source:
CyberLeo/BootstrapGentoo
Note:
You are viewing an old version of this page.
View the current version.
<code brush="bash"> OCz Vertex 2 probably has an eraseblock size of 512kiB, so 1MB alignment works Pregap only needs 32 sectors; boot only needs about 16MB Make sure luks partition (type 0x44) is aligned to 2048 sectors (1MB) on both sides! Leave about 40MB at the end. Might as well p start end size type ---------------------------------------- p 0 31 32 0x00 # Pregap 1 32 34815 34784 0x83 # Boot 2 34816 107380735 107345920 0x44 # LUKS 3 107380736 107463887 83152 0x00 # SSD-padding cryptsetup luksFormat -v -s 256 -c aes-xts-essiv:sha256 -h sha1 --align-payload 2048 /dev/sda2 cryptsetup luksOpen /dev/sda2 mapajani badblocks -b1024 -c1024 -vvwt 0x00 /dev/mapper/mapajani # Or random or whatever; just need to write every sector of the raw dev lvm pvcreate --verbose --metadatasize 1000k /dev/mapper/mapajani lvm pvs -oname,vg_mda_size,pe_start --units s lvm vgcreate --verbose mapajani /dev/mapper/mapajani lvm pvs -oname,vg_mda_size,pe_start --units s lvm lvcreate --verbose --extents 12079 --name root mapajani lvm lvcreate --verbose --extents 1024 --name swap mapajani mke2fs -vvt ext2 -L mapajani-boot /dev/sda1 mke2fs -vvt ext4 -E lazy_itable_init=1 -L mapajani-root /dev/mapper/mapajani-root mkswap -f -L mapajani-swap /dev/mapper/mapajani-swap </code>