Automount a Drive in Linux the GUI Way with GNOME
In this article
To automount a drive in Linux using GNOME's graphical interface, you use the built-in Disks utility (gnome-disk-utility). You can set a partition to mount automatically at startup, and optionally at login, without touching the command line or editing fstab. This guide walks you through the exact clicks and explains what each setting does.
What You'll Need
- A Linux distribution running the GNOME desktop (Ubuntu, Fedora, Debian with GNOME, Pop!_OS, etc.).
- The Disks application – it is preinstalled on most GNOME systems. If missing, install it from your software center (search for “gnome-disk-utility”).
- An external or internal drive you want to automount. The drive must have at least one partition (most do).
- Administrative (sudo) privileges to change mount settings.
Step-by-Step
- Open Disks. Press the Super (Windows) key, type “Disks”, and click the application icon. It may also be listed as “GNOME Disks”.
- Select your drive. In the left sidebar, you'll see all physical drives (e.g., “SATA Disk”, “USB Drive”). Click the one containing the partition you want to automount. Be careful – choose the correct drive; the sidebar shows drive models and sizes.
- Select the partition. The bottom pane shows a graphical map of the drive's partitions. Click the partition you want to automount (e.g., the largest one, or one labeled with a filesystem like “ext4” or “NTFS”).
- Click the gear icon. Below the partition map, you'll see a small gear/settings icon. Click it, then choose “Edit Mount Options…” from the dropdown.
- Turn off “User Session Defaults”. In the dialog that appears, there's a switch at the top labeled “User Session Defaults”. Toggle it OFF. This unlocks the manual settings below. (If you leave it on, GNOME decides mount behavior automatically, which usually means no automount at boot.)
- Enable “Mount at system startup”. Now you'll see several options. The most important one is “Mount at system startup” – turn this ON. This makes the drive mount automatically when the computer boots, before you log in.
- Optionally, enable “Show in user interface”. If you want the drive to appear in the file manager's sidebar and on the desktop (if enabled), keep this ON. It's usually on by default.
- Set the mount point. In the “Mount Point” field, you can type a custom location like
/mnt/dataor/media/yourusername/Data. If you leave it blank, GNOME will assign one automatically (usually under/media/yourusername/). For a persistent, predictable path, enter one yourself. The directory does not need to exist – GNOME will create it. - Choose the filesystem type (optional). The “Identify As” dropdown lets you select the filesystem type. Usually you can leave it as “Auto” – GNOME detects it. Only change this if you know the drive uses a specific type and auto-detection fails.
- Click “OK”. The dialog will close and ask for your password to apply changes. Enter your sudo password. The drive may unmount and remount immediately to apply the new settings.
- Reboot to test. Restart your system. After boot, the drive should be mounted automatically. Open the Files app and check the sidebar – your drive should appear there, and you can access its contents without manually mounting.
Common Mistakes
- Leaving “User Session Defaults” on. If you don't turn this off, your changes are ignored and the drive won't automount at boot.
- Choosing the wrong drive/partition. Double-check the drive model and size in the sidebar. Accidentally changing settings on your system drive can cause boot problems.
- Setting a mount point that already exists as a directory with files. If you point the mount to a non-empty directory, those files will be hidden while the drive is mounted. Use a dedicated empty directory.
- Forgetting that NTFS/exFAT drives may need extra packages. For Windows-formatted drives, ensure
ntfs-3gorexfat-utilsare installed. Without them, the drive may not mount at all.
Tips
- Use a descriptive mount point like
/mnt/mediaor/media/dataso you can easily reference it in scripts or terminal commands. - For external drives you unplug often, consider leaving “Mount at system startup” off and instead enable “Show in user interface” – the drive will appear in the file manager when plugged in, and you can mount it with a single click.
- If you have multiple partitions on the same drive, repeat the steps for each one you want to automount.
- Check the “Mount Point” after applying. If you left it blank, GNOME will create a path under
/media/yourusername/. You can see the actual mount point by clicking the partition in Disks and reading the “Mount Point” field.
Troubleshooting
If the drive does not automount after following the steps:
- Check that the drive is connected and powered. For external drives, try a different USB port or cable.
- Reboot again. Sometimes the first reboot after changing settings doesn't apply everything cleanly.
- Reopen Disks and verify the settings. Go back to the partition's “Edit Mount Options” and confirm “Mount at system startup” is ON and “User Session Defaults” is OFF.
- Look for errors in the system log. Open the “Logs” app (or run
journalctl -bin a terminal) and search for messages about your drive's mount point. Common errors include “wrong fs type” or “mount point does not exist”. - If the drive is NTFS or exFAT, install the necessary drivers: open your software center, search for “ntfs-3g” or “exfat”, and install them. Then reboot.
- Try mounting manually first. In the Files app, click the drive in the sidebar. If it mounts, the issue is with the automount settings. If it doesn't, the drive itself may have filesystem corruption – check with
fsck(for ext4) or Windows' chkdsk (for NTFS). - As a last resort, you can revert to manual mounting. Turn “Mount at system startup” off, and just click the drive in the file manager when you need it.
Frequently Asked Questions
Will this work for USB drives I plug in later?
No. The setting applies to the specific partition you configured. A different USB drive will not automount unless you set it up the same way. For automatic mounting of any external drive, you'd need a different tool like udisks2 rules, which is beyond this GUI guide.
Can I automount a drive without a password prompt?
Yes. Once you set “Mount at system startup”, the drive mounts during boot before login, so no password is needed. If you choose “Mount at login” (a separate option in some versions), it may still require your password to unlock LUKS-encrypted drives.
What if my drive is encrypted (LUKS)?
For encrypted drives, you'll also need to set the encryption passphrase to be remembered. In Disks, select the encrypted partition, click the gear, choose “Edit Encryption Options…”, and enable “Remember passphrase” – but note this stores the passphrase in your keyring, which may require you to log in. For full auto-unlock at boot, you'd need a keyfile, which is more advanced.
Is it safe to automount a drive at startup?
Yes, for internal drives or external drives that stay connected. If you remove an external drive while the system is running, it may cause errors, but the system handles it gracefully in most cases. For drives you frequently remove, it's better to not use “Mount at system startup”.
Can I change the mount point later?
Yes. Repeat the steps, edit the mount point, and click OK. The drive will unmount and remount to the new location. Any files on the drive are unaffected.
Why does my drive mount with a different name?
GNOME uses the drive's label or model to generate a mount point. If you want a specific name, set the mount point manually (e.g., /media/data) or rename the partition's label using Disks (click the partition, click the gear, choose “Edit Filesystem…”).