4

I recently followed the instructions here to mount an Apple-formatted HFS external drive on Ubuntu. I transferred the files I needed, then unmounted the drive. Now the drive won't mount in OSX. In Disk Utility, the volume (top level) and partition (bottom level) for the external hard drive show up, but the partition will not mount. First Aid on the top level completes without error, but running First Aid on the partition level fails.

What could be preventing me from mounting the drive after following those instructions?

Any help would be greatly appreciated!

$ diskutil verifyVolume disk2s2 Started file system verification on disk2s2 WD My Passport Verifying file system Volume is already unmounted Performing fsck_hfs -fn -x /dev/rdisk2s2 File system check exit code is 8 Restoring the original state found as unmounted Error: -69845: File system verify or repair failed Underlying error: 8: Exec format error 
4
  • On my Mac, I tried sudo fsck_hfs -fy /dev/rdisk2s2 which returned ** /dev/rdisk2s2 (NO WRITE); Can't open /dev/rdisk2s2: Resource busy. Attempting to mount via DiskUtility or diskutil mountDisk /dev/disk2s2 just hangs. I'm running sudo fsck.hfsplus /dev/sdx# now. Commented Apr 10, 2018 at 17:37
  • Oh, yes I did run those commands in an attempt to mount the drive on my Ubuntu machine. Commented Apr 10, 2018 at 17:43
  • I've added the output to my post. Commented Apr 10, 2018 at 17:47
  • 1
    In German I'd say kaputtrepariert (try to repair something and actually make it worse) by entering the command ... fsck.hfsplus ... in Ubuntu. Try to repair it with Disk Warrior! Commented Apr 10, 2018 at 17:52

1 Answer 1

2

I solved the issue by running sudo fsck.hfsplus /dev/sdx# from my Ubuntu machine. My external drive can now connect to both my Ubunutu and Mac machines.

2
  • "sudo: fsck.hfsplus: command not found" on ubuntu for me... :( Commented Jun 26, 2022 at 7:47
  • @Joe You need hfsprogs installed. If you're running Debian or Ubuntu just run apt install hfsprogs Commented Mar 12, 2023 at 2:13

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.