Skip to content

Commit c4301fd

Browse files
authored
Merge pull request #5 from rudy-in/main
Update custom-disk.md
2 parents 0ab83fc + ea66e30 commit c4301fd

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/content/docs/guides/custom-disk.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ description: Options on how to handle disk partitioning
44
---
55

66
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`.
717

818
### Minimal Requirements to install
919

@@ -12,6 +22,36 @@ So, if you are planning on custom partitioning, you probably know what you're do
1222
| /boot/efi | 250 MB | FAT32 (or VFAT) |
1323
| / | 10 GB | Linux native (ext4 or btrfs are recommended) |
1424

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+
1555
Here is an example for windows dual boot on a 500G drive:
1656

1757
| Mountpoint | Size | FS |

0 commit comments

Comments
 (0)