0

I'm on Ubuntu MATE trying to get write access to an OSX hard drive to backup a buddy's data on his MBP that bit the dust when the battery exploded in the computer. I've seen the thread over here:

How to mount a HFS partition in Ubuntu as Read/Write?

That said to use this to remount:

sudo mount -t hfsplus -o remount,force,rw /dev/sdx# /mount/point

My question, is the sdx# where you tell Linux which HDD to remount? If so how do you find that number? I'm a real noobie when it comes to Linux and I'm trying to pick it up as I go, I just don't want to mess his stuff up so figured I'd better ask first.

  • Note: The HDD is still good. I can see all his files and open them in sudo, but can't copy/paste which is why I need write access to back it up.
biggi_
  • 3
  • 2

1 Answers1

0

In a the Ubuntu terminal you can type 'sudo fdisk -l' to list drives and partitions.

Superuser_do
  • 170
  • 7
  • And that drive is what goes on the sdx# portion? Does it take the place of the whole sdx# string or just the '#' character? – biggi_ Aug 15 '16 at 16:24
  • Replace sdx with the partition label. So if it's sda1 then use /dev/sda1. If it's sdb1 then use /dev/sdb1 – Superuser_do Aug 15 '16 at 16:28
  • Sounds good, thank you! I'm assuming that this will give me enough capability to recover his files off the HFS+ journaled partition? – biggi_ Aug 15 '16 at 16:29
  • Have you installed hfsprogs? – Superuser_do Aug 15 '16 at 16:34
  • Not currently, I just found the link I posted today and plan on doing this this evening when I get home. But when I install that and do the remount, I should be good correct? – biggi_ Aug 15 '16 at 16:34
  • Yeah you should be good to go. Let me know if you run into any errors. – Superuser_do Aug 15 '16 at 16:36
  • Will do...and this is a fairly safe method correct? Shouldn't corrupt any files or anything? – biggi_ Aug 15 '16 at 16:37
  • It shouldn't do – Superuser_do Aug 15 '16 at 16:40
  • I did: sudo mount -t hfsplus -o remount,force,rw /dev/sda2 /meida/Macintosh HD And I'm still getting permission errors. Do you see anything wrong with this? – biggi_ Aug 15 '16 at 23:38
  • can you be sure that /dev/sda2 is the correct device? Otherwise the only thing I can think of is for you to get access to an OS X device and disable journaling. – Superuser_do Aug 15 '16 at 23:55
  • /dev/sda2 is the 232.1G Apple HFS/HFS+ type. Then I have the /dev/sda3 that's the 619.9M Apple boot. How do you disable journaling? Will that make it so the files can get corrupt? He has some important stuff he needs off – biggi_ Aug 16 '16 at 00:12
  • After doing some research it seems that Linux doesn't like journaled partitions and so can't read or write. The only way to disable journaling is to connect the device to a mac and either use disk utility or run `diskutil disableJournal /Volumes/TheVolumeName` in the terminal. The files shouldn't be corrupted. – Superuser_do Aug 16 '16 at 00:55
  • but it has to be done from a mac? so i've managed to get things to the /root/desktop but can't transfer them to my user desktop to upload them. any ideas there? I'm getting close I think... – biggi_ Aug 16 '16 at 00:57
  • Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/44024/discussion-between-wgdvs-and-superuser-do). – biggi_ Aug 16 '16 at 01:02
  • From my understanding it does have to be done with a mac. If you're having trouble moving files i suggest you use terminal and use `sudo mv /root/desktop/file /user/desktop`. – Superuser_do Aug 16 '16 at 01:03