Home > Questions

How to mount external HDD with Terminal commands?

What is the correct Terminal command and syntax to FORCE MOUNT and external APFS volume? Disk Utility sees it as 2TB-3, greyed our, will not Mount, and will not ‘completely’ verify. /dev/disk5s1. Running First Aid on Mac OS 10.14.6 gives this: error: (oid 0x404) apfs_root: Bob: _omap_lookup_obj(0x404, 0x0): no such file or directory fsroot tree invalid. All I need to do is mount it, even read-only. The data I need NOW is on it. Target is a boot volume with the same OS. Was connected as a data volume and was working fine right up until it wasn’t.Tried all the Terminal Eject and unlock commands. It is not locked. Now also in a bad internet spot. The hotel is in the middle of nowhere and no possibility of an OS update. Suspect the target drive is very full too. Can anyone help?

Best Answered by

iBoysoft author Amanda Wong

Amanda Wong

Answered on Monday, July 10, 2023

The correct Terminal commands to mount an external hard drive on Mac are sudo mkdir /Volume/drive name and sudo mount -t hfs /dev/disk1 /Volumes/usb, you should replace "drive name" with the name of your disk and replace the number with your own disk in "disk1" when operating. 

Your external hard drive greyed out in Disk Utility indicates Mac can't automatically mount the drive, thus you can't read and write to the drive as usual. The drive could be corrupted. And the fsroot tree is invalid further illustrates the external hard drive is corrupted.

Thus, the corrupted external hard drive can't be automatically mounted in Disk Utility or force mounted in Terminal. You'd better recover data from corrupted external hard drive on Mac, and then follow the steps below to fix it without losing data. Here, we recommend iBoysoft Data Recovery for Mac for its high recovery rate, risk-free environment, easy-to-use UI, etc.

After getting off files from the corrupted external hard drive with third-party data recovery software, you can try to format the external hard drive on Mac to remove logical errors on the drive. Then, you can mount it on Mac normally.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

Fix com apple diskmanagement disenter error 119930868 on Mac

com.apple.DiskManagement.disenter error -119930868/119930872

Unable to mount your internal or external drive on Mac due to 'com.apple.diskmanagement.disenter error -119930868/119930872'? Read this article to learn its causes and solutions.

How to Tips


[解決済み] WD 外部ハードドライブが Mac にマウントされません

WD 外部ハードドライブが Mac にマウントされませんか?このチュートリアルでは、macOS Big Sur 11/Catalina 10.15/Mojave 10.14/High Sierra で WD My Passport がマウントされない/表示されない/認識されない問題を修正する方法を紹介します


WD external hard drive will not mount Mac

[Solved] WD external hard drive won't mount on Mac

WD external hard drive won't mount on Mac? This tutorial will show you how to fix WD My Passport not mounting/showing up/recognized/detected on macOS Big Sur 11/Catalina 10.15/Mojave 10.14/High Sierra

Mac Data Recovery Tips