zoukankan      html  css  js  c++  java
  • macbook ios recovery and mount hfs+ journal and revert


    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/<name> in Terminal.


    #关闭Journal

    $ diskutil disableJournal disk0s2

    Journaling has been disabled on disk0s2

    #打开Journal

    $ diskutil enableJournal disk0s2

    Journaling has been enabled on disk0s2

  • 相关阅读:
    Eucalyptus1.6.2安装使用说明 in CentOS5.5 x86(原)
    Return to the Basic 类 (class )
    Return to the Basic 构造函数(Constructor),析构函数(Destuctor)
    Return to the basic 继承(Inheritation)
    服务器端(Tomcat+MySQL)和客户端数据操作(简单)
    Return to the Basic 友元函数 (friend)
    Return to the Basic 运算符重载 (Operator Overloading )
    Return to the Basic 虚函数(virtual)
    Return to the Basic 内联函数(inline)
    Return to the Basic 纯虚函数(pure virtual)和抽象类(abstract class)
  • 原文地址:https://www.cnblogs.com/SZLLQ2000/p/11378927.html
Copyright © 2011-2022 走看看