Home > Questions

How can I prevent the second internal hard drive from mounting at boot?

So I installed an SSD in my original HD slot, then replaced the optical drive with my original HD. How do I prevent my HD from mounting at boot? Can anyone help me, or give me a guided set up of how to accomplish this? Thanks!

Best Answered by

iBoysoft author Jenny Zeng

Jenny Zeng

Answered on Wednesday, November 22, 2023

To prevent the second internal hard drive from mounting at startup, you need to run some commands in the Terminal app.

Ensure the disk you wish to prevent from mounting at boot is mounted and follow the steps below:

  1. Open Terminal from the Applications > Utilities folder.
  2. Select the partition or volume you'd like not to mount at startup.
  3. Click the ℹ️ button at the top-right corner.
  4. Copy the UUID (e.g, FF9DBDC4-F77F-3F72-A6C2-26676F39B7CE) to the clipboard.
  5. Type in the command below and hit Enter.cd /etc
  6. Input the command below and hit Enter to edit a fstab file.sudo vifs
  7. Type in your password and hit Enter.
  8. Tap the down arrow key to move to the end of the document, then press the o key to start a new line.
  9. Paste the following line, substituting the UUID (FF9DBDC4-F77F-3F72-A6C2-26676F39B7CE) with the one you pasted in step 4 and hfs with your file system if different.UUID=FF9DBDC4-F77F-3F72-A6C2-26676F39B7CE none hfs rw,noauto
  10. Press the Enter key.
  11. Type escape and then ZZ to save and exit the vifs text editor.
  12. Input the command below and hit Enter to reset the auto mounter.sudo automount -vc
  13. Close Terminal.

The second hard drive won't be mounted the next time you reboot your Mac. If you want to mount it again, simply go to Disk Utility, select it, and click the Mount button at the top.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

Mac上でFinderが応答しない

Mac Sonoma/Ventura で Mac Finder の応答なしを修正する方法

Mac Finder が応答しない?この投稿では、macOS Sonoma にアップグレードした後の Finder の動作しない問題、Finder のクラッシュ、Finder の動作停止など、Finder の問題を修正する方法を紹介します。

comment réparer l'erreur de code de sécurité non configuré lors de l'installation des mises à jour sélectionnées

La saisie du code n'est pas activée sur macOS Sonoma et macOS Ventura

Ce post résout les problèmes des utilisateurs Mac dont la saisie du code n'est pas activée lors de la mise à niveau vers macOS Sonoma ou macOS Ventura. Si vous êtes confronté à ce problème, lisez cet article dès maintenant pour trouver des solutions !

iMac Fusion Drive not mounting

macOS RecoveryモードでiMac Fusion Driveがマウントされない問題の修正方法

iMacのFusion DriveがmacOS Recoveryモードでマウントされない問題の修復方法のガイド。マウントされていないiMac Fusion Driveからデータを回復する方法を教えます。

マックデータリカバリー