If you’re wondering how to mount and unmount drives, you’re not alone. Have you ever plugged in a USB drive, but it didn’t show up the way it does on Windows or macOS? That’s because Linux treats storage differently. In Windows, drives appear automatically as C:, D:, E:, etc., but in Linux, you need to mount the drive to access it and unmount it before removal.
Think of it like parking a vehicle in a designated spot. You can’t just leave it in the middle of the road, it needs a proper parking space (mount point)!
In this guide, we’ll break down everything you need to know about mounting and unmounting drives in Linux in a simple, conversational way, even if you’re new to Linux. Whether you’re trying to mount a USB drive, external HDD, or Windows partition, this guide covers everything about the Linux mount and unmount process. You’ll learn how to access your USB, HDD, SSD, or external drive, and safely remove it without losing data for Ubuntu/Debian systems.
What Does “Mounting” Mean in Linux?
Mounting in Linux means attaching a storage device to your system’s directory tree, allowing users to access its files. When you “mount” a device, you tell the system:
In simple terms: Mounting tells Linux where to place your drive so you can use it.
And when you’re done, you must unmount it to disconnect safely.
Simple Analogy:
Think of mounting like plugging a TV into a power socket.
- A TV without a socket won’t turn on.
- Similarly, a drive without mounting won’t be accessible.
Unmounting is like safely unplugging the TV, you avoid sparks (data loss).
How Linux Organizes Storage
Linux doesn’t assign drive letters like C: or D:. Instead, everything is part of a single directory structure, starting from the ‘root /‘.
Here’s a simple visual to understand how drives connect to Linux:
Linux Directory Tree
|
/
┌───────────────┐
| |
/home/ (Mount Points)
|
┌────────────┴────────────┐
| |
/media/ /mnt/
|
(Auto Mount Points for Drives)
|
┌──────────────┴──────────────┐
| |
USB Drive External HDD
(/media/usb) (/media/hdd1)
What Is a Mount Point?
A mount point is simply a folder where the drive’s contents are shown once mounted.
Example: ‘/mnt/mydrive‘ or ‘/media/usb‘
Types of Drives You Can Mount
Linux allows the mounting of multiple types of storage devices:
Internal Storage
- SSDs / NVMe drives: High-speed storage for system and application files.
- SATA Hard Drives: Larger capacity, slower performance, great for backups.
- Linux and Windows dual-boot partitions: Mount Windows partitions to access files from Linux.
External Storage
- USB Pen Drives: Small, portable flash drives that can be easily connected via USB to transfer or access files.
- External HDD/SSD: Larger portable storage devices offering high capacity (HDD) or fast performance (SSD) for backups and file transfers.
- SD Cards: Memory cards commonly used in cameras, phones, and other devices, which can be mounted to access their data.
- Portable storage devices: General category including any external storage device (like USB drives, external SSDs/HDDs, or memory cards) that can be connected and mounted.
Network & Virtual Storage
- NFS (Network File System): Allows Linux systems to mount directories from other Linux/Unix servers over a network for shared access.
- CIFS/SMB (Shared Windows files): Enables mounting Windows-shared folders or network drives on a Linux system.
- ISO Image files: Mountable disk image files (like CD/DVD images) to access their contents without burning them to physical media.
Read Full Article: https://serveravatar.com/mount-and-unmount-drives/

Top comments (0)