Fixing an unmountable drive?

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
keflavich
Posts: 1
Joined: 13 Sep 2016, 16:32

Fixing an unmountable drive?

#1 Post by keflavich »

I'm on Mac OS X 10.9.5. I have an 8TB HD with an exFAT partition that is somehow corrupted. Mac OS's disk utility won't mount the drive, so when I attempt to write the new partition table, it fails. When I start testdisk, all of my drives are listed as read only (RO), which prompts the statement:
"Write access for this media is not available.
TestDisk won't be able to modify it."
How can I (re-)mount my HDs so that testdisk can modify them?

Code: Select all

Select a media (use Arrow keys, then press Enter):
 Disk /dev/disk0 - 500 GB / 465 GiB (RO)
>Disk /dev/disk2 - 8001 GB / 7452 GiB (RO)
 Disk /dev/disk3 - 4000 GB / 3726 GiB (RO)
 Disk /dev/rdisk0 - 500 GB / 465 GiB (RO)
 Disk /dev/rdisk1 - 499 GB / 464 GiB
 Disk /dev/rdisk2 - 8001 GB / 7452 GiB (RO)
 Disk /dev/rdisk3 - 4000 GB / 3726 GiB (RO)
testdisk.log shows:

Code: Select all

search_part()
Disk /dev/disk2 - 8001 GB / 7452 GiB - 1953506646 sectors (RO)
     MS Data                      256 1953503999 1953503744
     exFAT, blocksize=262144, 8001 GB / 7452 GiB

Results
   P MS Data                      256 1953503999 1953503744
     exFAT, blocksize=262144, 8001 GB / 7452 GiB
gpt_change_part_type
Change partition type:
   P MS Data                      256 1953503999 1953503744
     exFAT, blocksize=262144, 8001 GB / 7452 GiB
Change partition type:
   P exFAT                        256 1953503999 1953503744
     exFAT, blocksize=262144, 8001 GB / 7452 GiB

interface_write()
 1 P MS Data                      256 1953503999 1953503744

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Fixing an unmountable drive?

#2 Post by cgrenier »

Mac OS X blocks read-write access to disk when a partition from this disk is mounted.
Use

Code: Select all

diskutil list
and

Code: Select all

diskutil unmount /dev/disk2s1
to umount it before using testdisk.
But your title "unmountable drive" seems to contradict my answer...

Locked