Your cart is currently empty!
Automounting External Drives in Linux
Mounting external drives manually every time you plug them in gets old fast. Whether you’re using a USB drive, an external SSD, or a backup HDD, automounting saves time and ensures your devices are ready to use right away. Here’s how to set up automounting in Linux the right way.
Why Automounting Matters
If you’re regularly plugging in drives—for backups, media, or portable work—having them ready without running mount commands each time is a huge quality-of-life improvement. Automounting is especially useful for:
- File servers
- Backup systems
- Media centers (like Kodi or Plex)
- Raspberry Pi setups
- Personal productivity
Let’s walk through how to do it.
Step 1: Identify the Drive
First, plug in your external drive and check how Linux sees it. Use:
lsblkThis shows all block devices. Find your external drive—usually something like /dev/sdb1. To get more info (like UUID and filesystem type), run:
blkidNote the UUID and TYPE (e.g., ext4, ntfs, vfat).
Step 2: Create a Mount Point
Pick a directory where the drive will mount. A good convention is to use /mnt or /media. For example:
sudo mkdir -p /mnt/mydriveStep 3: Edit fstab for Automount
You’ll add an entry to /etc/fstab to make the mount automatic.
Open the file with:
sudo nano /etc/fstabAdd a line like this:
UUID=XXXX-XXXX /mnt/mydrive ext4 defaults 0 2Replace:
UUID=XXXX-XXXXwith your actual UUID fromblkidext4with your filesystem type (e.g.,ntfs,vfat, etc.)/mnt/mydrivewith your chosen mount point
Example for a FAT32 drive:
UUID=AB12-34CD /mnt/usb vfat defaults,uid=1000,gid=1000,umask=022 0 0Then test it:
sudo mount -aIf no errors pop up, the drive should now be mounted.
Optional: Use udisks2 for Hotplug Automounting
If you prefer not to mess with fstab, udisks2 (usually bundled with desktop environments) handles plug-and-play mounting.
For command-line automounting, try:
udisksctl mount -b /dev/sdb1You can also create udev rules or use tools like usbmount, pmount, or systemd automount units if you want more control (e.g., for headless systems).
Common Issues
- Permissions: If you can’t access files, tweak
uid,gid, andumaskin thefstabline. - NTFS or exFAT not working: You may need to install support packages like
ntfs-3gorexfat-fuse. - Drive doesn’t automount on boot: Check that the drive is powered and connected before boot, or use systemd
.mountunits with dependencies.
Conclusion
Automounting external drives in Linux is easy once you know how. Whether you prefer configuring /etc/fstab or using a more dynamic approach with udisks2 or systemd, you can save time and avoid manual mounting forever.
Have questions or want a more advanced setup? Drop them in the comments.

Tech enthusiast and content creator passionate about making technology simple for everyone. I share practical tips, guides, and reviews on the latest in computers, software, and gadgets. Let’s explore the digital world together!
