sudo fsck.hfsplus -fryd /dev/sdc2
/sbin/fsck_hfs -yprd /dev/partitionName---can not fix b-tree node size(4)
http://download.easeus.com/free/mac_drw_free.dmg
https://github.com/sgan81/apfs-fuse
刚刚经历了一次数据恢复:在 Mavericks 正式发布之前安装了开发者预览版,结果外接的3T移动硬盘读不出来了,试了很多软件都没有。
万幸有朋友推荐了一款软件,居然100%恢复了,而且速度很快,推荐给你试试:Wondershare Data Recovery
You should to try to rebuild the catalog file (B-tree) on the specified file system (which is HFS+) by specifying -r option for fsck, for example:
$ fsck.hfsplus -fryd /dev/sdd2
Mounting Apple Core Storage partition on Ubuntu 17.04
diskutil cs unlockVolume E2DB4126-C04C-4AE1-B1AC-CDFF0218D537 -stdinpassphrase
You will be prompted for the password to the Encrypted Disk. After this, your drive will be in an unlocked and unmounted state, so you still need to mount it with this command:
diskutil mount E2DB4126-C04C-4AE1-B1AC-CDFF0218D537
diskutil cs list
The output should show your CoreStorage volumes and all, one of them is its Revertible status. If it indicates Yes then you'll be in good shape to proceed. Next you would run:
diskutil cs revert /dev/ diskXsY
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:
Open Disk Utility under Applications -> Utilities
Select the volume to disable journaling on.
Choose Disable Journaling from the File menu. (On later Mac OS versions you'll have to hold down the option button when you click the File menu. Or if you like Apple+J)
Now plugin the HFS+ Hard drive into Ubuntu and run this command:
$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
example output:
sda
├─sda1 vfat 300M EFI
└─sda2 hfsplus 100G VolumeName
So we are only interested in sda2 in that example.
$ sudo apt-get install hfsprogs
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:
$ sudo mount -t hfsplus -o force,rw /dev/sda2 /home/user/backup
Now for good luck:
$ sudo mount -o remount,rw /home/user/backup
Now for HFS+ submission:
$ sudo chmod 775 /home/user/backup
Testing with terminal:
$ cd /home/user/backup
$ mkdir test
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
### sudo filemanager, for eg.
$ sudo thunar
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.
shareimprove this answer
edited Sep 5 '18 at 20:18
slm♦
266k7373 gold badges574574 silver badges720720 bronze badges
answered Sep 5 '18 at 15:54
On Mojave, this can't be done in Disk Utility anymore. But you can diskutil disableJournal /Volumes/
#关闭Journal
$ diskutil disableJournal disk0s2
Journaling has been disabled on disk0s2
#打开Journal
$ diskutil enableJournal disk0s2
Journaling has been enabled on disk0s2