@@ -215,6 +215,17 @@ generated from currently mounted filesystems by copying the file `/proc/mounts`:
215215
216216Remove 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+
218229Replace references to ` /dev/sdXX ` , ` /dev/nvmeXnYpZ ` , etc. with their respective
219230UUID, 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
224235drives are physically added or removed. Therefore, this step may not be strictly
225236necessary, 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+
227242Change the last zero of the entry for ` / ` to ` 1 ` , and the last zero of every
228243other 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-
249253Add an entry to mount ` /tmp ` in RAM:
250254
251255```
@@ -255,7 +259,7 @@ tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
255259If 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