-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfstab
63 lines (52 loc) · 2.89 KB
/
fstab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## device-timeout
# Sometimes it is useful to set a device timeout if some drives won't always be
# connected to the machine This is done by adding two options (e.g. for a 1 sec
# timeout): nofail,x-systemd.device-timeout=1s
## user and group permissions
# user and group permissions can be set with `uid` and `gid`. both
# usernames/groupnames and user-ids/group-ids are accepted
## dir_mode / file_mode
# Network mount systems such as cifs use dir_mode and file_mode to set correct
# permissions these are the same as the octal number for `chmod`:
# 0 | u:{r:4 + w:2 + x:1} | g:{r:4 + w:2 + x:1} | o:{r:4 + w:2 + x:1}
# for example: 0774 = rwx for user (owner); rwx for group; r for others
## dmask / fmask
# Other mount systems (for example vfat and ntfs-3g) use dmask and fmask to set
# correct permissions. here is a handy table to set these permissions
# correctly:
# 0 1 2 3 4 5 6 7
# r + + + + - - - -
# w + + - - + + - -
# x + - + - + - + -
# for example: 003 corresponds to the octal 774.
## dump / pass
# general guideline:
# root partition "/" : dump=0; pass=1
# other partitions : dump=0; pass=2
## <file system> <dir> <type> <options> <dump> <pass>
## linux filesystems
# root
UUID=<root-uuid> / ext4 rw,relatime 0 1
# home
UUID=<home-uuid> /home ext3 rw,relatime 0 2
# swap
UUID=<swap-uuid> none swap defaults 0 0
## shared filesystems [consider adding 'noauto,' if no automounting desired]
# ext3 partitions
UUID=<ext-uuid> /mnt/<name> ext3 rw,relatime,nofail,x-systemd.device-timeout=1s 0 2
# ext4 partitions
UUID=<ext-uuid> /mnt/<name> ext4 rw,relatime,nofail,x-systemd.device-timeout=1s 0 2
# ntfs partitions
UUID=<ntfs-uuid> /mnt/<name> ntfs-3g rw,defaults,nofail,x-systemd.device-timeout=1s,uid=<user>,gid=<user>,dmask=033,umask=033 0 2
# fat partitions (usbs)
UUID=<fat-uuid> /mnt/<name> vfat defaults,nofail,x-systemd.device-timeout=1s,uid=<user>,gid=<user>,dmask=033,umask=033 0 2
# macos formatted HFS drive (note: not HFS+)
/dev/sdxi /mnt/Mac hfsplus auto,user,rw,exec 0 0
# bitlocker windows partition (requires dislocker [AUR])
/dev/nvme0n1p3 /mnt/dislocker fuse.dislocker recovery-password=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX,defaults,nofail,uid=<user>,gid=<user>,dmask=033,umask=033 0 0
/mnt/dislocker/dislocker-file /mnt/c auto defaults,nofail,uid=<user>,gid=<user>,dmask=033,umask=033 0 0
## network filesystems (use \040 to add spaces in path). Add noauto flag if network location should not be automatically mounted.
//<domain>/location/sublocation /mnt/<name> cifs noauto,defaults,nofail,x-systemd.device-timeout=1s,credentials=/home/<user>/.smbcredentials,uid=<user>,gid=<user>,dir_mode=0744,file_mode=0744 0 2
# davfs: nextcloud mount
# add this to /etc/davfs2/secrets: /home/<local-username>/<folder> <local-username> <cloud-password>
https://cloud.example.com/remote.php/dav/files/<cloud-username>/ /home/<local-username>/<folder> davfs noauto,rw,uid=<local-username>,gid=<local-username> 0 0