mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
26 lines
968 B
Plaintext
26 lines
968 B
Plaintext
# 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
|
|
# 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
|
|
# and to /etc/fstab:
|
|
/swap none swap sw 0 0
|
|
# Note that swap shouldn't be used if there is encryption present.
|
|
|
|
# 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
|
|
|
|
# Mount my external HDD automatically on boot.
|
|
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
|