@@ -202,6 +202,17 @@ generated from currently mounted filesystems by copying the file `/proc/mounts`:
202202
203203Remove lines in ` /etc/fstab ` that refer to ` proc ` , ` sys ` , ` devtmpfs ` and ` pts ` .
204204
205+ The partition scheme used throughout previous examples yields the following
206+ ` fstab ` :
207+
208+ ```
209+ /dev/sda1 /boot/efi vfat rw,relatime,[...] 0 0
210+ /dev/sda2 / ext4 rw,relatime,[...] 0 0
211+ ```
212+
213+ Note: The output of ` /proc/mounts ` will have a single space between each field.
214+ The columns are aligned here for readability.
215+
205216Replace references to ` /dev/sdXX ` , ` /dev/nvmeXnYpZ ` , etc. with their respective
206217UUID, which can be found by running
207218[ blkid(8)] ( https://man.voidlinux.org/blkid.8 ) . Referring to filesystems by their
@@ -211,28 +222,21 @@ essential. In other situations, disks will always have the same name unless
211222drives are physically added or removed. Therefore, this step may not be strictly
212223necessary, but is almost always recommended.
213224
225+ Customize the mount options if desired. A list of available options can be found
226+ in [ mount(8)] ( https://man.voidlinux.org/mount.8 ) and in filesystem-specific
227+ manual pages.
228+
214229Change the last zero of the entry for ` / ` to ` 1 ` , and the last zero of every
215230other line to ` 2 ` . These values configure the behaviour of
216231[ fsck(8)] ( https://man.voidlinux.org/fsck.8 ) .
217232
218- For example, the partition scheme used throughout previous examples yields the
219- following ` fstab ` :
220-
221- ```
222- /dev/sda1 /boot/efi vfat rw,relatime,[...] 0 0
223- /dev/sda2 / ext4 rw,relatime 0 0
224- ```
225-
226- The information from ` blkid ` results in the following ` /etc/fstab ` :
233+ For example:
227234
228235```
229- UUID=6914[...] /boot/efi vfat rw,relatime,[...] 0 2
230- UUID=dc1b[...] / ext4 rw,relatime 0 1
236+ UUID=6914[...] /boot/efi vfat defaults 0 2
237+ UUID=dc1b[...] / ext4 defaults 0 1
231238```
232239
233- Note: The output of ` /proc/mounts ` will have a single space between each field.
234- The columns are aligned here for readability.
235-
236240Add an entry to mount ` /tmp ` in RAM:
237241
238242```
@@ -242,7 +246,7 @@ tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
242246If using swap space, add an entry for any swap partitions:
243247
244248```
245- UUID=1cb4[...] swap swap rw,noatime,discard 0 0
249+ UUID=1cb4[...] none swap defaults 0 0
246250```
247251
248252## Installing GRUB
0 commit comments