Is there a way to permanently unmount an internal drive?

So the HDD in my Late 2012 27" iMac is failing and instead of the costly / pointless process of replacing the drive, I decided I'm going to run my system off an external Thunderbolt SSD. The problem is the failing drive still mounts and shows up every time I start the computer. I basically don't want it to be visible in case I accidentally put something important on it. Is there a way to ensure it doesn't mount? Thank you.

iMac (27-inch, Late 2012), iOS 6.1.3, 3.4 GHz Intel Core i7

Posted on Sep 21, 2018 10:11 PM

Reply
3 replies

Sep 22, 2018 7:42 AM in response to Mark Rathgeber

You can create a text /etc/fstab, as it does not originally exist. In the Terminal, there is a man page for fstab(5) that gives the layout.


UUID=x none hfs rw,noauto


The 'x' is the UUID number string of the drive you do not want to mount on boot. You can get this from the Disk Utility Info button, which calls it the File System UUID, or within the Terminal as:


diskutility info /dev/disk0s2 (or whatever internal device string)


where it is referred to as the Volume UUID. All whitespace in the /etc/fstab file is a single space.


Here are the permissions, so you will need sudo privileges to create this file:

User uploaded file

Before you reboot, make absolutely certain that your external boot drive is established in the System Preferences : Startup Disk panel.


Once rebooted, your internal drive will no longer appear on the Desktop, and it will be grayed out in Disk Utility. You can however, click on the faded drive name in Disk Utility, and then select the Mount button should you need to access it. When done, you simply click the Unmount button.


The above is what I did with the internal 500GB rotational drive in my 2011 Mac mini, after I installed a second, internal drive (SSD) as the boot device.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is there a way to permanently unmount an internal drive?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.