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> GPT? <code brush="bash"> ----start ------end -----size -----type 0 0 1 pmbr 1 33 33 GPT 34 34815 34782 efi 34816 107462655 107427840 LUKS 107462656 107463853 1198 unused 107463854 107463886 33 GPT </code> uEFI won't boot from that. Since mkdosfs was giving warnings, try with a larger EFI part? <code brush="bash"> ----start ------end -----size -----type 0 0 1 pmbr 1 33 33 GPT 34 206847 206814 efi 206848 107462655 107255808 LUKS 107462656 107463853 1198 unused 107463854 107463886 33 GPT </code> Nope. That didn't work either. Ended up using Windows 7 installer to create the necessary GPT stuff; apparently the boot settings manager in the system configuration rom does not set it up correctly. <code brush="plain"> ----start ------end -----size -----type ----name 0 0 1 pmbr ---- 1 33 33 GPT ---- 34 65535 65502 efi EFIboot 65536 107462655 107397120 LUKS LUKS 107462656 107463854 1198 boot BIOSboot 107463855 107463887 33 GPT ---- </code>