Need to recover SSD partition table using Gdisk on Samsung 512GB on MBP MID 2015

My internal SSD was scrambled due to a power failure during some kind of kernal process or other. It is now unrecognizable in the MBP. I purchased a new SSD and also the OWC external holder for the internal SSD. It is recognized as 251GB uninitialized in the DiskU. Will not mount to do first aid. disutil list shows only this:


/dev/disk2 (external, physical):

  #:            TYPE NAME          SIZE    IDENTIFIER

  0:                          *251.0 GB  disk2


How do I use Gdisk to begin to fix partitions? I do not have this SSD backed up and need to get at a metamask account as I find I saved an incorrect seed phrase (I mixed up seed phrases and threw out the active one!) Could potentially lose 5 k if I cannot recover this! Can anyone held here?

MacBook Pro 15″, macOS 10.12

Posted on Nov 15, 2020 2:16 PM

Reply

Similar questions

45 replies

Nov 16, 2020 3:29 PM in response to Loner T

So yes if there is a default configuration for Apple SSDs it should be a great place to start right? This was factory installed SSD and I never messed with it ever. I was running Mojave (I am 85% sure) at the time and usually very reluctant to upgrade. So whatever GPT layout a factory installed SSD would have after getting upgraded to Mojave will be correct.

Nov 16, 2020 3:34 PM in response to HWTech

As far as making a back up I still must see if GNU needs to be mounted. I tread CCC and it would not recognize the owc enclosure.. it takes time for the owc enclosure (with the original Samsung SSD) to even be recognized on current booted up HD and in disk util. Also disk util will not make an image of it either it just runs the program and seems to not produce anything.

Nov 19, 2020 11:55 PM in response to HWTech

You are totally right about your concerns there--So yes I think LonerT solved that mystery--This OWC case may be incompatible with my SSD I was absolutely floored by that one because I thought I had researched that so completely and went through a lot of trouble in obtaining it. I mentioned above that it was compatible with my year and size but not my specific 11,4 model so this may account for the irregularities-

I will obtain the right hardware and resume this.


I was researching the GNU ddrescue it sounds awesome and safe just as you advertised.

I realized while reading that manual that ddrescue may be the hard part of this if I have to worry about parameters and if the rescue gets stuck. You seem to have a command of it -- curious where do you learn about that or do you pretty much have to know linux or Unix or something?

I do not have another non-mac at this time but I can think about that.


The last part you wrote- I think from what you said I can gather that it is best to be working from a cloned copy, a bit by bit copy and not some kind of image or file so that is what I will resume when I know I have the correct hardware.


I think others went through the same thing as me because the OWC wording misled a little.

I appreciate the help, I'll be back as soon as I get the hardware that will work with this.



Nov 15, 2020 6:07 PM in response to BackBay

Ok this is different- The process just posted:


~ michaelleigh$ sudo gdisk -l /dev/disk2

Password:

GPT fdisk (gdisk) version 1.0.5


Warning! Read error 16; strange behavior now likely!

Warning! Read error 16; strange behavior now likely!

Partition table scan:

 MBR: not present

 BSD: not present

 APM: not present

 GPT: not present


Creating new GPT entries in memory.

Disk /dev/disk2: 490234752 sectors, 233.8 GiB

Sector size (logical): 512 bytes

Disk identifier (GUID): B3DDC15B-F14C-4668-B9B0-6D9603D532E9

Partition table holds up to 128 entries

Main partition table begins at sector 2 and ends at sector 33

First usable sector is 34, last usable sector is 490234718

Partitions will be aligned on 2048-sector boundaries

Total free space is 490234685 sectors (233.8 GiB)


Number Start (sector)  End (sector) Size    Code Name

Nov 16, 2020 12:04 PM in response to BackBay

There is a simple to use command "gpt" which can restore the partition table using the backup copy:

sudo  gpt  recover  diskN


Replace "diskN" with the current drive identifier for your drive. Make sure to get the drive identifier just before running the "gpt" command to make sure you are working on the correct drive. I have used this command to successfully restore the main partition table with the backup.


You need to decide how important this data is to you. If you run this command or any other command on this SSD you will be permanently modifying the SSD NAND where something important may be lost. You may want to consider a professional data recovery service such as Drive Savers or Ontrack. Both vendors provide free estimates and both are recommended by Apple. You may only have one chance at recovering the data from this SSD so choose wisely.


I hope in the future you will have frequent & regular backups including any external media with important & unique data.


Good luck.


Nov 16, 2020 2:23 PM in response to BackBay

BackBay wrote:

I think this implies that I have a backup copy of the partition table right? Which I don't. So this is why I asked if there was a way to make a binary backup above.


You can use the command line utility GNU ddrescue to make a bit for bit clone of a drive. I haven't used the macOS version in years, but you may need to install GNU ddrescue using Homebrew. While I've used GNU ddrescue to rescue failing hard drives I've never had the opportunity to try it with a failing or corrupt SSD.


In Gdisk? The data is meaningful and with vacation photos but really the main priority is getting at that seed phrase on Metamask. It is now worth $8700. If it comes to sending this overseas then yes I will have to do it but I am waiting to hear what Loner T recommends as I have read about his prior data victories on here. The disk had never had a problem then suddenly a power outage wrecks all partitions and recovery of them? I just don't see how that is possible.

In addition to normal file system corruption from improperly unmounting a volume SSDs are susceptible to power issues which can cause corruption of the SSD. At least you can still communicate with the SSD which is a good sign. Definitely work from a clone and leave the original SSD untouched as it may leave you options.


I holding out the hope that it is actually a simple fix for the person who has seen enough of this kind of thing happen. I believe it was just shut down improperly and mixed up, so there must be a process to straighten out the partitioning so the disk is readable again.

You can try using a data recovery app such as PhotoRec or TestDisk which don't require a mounted volume. I don't know if any other apps such as Data Rescue will work from an unmounted volume. Sometimes these apps will ask to modify the drive so just be careful as you don't want to make modifications to the original SSD. Typically for data recovery on failing hard drives I use GNU ddrescue to clone the drive, then I will use tools such as these on the cloned drive including the previously mentioned "gpt". If I expect I need to experiment, then I clone the drive to a raw image file so I can either work from a copy of the image raw image file or I can use it to clone the raw image to a good drive where it is easier to work than working from an image file.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Need to recover SSD partition table using Gdisk on Samsung 512GB on MBP MID 2015

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.