03c.Partitionning Laptop Lenovo - Jubijub/arch-config GitHub Wiki
This part follows closely the Arch wiki Installation Guide, and covers the part called Pre-installation link in the wiki.
The goal of this section is to partition the drives of the computer to be
able to Install Arch, and to mount the drives to start the chroot
environment.
Note
|
It is always assumed that Windows has been installed before Linux. |
-
Linux EFI partition size recommendation (ESP size guide)
-
Windows (UEFI/GPT-based hard drive partition)

In this setup, the OS selection is done at boot time via the EFI bios : F12 during startup, and selecting the right disk. This is thus a dual bootloader dual boot. This setup prevents any OS from messing up with the other one (I am looking at you Windows 11).
Important
|
Windows has to be installed first as it still tries to colonise the Linux boot partition if it exists. |
Capacity | Model | Name | Device path | OS | Usage |
---|---|---|---|---|---|
1907 GiB |
Samsung SSD PM9E1 2Tb NVME PCIe Gen 5 |
Disk 0 |
/dev/nvme0n1 |
Windows |
C: |
3726 GiB |
Samsung SSD 990Pro 4Tb NVME PCIe Gen 4 |
Disk 1 |
/dev/nvme1n1 |
Linux + Linux Home + Windows "Storage" |
/ + ~ + D: |
My laptop has 64GiB of ram, so I am using 64GiB of swap size. This is probably overkill 😃
The linux drive also hosts a 2Gb partition used by Windows for Data storage, so we will partition the last 2Gb on this drive.
Linux Path | Size | Type | Usage |
---|---|---|---|
/dev/nvme1n1p1 |
1.7TiB |
NTFS |
D: (Storage) — WINDOWS |
/dev/nvme1n1p2 |
2048MiB |
EFI System - ef00 |
/boot |
/dev/nvme1n1p3 |
64GiB |
Linux Swap - 8200 |
swap |
/dev/nvme1n1p4 |
(128Gio) |
Linux Filesystem - 8300 |
/ |
/dev/nvme1n1p5 |
(500Gio) |
Linux Filesystem - 8300 |
/home |
/dev/nvme1n1p6 |
(~1.3TiB) |
Linux Filesystem - 8300 |
/projects |
Linux Path | Size | Type | Usage |
---|---|---|---|
/dev/nvme0n1p1 |
100MiB |
EFI System - ef00 |
Windows boot |
/dev/nvme0n1p2 |
16MiB |
??? |
?? |
/dev/nvme0n1p3 |
1.9TiB |
NTFS |
C: |
/dev/nvme0n1p4 |
648MiB |
NTFS |
Recovery |
Warning
|
don’t delete /dev/nvme1n1p1 this is the Windows 11 storage drive.
|
cgdisk /dev/nvme1n1
Delete all partitions except the 1.7Tb Microsoft Basic Data
.
Stay in cgdisk
This follows exactly the partition structure given in the tables above.
Still in cgdisk
:
-
Create boot partition (
/dev/nvme1n1p2
)-
Select free space, choose new option
-
Enter (to set first sector)
-
2048M
(for end sector) -
ef00
(partition type = EFI system) -
boot
(partition name)
-
-
Create swap partition (
/dev/nvme1n1p3
)-
Select free space (the large one), choose new option
-
-64G
(to set first sector, starting from the end) -
Enter (default value for end sector)
-
8200
(partition type = Linux swap 8200) -
swap
(partition name)
-
-
Create root partition (
/dev/nvme1n1p4
)-
Select free space (the large one), choose new option
-
Enter (default value for first sector)
-
128G
(to set the end sector) -
Enter (partition type = Linux Filesystem 8300)
-
root
(partition name)
-
-
Create home partition (
/dev/nvme1n1p5
)-
Select free space (the large one), choose new option
-
Enter (default value for first sector)
-
500G
(to set the end sector) -
Enter (partition type = Linux Filesystem 8300)
-
home
(partition name)
-
-
Create projects partition (
/dev/nvme1n1p6
)-
Select free space (the large one), choose new option
-
Enter (default value for first sector)
-
Enter (default value for end sector)
-
Enter (partition type = Linux Filesystem 8300)
-
projects
(partition name)
-
-
Select write
-
Confirm by typing
yes
-
Select quit
mkfs.fat -F32 /dev/nvme1n1p2 # (1)
mkfs.ext4 /dev/nvme1n1p4 -L ArchLinux # (2)
mkfs.ext4 /dev/nvme1n1p5 -L Home # (3)
mkfs.ext4 /dev/nvme1n1p6 -L Projects # (4)
mkswap /dev/nvme1n1p3 -L Swap # (5)
swapon /dev/nvme1n1p3 # (6)
-
formats /boot <.> formats / <.> formats /home <.> formats /projects <.> declares /swap <.> enables swapping
lsblk -o name,model,fstype,parttype,mountpoint,label,size,partuuid
-
Standard Linux partition should have parttype
0FC63DAF-8483-4772-8E79-3D69D8477DE4
-
Swap Linux partition should have parttype
0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
mount /dev/nvme1n1p4 /mnt # (1)
mkdir /mnt/boot # (2)
mount /dev/nvme1n1p2 /mnt/boot
mkdir /mnt/home # (3)
mount /dev/nvme1n1p5 /mnt/home
mkdir /mnt/projects # (4)
mount /dev/nvme1n1p6 /mnt/projects
-
Mount / <.> creates the
boot
mounting point and mounts /boot <.> creates thedata
mounting point and mounts /home <.> creates thedata
mounting point and mounts /projects
Note
|
You can proceed to the next section. |