How to Mount a Drive in Linux Without Guessing the Device
Mounting is straightforward once the device identity is proven. The dangerous step is assuming a device name or copying an untested fstab entry.
Short answer
Mounting attaches a filesystem to a directory. Before mounting a drive manually, identify it with lsblk -f, confirm the filesystem and existing mount point, create a deliberate mount directory if needed, then mount the correct device. Test a manual mount before creating a persistent /etc/fstab entry.
Safe mounting workflow
| Step | Inspection or action | Why it matters |
|---|---|---|
| 1. Identify | lsblk -f | Distinguishes device names, filesystems, labels and current mount points. |
| 2. Confirm | Match capacity, label/UUID and expected filesystem. | Avoids mounting or modifying the wrong disk. |
| 3. Create mount point | Use a dedicated empty directory when manual mounting is appropriate. | Defines where the filesystem will appear. |
| 4. Mount | Use the documented mount syntax for the filesystem/device. | Attaches the filesystem for the current runtime. |
| 5. Verify | Use findmnt and inspect files. | Proves what is actually mounted and with which options. |
| 6. Persist only after testing | Add a tested UUID-based or documented entry to /etc/fstab if needed. | Reduces boot failures caused by a bad persistent mount. |
Device names can change
A device that appears as /dev/sdb1 today is not guaranteed to keep that name across hardware changes or boots. Persistent configurations commonly use stable identifiers such as filesystem UUIDs. Always inspect the current machine rather than copying another system’s /etc/fstab.
Unmount before disconnecting removable storage
Files can remain cached in memory after an application appears to finish writing. Use the desktop eject/unmount action or umount and wait for completion before physically removing the device. If unmount reports that the target is busy, identify which process still has files open instead of forcing removal.
Useful gear for this task
Official references
For current behavior and version-specific details, use the relevant upstream documentation alongside this guide.
Frequently asked questions
What does mounting a drive mean in Linux?
Mounting attaches a filesystem to a directory called a mount point, making that filesystem’s contents visible at that location in the Linux directory tree.
Should I edit /etc/fstab immediately?
No. First verify the device, filesystem, mount options and a successful manual mount. An incorrect /etc/fstab entry can delay or disrupt boot, so persistent mounts should be added only after testing.