I have an external drive that I am formatting for a Mac friend, so I set it to HFS+ using Gparted. I am unable to write any files to the drive now, even after running the mount
command with the rw
option. Running grep sda1 /proc/mounts
(the drive I want) returns:
/dev/sda1 /media/username/readwrite hfsplus rw,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0
Note that it is mounted as rw
.
But copying from the terminal or Nemo returns "Error: read-only file system".
Since I formatted the drive on Linux, the HFS+ volume is not yet journaled. I need to copy some files to it before I give it to my mac friend. What should I do?
Best Answer
You need to turn off the journaling if you want to write to it from Ubuntu. Ubuntu only has support for writing to non-journaled HFS+ volumes. Disabling journaling from HFS+ is still possible up to OS X Yosemite 10.10
On your Mac:
Now plugin the HFS+ Hard drive into Ubuntu and run this command:
example output:
So we are only interested in sda2 in that example.
Create a folder in your home directory called backup and copy the full path of backup to put at the end of the following command:
Now for good luck:
Now for HFS+ submission:
Testing with terminal:
Now check with your file manager if test directory was created. But what the heck, the file manager still can't write to HFS+.
Force submission of file manager
And now after a long overdo process you now have access to HFS+.
Afterwards, plug the drive back into the mac, turn on journaling and use disk utility to repair permissions.