2014-12-27 10:09:00 +01:00
|
|
|
# Use 'blkid' to print the universally unique identifier for a
|
|
|
|
# device; this may be used with UUID= as a more robust way to name devices
|
|
|
|
# that works even if disks are added and removed. See fstab(5).
|
|
|
|
|
|
|
|
## swap file creation and auto-mount
|
2024-08-28 13:47:47 +02:00
|
|
|
# btrfs? # btrfs filesystem mkswapfile --size 4G /swap # proceed to step 4.
|
|
|
|
# Otherwise:
|
|
|
|
# 1. # fallocate -l 4G /swap
|
|
|
|
# 2. # chmod 600 /swap
|
|
|
|
# 3. # mkswap /swap
|
|
|
|
# 4. # swapon /swap
|
2014-12-27 10:09:00 +01:00
|
|
|
# and to /etc/fstab:
|
|
|
|
/swap none swap sw 0 0
|
2019-09-09 23:21:48 +02:00
|
|
|
# Note that swap shouldn't be used if there is encryption present.
|
2014-12-27 10:09:00 +01:00
|
|
|
|
2019-09-09 23:21:48 +02:00
|
|
|
# Don't mount Windows partition automatically, allow normal users to mount
|
|
|
|
# it without root: noauto,user
|
|
|
|
UUID= /media/Windows ntfs defaults,rw,noauto,user 0 0
|
2014-12-27 10:09:00 +01:00
|
|
|
|
|
|
|
# Mount my external HDD automatically on boot.
|
2019-09-09 23:21:48 +02:00
|
|
|
UUID= /media/Mikaelan ntfs defaults,rw 0 0
|
|
|
|
|
|
|
|
# tmpfs means stored on RAM, size defaults to half of it, can be forced
|
|
|
|
# with size=<number><M|G>
|
|
|
|
tmpfs /tmp tmpfs rw,nodev,nosuid 0 0
|