4

My SD card will suddenly not automount. It works on another Mac.

Can someone provide a solution to mount with Terminal?

$ diskutil list

/dev/disk2
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:     FDisk_partition_scheme                        *16.0 GB    disk2
1:             Windows_FAT_32 NO NAME                 16.0 GB    disk2s1
  • I'm assuming you are using mac os x due to the "mac" remark, please add that info, including OS version, and the laptop model or if you are using a sd to usb adapter. This will help troubleshoot the issue. Do you want to fix the automount or simply mount manually? – Leo Aug 16 '18 at 1:48
2

Simply mount /dev/disk2s1 /foo Where /foo is an empty directory where you want to access the card. The normal mount point for disks on a mac is within /Volumes but since it isn't auto-mounting, you will need to create a directory somewhere. Don't mount it directly to /Volumes or you won't be able to access your HD, including your OS. You could mount it to your home directory even, below /mnt represents a directory that you've created, in this example, it's in your home directory:

$ sudo mkdir ~/mnt
$ sudo mount -t msdos /dev/disk2s1 ~/mnt
$ cd ~/mnt

(of course if you are in your home directory you can leave out the ~/ if you want.)

You can also use the diskutil command. man diskutil to learn more about it. Are you running the same version of OS X on both machines? There are reported issues with FAT32 on Yosemite.

  • $ mkdir /mnt mount /dev/disk2s1 /mnt cd /mnt mkdir: /mnt: Permission denied mkdir: mount: File exists mkdir: /dev/disk2s1: File exists mkdir: /mnt: Permission denied mkdir: cd: File exists mkdir: /mnt: Permission denied – earthling Jan 14 '15 at 8:52
  • both machines are running 10.10.1 – earthling Jan 14 '15 at 19:14
  • @earthling, try sudo !! You must sudo mkdir and mount also, the new lines did not save in my post, those are separate lines. – Dee Hendrick Jan 14 '15 at 21:38
  • sudo mount /dev/disk2s1 ~/mnt mount: You must specify a filesystem type with -t – earthling Jan 15 '15 at 4:40
  • @earthling, you don't have to, most linuxes can figure it out, I have rarely specified it and never had a problem. – Dee Hendrick Jan 15 '15 at 12:09
1

I solved this by running:

brew cask install osxfuse
brew install ext4fuse
sudo mkdir /Volumes/rpi
sudo ext4fuse /dev/disk2s2 /Volumes/rpi -o allow_other
sudo ls /Volumes/rpi

Solution described: https://raspberrypi.stackexchange.com/questions/13437/how-to-mount-a-raspbian-sd-card-on-a-mac

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.