Skip to content

Commit c58dff9

Browse files
committed
installation/guides/chroot: improve the fstab section
- explain how to change mount options - align examples to what the installer does - minor wording and order changes
1 parent 5beec48 commit c58dff9

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

src/installation/guides/chroot.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,17 @@ generated from currently mounted filesystems by copying the file `/proc/mounts`:
215215

216216
Remove lines in `/etc/fstab` that refer to `proc`, `sys`, `devtmpfs` and `pts`.
217217

218+
The partition scheme used throughout previous examples yields the following
219+
`fstab`:
220+
221+
```
222+
/dev/sda1 /boot/efi vfat rw,relatime,[...] 0 0
223+
/dev/sda2 / ext4 rw,relatime,[...] 0 0
224+
```
225+
226+
Note: The output of `/proc/mounts` will have a single space between each field.
227+
The columns are aligned here for readability.
228+
218229
Replace references to `/dev/sdXX`, `/dev/nvmeXnYpZ`, etc. with their respective
219230
UUID, which can be found by running
220231
[blkid(8)](https://man.voidlinux.org/blkid.8). Referring to filesystems by their
@@ -224,28 +235,21 @@ essential. In other situations, disks will always have the same name unless
224235
drives are physically added or removed. Therefore, this step may not be strictly
225236
necessary, but is almost always recommended.
226237

238+
Customize the mount options if desired. A list of available options can be found
239+
in [mount(8)](https://man.voidlinux.org/mount.8) and in filesystem-specific
240+
manual pages.
241+
227242
Change the last zero of the entry for `/` to `1`, and the last zero of every
228243
other line to `2`. These values configure the behaviour of
229244
[fsck(8)](https://man.voidlinux.org/fsck.8).
230245

231-
For example, the partition scheme used throughout previous examples yields the
232-
following `fstab`:
233-
234-
```
235-
/dev/sda1 /boot/efi vfat rw,relatime,[...] 0 0
236-
/dev/sda2 / ext4 rw,relatime 0 0
237-
```
238-
239-
The information from `blkid` results in the following `/etc/fstab`:
246+
For example:
240247

241248
```
242-
UUID=6914[...] /boot/efi vfat rw,relatime,[...] 0 2
243-
UUID=dc1b[...] / ext4 rw,relatime 0 1
249+
UUID=6914[...] /boot/efi vfat defaults 0 2
250+
UUID=dc1b[...] / ext4 defaults 0 1
244251
```
245252

246-
Note: The output of `/proc/mounts` will have a single space between each field.
247-
The columns are aligned here for readability.
248-
249253
Add an entry to mount `/tmp` in RAM:
250254

251255
```
@@ -255,7 +259,7 @@ tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
255259
If using swap space, add an entry for any swap partitions:
256260

257261
```
258-
UUID=1cb4[...] swap swap rw,noatime,discard 0 0
262+
UUID=1cb4[...] none swap defaults 0 0
259263
```
260264

261265
## Installing GRUB

0 commit comments

Comments
 (0)