How do manually mount hard drive on mac?

4

2

My mac recently gave up and I'm trying to salvage whatever data I can from the hard drive. I was able to boot using the OSX Installation CD and fire up Disk Utility that basically told me that the drive could not be repaired and I need to format it. My question - how can I manually mount it (from Terminal) and try to recover some of my data? I figured that if Disk Utility can see it, perhaps I could too. Thanks.

sa125

Posted 2011-11-07T17:34:42.587

Reputation: 916

Answers

7

To mount disks:

diskutil list

see your drive and note id#, then:

diskutil mountDisk /dev/diskn

where n is the # you id'ed in diskutil list

Moda

Posted 2011-11-07T17:34:42.587

Reputation: 126

sudo diskutil mount readOnly /dev/disk2s1 is what I had to use – Jake Berger – 2016-03-06T19:53:55.343

3

You can try something like this:

mount /dev/disk1s10

And replace disk1s10 with the identifier of your drive.

JW8

Posted 2011-11-07T17:34:42.587

Reputation: 1 162

There are plenty of disk* entries in /dev. How can I know which one is my actual drive? thanks again. – sa125 – 2011-11-07T18:20:14.030

There are a few ways that I can think of. First get a list of all mounted drives before mounting the old drive. After you mount the old drive, view the list again - you can id it by process of elimination. There were a few other methods found in this SU post: http://superuser.com/questions/114515/how-can-i-find-what-dev-my-dvd-drive-is drutil and df looked like the most effective methods

– JW8 – 2011-11-07T18:53:19.667

2you can know the identifier doing diskutil list disk2 (i.e for disk2) – konus – 2011-11-26T04:29:38.343