2022-04-24 14:52:35 +02:00
|
|
|
---
|
|
|
|
title: Fstab
|
2022-11-19 15:25:20 +01:00
|
|
|
visible: true
|
2022-04-24 14:52:35 +02:00
|
|
|
---
|
|
|
|
|
2022-06-06 18:33:27 +02:00
|
|
|
[toc]
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-04-24 14:52:35 +02:00
|
|
|
## Other drives
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-04-24 14:52:35 +02:00
|
|
|
Find uuid with `sudo blkid`
|
2023-06-02 19:25:19 +02:00
|
|
|
`UUID=[UUID] [MOUNTPATH] [FILESYSTEM] defaults,noatime 0 2`
|
2022-04-24 14:52:35 +02:00
|
|
|
|
|
|
|
## Samba shares
|
|
|
|
|
2023-06-02 19:25:19 +02:00
|
|
|
```
|
|
|
|
//[IP]/[PATH]/ [MOUNTPATH] cifs uid=0,credentials=[CREDENTIALS FILE],iocharset=utf8,noperm,nofail 0 0
|
2023-02-23 14:48:51 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Example credentials file:
|
|
|
|
|
2022-04-24 14:52:35 +02:00
|
|
|
```
|
2023-06-02 19:25:19 +02:00
|
|
|
user=[USER]
|
|
|
|
password=[PASSWORD]
|
2022-04-24 14:52:35 +02:00
|
|
|
domain=WORKGROUP
|
|
|
|
```
|
2023-02-23 14:48:51 +01:00
|
|
|
|
|
|
|
Make sure to set permissions to the credential files to something like 700.
|