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-02-23 14:48:51 +01:00
|
|
|
`UUID=(uuid) (mountpath) (filesystem) defaults,noatime 0 2`
|
2022-04-24 14:52:35 +02:00
|
|
|
|
|
|
|
## Samba shares
|
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
```sh
|
|
|
|
//(ip)/(path)/ (mountpath) cifs uid=0,credentials=(path to credentials file),iocharset=utf8,noperm,nofail 0 0
|
|
|
|
```
|
|
|
|
|
|
|
|
Example credentials file:
|
|
|
|
|
2022-04-24 14:52:35 +02:00
|
|
|
```
|
|
|
|
user=(user)
|
|
|
|
password=(password)
|
|
|
|
domain=WORKGROUP
|
|
|
|
```
|
2023-02-23 14:48:51 +01:00
|
|
|
|
|
|
|
Make sure to set permissions to the credential files to something like 700.
|