information:partitioning
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
information:partitioning [2016/10/02 21:02] – Sean Rhone | information:partitioning [2016/10/05 14:46] (current) – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | * Various partitioning layouts | ||
+ | * Tailored for [[distros: | ||
+ | |||
+ | ====== GPT, EFI, No LVM, No Encryption ====== | ||
+ | |||
+ | * 512.0 MiB **ef00** EFI System | ||
+ | * [remaining] **8300** Linux filesystem | ||
+ | |||
+ | ===== gdisk ===== | ||
+ | |||
+ | * n (create new partition) | ||
+ | * 1 (partition number) | ||
+ | * Enter (use default first sector) | ||
+ | * +512MiB (last sector) | ||
+ | * ef00 (EFI System partition type) | ||
+ | |||
+ | * n (create new partition) | ||
+ | * 2 (partition number) | ||
+ | * Enter (use default first sector) | ||
+ | * Enter (use default last sector) | ||
+ | * 8300 (Linux filesystem partition type) | ||
+ | |||
+ | * p (verify two partitions): | ||
+ | * 1 512.0 MiB EF00 EFI System | ||
+ | * 2 (remaining space) 8300 Linux filesystem | ||
+ | |||
+ | * w (write changes to disk; confirm with y) | ||
+ | |||
+ | gdisk '/ | ||
+ | |||
+ | ===== Format ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkfs.fat -F32 '/ | ||
+ | |||
+ | ==== XFS ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkfs.xfs '/ | ||
+ | |||
+ | ==== F2FS ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkfs.f2fs '/ | ||
+ | |||
+ | ===== Mount ===== | ||
+ | |||
+ | mount '/ | ||
+ | |||
+ | mkdir -p '/ | ||
+ | |||
+ | mount '/ | ||
+ | |||
+ | ====== GPT, EFI, LVM ====== | ||
+ | |||
+ | * 512.0 MiB **ef00** EFI System | ||
+ | * [remaining] **8e00** Linux LVM | ||
+ | |||
+ | ===== gdisk ===== | ||
+ | |||
+ | * n (create new partition) | ||
+ | * 1 (partition number) | ||
+ | * Enter (use default first sector) | ||
+ | * +512MiB (last sector) | ||
+ | * ef00 (EFI System partition type) | ||
+ | |||
+ | * n (create new partition) | ||
+ | * 2 (partition number) | ||
+ | * Enter (use default first sector) | ||
+ | * Enter (use default last sector) | ||
+ | * 8e00 (Linux LVM partition type) | ||
+ | |||
+ | * p (verify two partitions): | ||
+ | * 1 512.0 MiB EF00 EFI System | ||
+ | * 2 (remaining space) 8E00 Linux LVM | ||
+ | |||
+ | * w (write changes to disk; confirm with y) | ||
+ | |||
+ | gdisk '/ | ||
+ | |||
+ | ===== LVM ===== | ||
+ | |||
+ | ==== Encrypted ==== | ||
+ | |||
+ | cryptsetup -v -c ' | ||
+ | |||
+ | cryptsetup luksOpen '/ | ||
+ | |||
+ | pvcreate '/ | ||
+ | |||
+ | vgcreate ' | ||
+ | |||
+ | lvcreate -l 100%FREE ' | ||
+ | |||
+ | ==== Unencrypted ==== | ||
+ | |||
+ | * TODO: Verify why this is '' | ||
+ | |||
+ | pvcreate '/ | ||
+ | |||
+ | vgcreate ' | ||
+ | |||
+ | lvcreate -l 100%FREE ' | ||
+ | |||
+ | ===== Format ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkfs.fat -F32 '/ | ||
+ | |||
+ | ==== XFS ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkfs.xfs '/ | ||
+ | |||
+ | ==== F2FS ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkfs.f2fs '/ | ||
+ | |||
+ | ===== Mount ===== | ||
+ | |||
+ | mount '/ | ||
+ | |||
+ | mkdir -p '/ | ||
+ | |||
+ | mount '/ | ||
+ | |||
+ | ====== MBR, BIOS, No LVM, No Encryption ====== | ||
+ | |||
+ | ===== fdisk ===== | ||
+ | |||
+ | * n (create new partition) | ||
+ | * p (primary partition type) | ||
+ | * 1 (partition number) | ||
+ | * Enter (use default first sector) | ||
+ | * Enter (use default last sector) | ||
+ | |||
+ | * p (verify one partition): | ||
+ | * /dev/sda1 (rest) 83 Linux | ||
+ | |||
+ | * w (write changes to disk) | ||
+ | |||
+ | fdisk '/ | ||
+ | |||
+ | ===== Format ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkfs.xfs '/ | ||
+ | |||
+ | ===== Mount ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mount '/ |
/var/www/wiki/data/pages/information/partitioning.txt · Last modified: 2016/10/05 14:46 by Sean Rhone