You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/guides/custom-disk.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,16 @@ description: Options on how to handle disk partitioning
4
4
---
5
5
6
6
So, if you are planning on custom partitioning, you probably know what you're doing, so I'll make this pretty short.
7
+
There are several tools you can use to manually partition your disks, depending on your preference:
8
+
- cfdisk - a simple, menu-driven tool that’s easy to navigate.
9
+
- fdisk - more barebones and command-driven, but widely available.
10
+
- parted - supports both MBR and GPT partition tables and can handle larger disks.
11
+
- gparted (GUI) - if you prefer a graphical interface, this one makes it very visual.
12
+
13
+
For example, with `cfdisk`, you can start it by running:
14
+
`sudo cfdisk <your disk, e.g. /dev/sda or /dev/nvme0n1>`
15
+
16
+
If you don't know your disk name, you can check with `lsblk`.
7
17
8
18
### Minimal Requirements to install
9
19
@@ -12,6 +22,36 @@ So, if you are planning on custom partitioning, you probably know what you're do
12
22
| /boot/efi | 250 MB | FAT32 (or VFAT) |
13
23
| / | 10 GB | Linux native (ext4 or btrfs are recommended) |
14
24
25
+
### Swap
26
+
Optionally you can have a [swap partition](https://wiki.archlinux.org/title/Swap).
27
+
>For systems without hibernation and RAM under 2GB, use 2-3 times your RAM; for 2GB to 8GB of RAM, use RAM size; and for more than 8GB RAM, a swap size of 8GB or less, or even half RAM, is often sufficient, though memory-intensive tasks might require more.
28
+
29
+
In simple words if you have lets say 8GB of RAM installed on your machine then your swap partition size should be 8 x 1/2 which is half of 8
30
+
31
+
If you have 16 GB of RAM on your machine then your swap partition size would be 16 x 1/2 which is 8GB
32
+
Here's an example of a minimal disk setup with swap partition for 16 GB of RAM:
33
+
| Mountpoint|Min Size| FS |
34
+
|-----------|--------|---------------|
35
+
| /boot/efi | 250 MB | FAT32 (or VFAT) |
36
+
|| 8 GB | Linux Swap |
37
+
| / | 10 GB | Linux native (ext4 or btrfs are recommended) |
38
+
39
+
> Always remember that you should **not** mount the swap partition anywhere on the device just leave the mountpoint empty
40
+
41
+
Taking the Windows dual boot example from below with swap your partition table should look like this if you have 8GB of RAM
42
+
| Mountpoint | Size | FS |
43
+
|--------------------|--------|-----------|
44
+
| Windows EFI | 100 MB | Fat32 |
45
+
| Microsoft reserved | 250 MB | NTFS |
46
+
| Basic data part. | 250 GB | NTFS |
47
+
| Windows Recovery | 800 MB | NTFS |
48
+
| /boot/efi | 250 MB | FAT32 |
49
+
|| 4 GB | Linux Swap |
50
+
| / | 240 GB | EXT4 |
51
+
52
+
53
+
---
54
+
15
55
Here is an example for windows dual boot on a 500G drive:
0 commit comments