Results 1 to 5 of 5

Thread: Recover files from hfsplus partition, Mac file recovery

  1. #1
    Join Date
    Aug 2008
    Location
    Midwest US
    Beans
    74

    Recover files from hfsplus partition, Mac file recovery

    Hi:
    A coworker says they 'lost' their Mac laptop drive and had no backup of media files. He gave me the drive. I would like to recover the media he wants.
    I connected the drive and gparted describes it as having 3 partitions:
    a fat32 EFI, and two hfs+ partitions called Macintosh HD & Recovery HD.
    I can mount the partition hfs+ partition 'Macintosh HD'
    with
    mount -t hfsplus /dev/sdb2 /mac
    but get a permission denied message trying to open or copy the folders that look like media.
    I do not want to write to the drive by changing the file permissions.

    Is there a way for me to copy folders from this drive without changing the permissions of the folders?

    Thanks,
    Scott

  2. #2
    iMac71 is offline Gee! These Aren't Roasted!
    Join Date
    Dec 2012
    Beans
    172

    Re: Recover files from hfsplus partition, Mac file recovery

    try to install hfsplus tools by giving the following command in a Terminal window:
    Code:
    sudo apt-get install -y hfsplus

  3. #3
    Join Date
    Aug 2008
    Location
    Midwest US
    Beans
    74

    Re: Recover files from hfsplus partition, Mac file recovery

    Thank you.
    I can mount the partition and get to the folder "Users" and the specific user where the data probably is but folders within that will not open because of permission errors. I am also prohibited from copying those folders. I am hesitant to take ownership because it will write to the drive.

    I tried to copy the partition to another drive with:
    sudo dd if=/dev/sdb2 of=/dev/sda1 conv=notrunc,noerror

    I loaded hfsplus tools and then tried to mount the copied partition. When I tried to mount it I got:
    xubuntu@xubuntu:~$ sudo mount -t hfsplus /dev/sda1 /recov
    mount: wrong fs type, bad option, bad superblock on /dev/sda1,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    Thanks for any further insights.
    Scott

  4. #4
    iMac71 is offline Gee! These Aren't Roasted!
    Join Date
    Dec 2012
    Beans
    172

    Re: Recover files from hfsplus partition, Mac file recovery

    If hfsplus doesn't solve the trouble, I fear that the only way to recover those data be to connect that drive to another Macintosh and to copy them on it.
    Or, alternatively, if there aren't other Macintoshes, you might try to connect that drive to a PC running XP (I experienced that that OS doesn't care too much about file permissions), and then to copy them on it and finally to copy them from it on your PC (copying from XP to Ubuntu works fine).

  5. #5
    Join Date
    Aug 2008
    Location
    Midwest US
    Beans
    74

    Re: Recover files from hfsplus partition, Mac file recovery

    Personally I don't have a Mac to use the recovery software mentioned above. I did manage to get all the data off by two methods.
    One was using photorec and the other
    was to create a temporary user with UID 501 ( the id assigned to the files on the HD ). This let me have access to all the files on the drive. Thanks everyone for the help.
    SB

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •