Jump to content
5 posts in this topic

Recommended Posts

playing around I did a silly mistake and erased the wrong softraid in diskutility. Fortunately I have a backup of the disk but it misses my last work. The files aren´t erased and disks not formatted. In disk utility they are marked as "Apple_Raid_Offline" now

 

with gpt -r show /dev/disk0 I have this output

 

start       size  index  contents
         0          1         PMBR
         1          1         Pri GPT header
         2         32         Pri GPT table
        34          6         
        40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
    409640  489562928      2  GPT part - 52414944-5F4F-11AA-AA11-00306543ECAC
 489972568     262144      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
 490234712          7         
 490234719         32         Sec GPT table
 490234751          1         Sec GPT header

 

the difference between active and non active is defined at 2 GPT part - 52414944-5F4F-11AA-AA11-00306543ECAC (which says offline) and should be changed to 52414944-0000-11AA-AA11-00306543ECAC

 

is this possible ie with GPT Fdisk or similar tools? any experiences?

Link to comment
https://www.insanelymac.com/forum/topic/191407-edititing-a-gpt-table/
Share on other sites

I'm the author of GPT fdisk. I don't know enough about Apple's RAID tools to know precisely what it does when it marks a RAID partition as "offline;" however, if the change is only to the partition's type code GUID, then GPT fdisk can certainly change the type code back. An "offline" RAID volume shows up in GPT fdisk with an internal code of AF02, and you can use the 't' command to change it to AF01.

 

It's certainly worth trying making such a change, but I can't promise it'll work. If it doesn't work, you can change it back and try some other approach.

 

Best of luck solving your problem.

I doubt it´s only this, but worth a try anyway - could you give me a hint where to find the documentation for the commands in gpt fdisk?

 

EDIT: found it on your website :) will report what happened

 

There's also a man page that documents every command. Type "man gdisk" if you installed the OS X package in OS X or one of the Debian or RPM packages in Linux. The man.8 file in the source tarball is the man page file, so you can read it directly or put it somewhere appropriate if you want to compile the source code yourself.

hi rod, thanks for the response.

 

found that man already :)

 

results: could change the Apple Raid offline to Apple Raid, but this didn´t help (what I expected)

 

but.............got the folders back with a wonderful recovery app!!! r-studio did the trick.

with this tool you are able to rebuild virtually the raid and recover the files. because it was so amazing fast I recovered the whole disk - no files lost ! everything back 100%! to do it successfully you need only to remember the order of the disks in the raid config and the stripe size (fortunately I wrote those things down).

 

thanks for your help :)

×
×
  • Create New...