From 94bfab124f4ae870d2c5ec3a0b37fe03bea94f0e Mon Sep 17 00:00:00 2001 From: Asocia Date: Wed, 22 Dec 2021 18:31:04 +0300 Subject: [PATCH] TIL: Automatically mounting a device --- system/automatically-mounting-a-device.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 system/automatically-mounting-a-device.md diff --git a/system/automatically-mounting-a-device.md b/system/automatically-mounting-a-device.md new file mode 100644 index 0000000..0855d0e --- /dev/null +++ b/system/automatically-mounting-a-device.md @@ -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= ` + +For example: + - `UUID=eb67c479-962f-4bcc-b3fe-cefaf908f01e /mnt/sdb9 ext4 defaults 0 2` + +Run `sudo mount -a` to see if it works.