mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-21 16:19:37 +01:00
TIL: Automatically mounting a device
This commit is contained in:
parent
089e6ebae8
commit
94bfab124f
9
system/automatically-mounting-a-device.md
Normal file
9
system/automatically-mounting-a-device.md
Normal file
@ -0,0 +1,9 @@
|
||||
- First run `sudo blkid` to get the UUID of the device you want to mount.
|
||||
- Create a mount point for your device.
|
||||
- Add the following line to `/etc/fstab`:
|
||||
- `UUID=<uuid-of-your-drive> <mount-point> <file-system-type> <mount-option> <dump> <pass>`
|
||||
|
||||
For example:
|
||||
- `UUID=eb67c479-962f-4bcc-b3fe-cefaf908f01e /mnt/sdb9 ext4 defaults 0 2`
|
||||
|
||||
Run `sudo mount -a` to see if it works.
|
Loading…
Reference in New Issue
Block a user