MacOS – How to force a readonly volume to remount as read-write

disk-utilityhard drivehfs+macosmount

I have an external Firewire volume with some filesystem problems. One problem is that Disk Warrior can't fix these errors because there is not enough space left on this volume (in fact, it is completely full – 0 bytes empty, which I suspect is the reason for the FS-problems). Another problem is that this disk gets mounted readonly by the OS, hence I can't delete any files on it to make it possible for Disk Warrior (or fsck) to fix the file system. I have tried the commands in this question but they only generate an error message:

% mount -u -w /Volumes/MyVol 
mount_hfs: error on mount(): error = -1.
mount_hfs: Invalid argument

I also tried mount_hfs with different options, but something like this

% mount_hfs -o update /dev/disk3s3 /Volumes/MyVol
mount_hfs: error on mount(): error = -1.
mount_hfs: Invalid argument

How do I force mount this volume in readwrite mode so I can try to delete some of the files on it?

And you don't have to tell me to backup and erase the volume.

Update: I just found the hfs.util command and run it like this

/System/Library/Filesystems/hfs.fs/Contents/Resources/hfs.util -M disk3s3 /Volumes/test writable

but it just responds with is "usage" page. On this usage page there is an example that looks like this:

/System/Library/Filesystems/hfs.fs/Contents/Resources/hfs.util -p disk0s2 fixed writable

Can't see any difference between that and my command..?

Best Answer

I have to do the following from the command line to get a USB drive to mount read/write:

diskutil list
sudo diskutil unmount /dev/disk2s1 <- (put your volume/partition in here)
cd /Volumes
sudo mkdir <FOLDER_NAME>
sudo mount -w -t msdos /dev/disk2s1 /Volumes/<FOLDER_NAME>

This is with a FAT32 formatted USB stick. Not sure why, but my Mac will only mount these read only when they automount, only started happening recently. Reformatting does not resolve it, even formatting in a macOS native filesystem gives me the same issue. This is happening on multiple USB sticks after many reformats and reboots.

The problem is that I have to do that each time I remove the drive and want to plug it back in.