Recovering UFS GPT

Status
Not open for further replies.

dk92

Cadet
Joined
Feb 17, 2012
Messages
2
I accidentally hit the destroy volume button on my UFS volume (actually I was trying to change the name of the volume by destroying it and importing it again; big mistake)
Trying to import the volume does not work, showing "The selected disks were not verified for this import rules"

I'm getting the following results on testdisk. (Though gpart show shows that I have a 2G freebsd swap partition and a freebsd-ufs partition)

The ufs-explorer seems to show that the data is intact.

Is there a way to recover the volume?
 

Attachments

  • Untitled-1.jpg
    Untitled-1.jpg
    56.8 KB · Views: 257

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Have you tried just mounting it from the command line and bypassing the GUI?

If gpart show says you have partitions, they are probably still there. There is a command, I can't remember it off the top of my head, something like "gpart recover" that will rebuild the partition table if one of the two partition tables is corrupt/missing.

I'd just try mounting it first. Try this:

mount -uw /

mkdir /mnt/temp

mount /dev/da0p2 /mnt/temp (change the da0p2 to match the second partition of your disk, ignore the swap for now)

If the mount works and you can "cd" to /mnt/temp and see your files, you should have a better idea what to do.
 

dk92

Cadet
Joined
Feb 17, 2012
Messages
2
It says that it's an invalid argument

mount: /dev/ada1p2 : Invalid argument
 
Status
Not open for further replies.
Top