Auto-mount devices in Linux
Linux Nomad
In this video we demonstrate how to recognize unmounted devices in your system and auto mount them during boot up.
Steps followed:
- Recognize devices: $ lsblk -f
- Create mountpoint: $ sudo mkdir /media/username/my_device_name
- Add mountpoint to fstab file: $ sudo gedit /etc/fstab /dev/sdX /media/username/my_device_name fstype defaults,nofail 0 0
- Restart system
Note: You could create a mountpoint directory in /mnt/my_device_name instead of the /media/username/my_device_name.
References: mount (https://man7.org/linux/man-pages/man8/mount.8.html) fstab (https://man7.org/linux/man-pages/man5/fstab.5.html)
2021-04-11
0.0 LBC
Public Domain
140258233 Bytes