If you have a removable drive and you don't want to manually mount every time you boot your PC, you can easily set it up to automatically mount every time your PC boots up.
Gathering the required info
In order to set up the auto mount, you need to know several things such as:
- the drive partition directory
- mount point
- UUID
- File System or FS
- To find these information, run
lsblk -f
on your terminal.
You will get something like this:
Look for your desired partition directory such as
sdc1
orsdb1
and take note of the FSTYPE and copy the UUID.Next, you will need to create a mount point by running this command:
sudo mkdir /run/media/user/directory_name
where user
is your username and directory_name
is what you want the partition to be called.
Once done, use vim/nano or any other text editor to open
/etc/ftsab
It will look something like this:
- Create a new line and add the following entry
# /dev/your_partition_directory
UUID=(copied UUID here) mount_point(eg: /run/media/user/partition) filetype(eg: ntfs or ext4) rw,relatime
Match the format with the example image above and then save and exit.
Reboot your pc and check if the partitions are automatically mounted.
Top comments (0)