Author Topic: HDD Recovery Question  (Read 420 times)

Offline Natheria

  • Member
  • Posts: 742
  • Gnome in Disguise ¬_¬
    • Mikaeru's Blog
HDD Recovery Question
« on: October 18, 2011, 10:43:03 PM »
Ok so, I was asked by a friend of mine to recover some files from his busted mac's hard disk (he got in some sort of scuffle and all but the main drive is toast). I booted up my linux distro to read the HFS formatted disk and as I was looking at his user files to pull them onto my own machine i realized the files were locked (they are under his user account, music, documents, etc). How do i go about getting them onto my own machine/getting access to read these files in general? All i need to do is recover them and i am unsure as to how to give myself permissions in this situation.

Offline kitamesume

  • Member
  • Posts: 7223
  • Death is pleasure, Living is torment.
Re: HDD Recovery Question
« Reply #1 on: October 18, 2011, 11:50:23 PM »
image the drive? how about your regular backup tools?

Haruhi Dance | EMO | OLD SETs | ^ I know how u feel | Click sig to Enlarge

Offline Natheria

  • Member
  • Posts: 742
  • Gnome in Disguise ¬_¬
    • Mikaeru's Blog
Re: HDD Recovery Question
« Reply #2 on: October 19, 2011, 02:32:52 AM »
I was unaware that imaging the drive over would get rid of those account permissions. I'm currently in the process of copying the mac drive over to one of my archival drives.

Offline Freedom Kira

  • Member
  • Posts: 4324
  • Rawr™.
Re: HDD Recovery Question
« Reply #3 on: October 19, 2011, 05:20:31 AM »
In Linux, switch your terminal to superuser (I'm only familiar with the command "sudo su" but your distro might use something else) and copy the files using command "cp".

Alternatively, do a "chown" to your user, or just to root if you're in doubt, on all the files.

Offline Ultra_Magnus

  • Member
  • Posts: 281
  • Sieg zeon!
Re: HDD Recovery Question
« Reply #4 on: October 19, 2011, 08:05:50 AM »
Yeah, macs are a unix system, so running as root should work.  You could try "sudo nautilus" or "sudo konqueror" if you would rather use a GUI program.

Offline bork

  • Member
  • Posts: 251
  • Huh ?
Re: HDD Recovery Question
« Reply #5 on: October 19, 2011, 12:51:08 PM »
If you are copying the files while as root, the file ownership will be under root.  After the files are move to the new location, change ownership (chown), to a normal user or you will not be able to access the files as a user.

chown -R owner /dir/...

Offline Natheria

  • Member
  • Posts: 742
  • Gnome in Disguise ¬_¬
    • Mikaeru's Blog
Re: HDD Recovery Question
« Reply #6 on: November 02, 2011, 02:50:07 PM »
Thanks guys! I finally got around to reading these comments and finish working on it last night (damn midterms). All it needed was a cp with the recursive option set (wouldn't have taken so long if the people i asked before had just mentioned cp in the first place instead of knowing zip about ACLs... oh well, now i know a little bit more).