Read-only file system external drive
Hello,
Problem: Two of my external Western Digital drives have suddenly and simultaneously been designated as "read-only file systems." Consequently, I cannot access them, even with sudo.
Need: I want to mount the drives with read-write access.
This problem renders Time Machine useless and means I have to (occasionally) spend hours manually copying files back and forth using the terminal, as the Finder is never capable of doing so without an error.
At the very least, I would like a workaround to remove whatever marker the OS uses to designate the drives as read-only. Compared to copying hundreds of GB for no reason, I'd be happy to execute a Terminal command or two.
Background
I suspect the problem is caused because WD drives spin down regularly and take longer than macOS would like to spin back up. They are then designated as read-only because the OS has had difficulties accessing them multiple times.
This Mac is running a pristine version of Sierra, installed about two weeks ago after erasing the internal drive. I do not manually change system files or install programs which modify system files (cache-cleaners, etc.).
The drives are not damaged. I have checked them many times on multiple computers. Unfortunately, this is not the first time I've been locked out. Please let us work on the assumption that they are in good working order.
The drives appear in the finder on restart only.
Once unmounted (ejected), I cannot remount them using:
- the GUI Disk Utility
- diskutil
- mount (the -uw option doesn't work on hfs as demonstrated with -dv), or
- mount_hfs
I can read from the drives.
I tried Nicholas Vahalik's idea of turning off journaling with hfs.util and running fsck_hfs. hfs.util worked, but the disk wasn't journaled. fsck_hfs was unable to write to the drive.
I am unable to change permissions using the Finder or the shell, but they appear to be set correctly for my user to have read/write access anyway.
Both drives contain some hidden files in their root directories. I suspect one (or more) may have locked the file system. In other words, when the OS goes to use the drive, if it sees one of these files present, it designates it as read-only. The suspect files are:
- .apdisk (apparently a new apple fs?)
- .fseventsd (a directory, but may contain something pertinent)
- two others I'll need to reboot to see again. Something like .diskID and .diskIDx2
However, I cannot access the above files to move or delete them for testing purposes.
There is something "higher-level" going on that prevents write access on the drives. Any help determining what that is, would be appreciated!
Mac mini, macOS Sierra (10.12.1)