Problem Statement
How do you mount a drive permanently in Linux?
Explanation
First, identify the drive using lsblk or blkid and note its UUID.
Then add an entry in /etc/fstab specifying the UUID, mount point, and filesystem type. Run mount -a to verify before rebooting.
Code Solution
SolutionRead Only
UUID=abcd-1234 /mnt/data ext4 defaults 0 2
Practice Sets
This question appears in the following practice sets: