Renamed /dev/sda2 to sda1

This commit is contained in:
Luke Else 2025-03-20 16:44:34 +00:00
parent 30ae11027b
commit 418e989946

View File

@ -1,11 +1,11 @@
# Assuming /dev/sda is the target disk
parted /dev/sda -- mklabel gpt
parted /dev/sda -- mkpart primary ext4 1MiB 100%
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
cryptsetup luksFormat /dev/sda2
cryptsetup open /dev/sda2 root
cryptsetup luksFormat /dev/sda1
cryptsetup open /dev/sda1 root
mkfs.ext4 /dev/mapper/root
mount /dev/mapper/root /mnt