Skip to main content
109 votes
Accepted

External Hard Drive Won't Mount

I'd recommend checking if fsck is holding your disk hostage upon connection. This was it for me. Running ps aux | grep fsck revealed: root 2587 7.3 0.1 4363584 21780 ?? U 10:...
Ariel Allon's user avatar
  • 1,896
104 votes

Can't mount exFAT external drive in macOS

If your ExFAT drive is not mounting, here is the solution. sudo pkill -f fsck fsck was holding the disk hostage. A quick ps aux | grep fsck revealed that indeed it was hijacking the disk/volume as ...
Timothée's user avatar
  • 1,141
37 votes
Accepted

Why do Macs mount an additional drive every time I install software?

Most non-App Store software applications are delivered as a DMG file. A DMG file (with the file extension .dmg) is a file whose content looks just like a small disk. The DMG is downloaded to your ...
Gilby's user avatar
  • 11.3k
35 votes

macOS Sierra: mounting NFS volumes

The accepted answer only works when the NFS server allows connections on non-reserved ports (i.e. >1024). The exports man pages say it: exportfs understands the following export options: secure ...
Mathias's user avatar
  • 471
32 votes

How can I mount an SMB share from the command line?

Using AppleScript is convenient because it stores your passwords in the Keychain. Bash function: function mymount { osascript <<EOF mount volume "smb://user@fqdn1/volume1" mount volume "...
wytten's user avatar
  • 431
23 votes

How do I disable this message: "the disk was not ejected properly"?

This applescript will close them for you. Paste it into Script Editor and then Save as an application. Then grant access to that application in (System Preferences > Security & Privacy > ...
OZbg's user avatar
  • 231
21 votes
Accepted

Permanently change mount point of volume?

Set an entry in /etc/fstab as directed here. To summarize. Open Disk Utility, unmount the relevant volume. Click on the volume you're trying to mount, and click the "info" button. Note ...
bingbomboom's user avatar
18 votes

How to mount disk by UUID or LABEL in OS X El Capitan?

When using OS X, it's usually more advisable to use diskutil for disk-related activities. TL;DR: To mount a volume/disk by identifier: diskutil mount /dev/diskXsY # mounts just that volume ...
perhapsmaybeharry's user avatar
18 votes
Accepted

macOS Sierra: mounting NFS volumes

In Finder, press cmd + k and enter the path to the NFS server/share: For me this mounted as /Volumes/users-1 (but I already had /Volumes/Users mounted). iMac21:~ user$ df -h /Volumes/users-1 ...
pickles's user avatar
  • 306
17 votes
Accepted

Difference between "diskutil unmount" and "diskutil unmountDisk"?

From man diskutil: unmount | umount [force] device Unmount a single volume. Force will force-unmount the volume (less kind to any open files; see also umount (8)). unmountDisk | ...
nohillside's user avatar
  • 102k
17 votes
Accepted

Force mounting an external disk that is not recognized

Just when I was about to give up, format the drive and lose my data, somehow I was able to fix the drive so I am posting what exactly I did in terminal for the benefit of other people who might come ...
marcnyc's user avatar
  • 471
16 votes

Mount folder as a volume (OSX)

Sometimes symbolic links may not be suitable for your needs. In that cases you can use bindfs - a FUSE filesystem for mounting a directory to another location. Install it with homebrew: brew ...
mixel's user avatar
  • 329
16 votes

permission denied mkdir /Volumes

There are access control restrictions on that directory. You can inspect those from the command line: ls -lOe / (That's a capital letter O and not a zero 0) I would suggest mounting your volume to ...
bmike's user avatar
  • 237k
15 votes
Accepted

macOS Sierra: AppleScript mount volume keeps asking for login

As Apple replied to the ticket referenced in mattdwen's Open Radar link above, as of macOS Sierra 10.12, you can no longer create items in /Volumes unless root. Further, my best understanding of ...
mnewt's user avatar
  • 401
15 votes
Accepted

Mounting Samba shares under /Volumes without GUI fluff

The following is what I use to mount Samba shares via launchd: /usr/bin/osascript -e "try" -e "mount volume \"smb://guest@${host}\"" -e "end try" Using osascript's mount means any keychain access ...
John N's user avatar
  • 1,497
15 votes

Can't mount exFAT external drive in macOS

Formatting large volumes exFAT on Windows tends to default to an allocation unit size (read block size) of larger than 1024. macOS has trouble finding the boot region on disks like that. Backup your ...
Nate's user avatar
  • 151
15 votes

Why do Macs mount an additional drive every time I install software?

This is the conventional way for installing software on macOS. The software is provided on an Apple Disk Image (the .dmg file), the purpose of which is to emulate a physical disk (CD, floppy, etc.) ...
zakinster's user avatar
  • 507
13 votes
Accepted

OSX version of `mount -l`

In Terminal type, man mount and press enter. It says: The system maintains a list of currently mounted file systems. If no arguments are given to mount, this list is printed. So, in Terminal ...
user3439894's user avatar
13 votes
Accepted

Mount Ext4 on M1 or M1Pro or M1Max

As long as brew install ext4fuse produces errors in the newest macOS system versions, I propose below workaround. Tested on MacBook Air M2 with macOS Monterey. Custom install Create empty script file ...
0x1111309's user avatar
  • 146
11 votes
Accepted

How to create a read-only RAM disk on macOS from the command line?

Get the device number of the RAM disk: diskutil list (e.g. disk3) Add some content to the RAM disk 😉. Unmount the volume: diskutil umount disk3 Mount the RAM disk read-only: diskutil mount readOnly /...
klanomath's user avatar
  • 66.6k
9 votes

How to mount nfs drive on macOS with read+write access?

I have this setup, please do the machine/folder names translation according to your case. In /etc/exports on server side (mine is a centos 7): /workspace_guest/02.code 172.20.0.1(rw,sync,insecure,...
ywu's user avatar
  • 91
9 votes
Accepted

macOS: Is /etc/fstab file deprecated? What is the recommended config file then?

afaik, fstab doesn't exist by default. You have to create one, first time. From your linked instructions... 7) Edit (or create) an fstab file by typing the following and pressing enter: ...
Tetsujin's user avatar
  • 116k
9 votes
Accepted

Why does macOS create file mounts for each app?

These seem to be installers DMGs. You can unmount and discard them after installing the apps in your computer, typically by copying them to /Applications or ~/Applications.
lhf's user avatar
  • 7,368
8 votes

Mount folder as a volume (OSX)

I just wanna say thanks to @mixel - that is THE WAY to do it, I actually wanted to mount the iCloud Drive as a volume, so that it appears on the desktop. Installation of bindfs did not go that easy ...
Robert Geifman's user avatar
8 votes

How can I mount an SMB share from the command line?

What worked for me to make them mount during boot: ==> /etc/auto_master <== # # Automounter master map # +auto_master # Use directory service /net -hosts -nobrowse,...
WGroleau's user avatar
  • 5,015
8 votes

Difference between "diskutil unmount" and "diskutil unmountDisk"?

You are using the command incorrectly. When issuing diskutil unmount, you should refer to a partition. You are referring to an entire disk. For example disk0 refers to the entire disk, where as, ...
David Anderson's user avatar
8 votes
Accepted

Why USB stick formatted with exFAT on Windows is not mounting on Mac OS High Sierra?

Each partition on a drive is assigned a type. The type indicates what the partition will contain. Usually, but not always, this is a file system. The mapping from a partition type to a file system is ...
David Anderson's user avatar
8 votes

How to configure "DiskImageMounter" like in /etc/fstab?

You are correct. There is no /etc/fstab file, but the use of the /etc/fstab file by macOS has not be removed. You just have to create this file yourself. An example of a possible lines in the /etc/...
David Anderson's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible