banner

After booting into Linux Mint, sometimes my internal drive (other than the system drive) is not mounted. Upon checking /etc/fstab, I noticed that only the system drive entry is listed, which is why the internal drive is not automatically mounted during boot.

How to Fix

1. List all available drives with their UUIDs

First, you need to gather the UUIDs of all your drives. Open a terminal and use the command below, this will list all available drives with the relevant information, take note the UUID of the drive that you want to automatically mount (e.g., /dev/sda1):

lsblk -o NAME,MOUNTPOINT,FSTYPE,SIZE,UUID

2. Edit /etc/fstab

After identifying the correct UUID for your internal drive, you need to add an entry to the /etc/fstab file so that the drive will be automatically mounted on boot.

  • Open the /etc/fstab file with a text editor using sudo:
sudo nano /etc/fstab
  • Add a new line at the end of the file with the following format:
UUID=<your-uuid-here> <mount-point> <filesystem-type> defaults 0 0
  • For Example:
UUID=xxxx-xxxx-xxxx-xxxx /media/kingston_ssd ext4 defaults 0 0
  • Replace <your-uuid-here> with the UUID you obtained from the lsblk command.
  • Replace <mount-point> with the location where you want to mount the drive (e.g., /media/kingston_ssd).
  • Replace <filesystem-type> with the appropriate filesystem type (e.g., ext4).

3. Create the mount point (if it doesn’t exist)

If the mount point directory (/media/kingston_ssd or whichever you chose) does not exist, you need to create it manually:

sudo mkdir -p /media/kingston_ssd

4. Mount the drive

To test if the changes work, you need to manually unmount all the choosen drive, then you can manually mount the drive using the mount command below, where this will mount all the drives listed in the /etc/fstab file, including your newly added drive:

sudo mount -a

5. Verify if the drive is mounted

You can verify that the drive is now mounted using the command below, this command will show all mounted filesystems and their mount points. Your internal drive should now appear under the specified mount point (/media/kingston_ssd).:

df -hT

6. Reboot and verify

Reboot your system to check if the drive is automatically mounted after the system restarts. After rebooting, you can use the df -hT or lsblk command again to verify that the drive is mounted automatically at boot.


Sources

  1. partitioning - My partition mounted at /home keep getting unmounted after every restart. How to stop this? - Ask Ubuntu