Last active
February 29, 2024 04:54
-
-
Save bouroo/418df9bef4de2b8960b4ff4a704da4a1 to your computer and use it in GitHub Desktop.
Example /etc/fstab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/fstab: static file system information. | |
# | |
# 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). | |
# | |
# <file system> <mount point> <type> <options> <dump> <pass> | |
# Optimize btrfs for SSD | |
UUID=xxx /mount/to btrfs defaults,ssd,subvol=@ 0 1 | |
# Optimize ext4 for SSD | |
UUID=xxx /mount/to ext4 noatime,nodiratime,errors=remount-ro 0 1 | |
# Mount NTFS | |
UUID=xxx /media/data ntfs defaults,windows_name,exec,noatime,nodiratime,umask=000,uid=1000,errors=remount-ro 0 2 | |
# Use swapfile | |
/swapfile none swap sw 0 0 | |
# Mount samba share | |
# Add "mount /media/smb" into /etc/rc.local before exit | |
//ip/path /media/smb cifs username="username",password="password",vers=3.0,noauto,user,_netdev 0 0 | |
# Mount nfs share | |
ip:/export /media/nfs nfs defaults,bg,noatime,nodiratime,noauto,users,_netdev 0 0 | |
# Mount bind | |
/path/to/src /path/to/dst none bind 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment