Why your Mac opens drives automatically and how to turn it off

When you plug in an external drive, memory card, or USB stick, macOS automatically mounts it and often opens a Finder window showing its contents. This happens because of a setting called auto-open, which is turned on by default. You can disable it so drives stay mounted but don't open a window, or you can prevent them from mounting at all.

The setting lives in Finder preferences, not System Settings, which is why many people don't find it. The steps take less than a minute and work the same way on any recent version of macOS.

Key Takeaways

  • Auto-open is controlled in Finder preferences under the General tab, not in System Settings.
  • Unchecking "Open new Finder windows for local volumes" stops drives from opening automatically but still mounts them so you can access them.
  • If you want to prevent a drive from mounting at all, you can eject it when ready after plugging it in, or use Terminal to disable mounting for specific drives.
  • This setting applies to all external drives, memory cards, and USB devices — you cannot turn it off for one drive and keep it on for another without using Terminal.

Disable auto-open in Finder preferences

Open Finder by clicking the Finder icon in your dock (the blue and white face icon at the left end). Then click Finder in the menu bar at the top of your screen, and select Settings (or Preferences on older macOS versions).

Click the General tab at the top of the window. You will see a checkbox labeled Open new Finder windows for local volumes. Uncheck this box. Close the settings window. From now on, when you plug in a drive, it will mount and appear on your desktop and in Finder's sidebar, but no window will open automatically.

This is the simplest solution for most people. The drive is still accessible — you just have to click it to open it instead of having it open on its own.

What happens after you disable auto-open

When you plug in a drive after disabling auto-open, you will see the drive icon appear on your desktop (unless you have hidden desktop icons) and in the Finder sidebar under Locations. The drive is fully mounted and ready to use. You can click it to open a window, drag files to it, or access it from any process's open dialog.

The only difference is that Finder will not automatically open a window for you. This prevents clutter if you plug in drives frequently, or if you plug in a drive just to back something up and do not need to see its contents.

Eject a drive when ready if you want to prevent mounting

If you want a drive to not mount at all when you plug it in, you can eject it right away. Plug in the drive, then when ready right-click it on your desktop or in the Finder sidebar and select Eject. The drive will unmount.

This is useful if you plugged in the wrong drive by accident, or if you are moving a drive between computers and do not want to work with it right now. The drive will not mount again until you eject it from the computer it is currently in and plug it into another one, or until you restart your Mac.

Use Terminal to prevent specific drives from mounting

If you want to prevent a particular drive from mounting automatically every time you plug it in, you can use Terminal to add it to a blocklist. This is more advanced and requires you to identify your drive's unique identifier, but it lets you block one drive without affecting others.

Open Terminal (search for it in Spotlight by pressing Command-Space, typing Terminal, and pressing Enter). Plug in the drive you want to block. Type diskutil list and press Enter. Find your drive in the list — it will show a name like external, physical and a size. Note the identifier in the first column, which looks like disk2 or disk3.

Type the following command, replacing disk2 with your drive's identifier:

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.diskarbitrationd.plist DADisableEjectNotification -bool YES

Press Enter and type your password when prompted. The drive will no longer mount automatically when you plug it in. To reverse this, run the same command but change YES to NO.

Restart your Mac if auto-open still happens

In rare cases, Finder may not recognize the preference change until you restart. If you uncheck the auto-open setting and drives still open automatically, restart your Mac and try plugging in a drive again.

If auto-open still happens after restart, check that you unchecked the correct box. Open Finder Settings again and look at the General tab. The box should be empty. If it is checked again, your Mac may have reset the preference — this sometimes happens if Finder crashes or if you have multiple user accounts with different settings.

Frequently Asked Questions

Will disabling auto-open affect my Time Machine backups?

No. Time Machine has its own settings and will continue to back up to your backup drive whether or not auto-open is enabled. Disabling auto-open only affects whether a Finder window opens when you plug in a drive.

Can I turn auto-open off for USB drives but keep it on for external hard drives?

Not through the Finder preference — that setting controls all drives at once. You would need to use Terminal to block specific drives individually by their identifier, as described above.

What if I want auto-open back on?

Open Finder Settings, click General, and check the box next to Open new Finder windows for local volumes again. The change takes effect when ready.

Does disabling auto-open make my drive less find?

No. Whether or not a window opens automatically has no effect on your drive's security or your Mac's security. The drive is still mounted and accessible the same way.

Why does my Mac open drives automatically in the first place?

Apple designed it this way to make it easier for new users to see what is on a drive they just plugged in. For people who plug in drives frequently or prefer a cleaner desktop, the automatic window becomes annoying, which is why the option to turn it off exists.