Accidentelly did
After this, the disk became like it's a couple of disks (the encrypted partition is freebsd-zfs which is da1p3):
The problem is I don't remember if i did
I tried then to restore geli metadata from backup made with 'geli backup'. So I did 'geli restore'. Command succeeded. Now I can mount freebsd-zfs with my password, but there is a clear ZFS filesystem on it. No files.
Problem 2 is that I can't now boot, instead of 'Enter GELI passphrase' message I see just blank console. No reactions to keyboard.
I'm now dumping the decrypted (geli-attached) partition with hexdump:
and I'm seeing parts of existing files on it, including LICENSE and ReadMes. My files should be there, I believe.
zfs list says:
This is wrong. My filesystem was almost 500GB. Here, it looks clear.
I think I need to dig into the ZFS internals and find some ZFS raw disk parser/viewier/recoverer. Maybe someone knows a good forensic tool? What should I do ?
gpart recover
on ZFS partition encrypted with geli The disk is in GPT and has an installed geli bootloader.After this, the disk became like it's a couple of disks (the encrypted partition is freebsd-zfs which is da1p3):
Code:
gpart show
=> 40 2000409184 da1 GPT (954G) [CORRUPT]
40 1024 1 freebsd-boot (512K)
1064 984 - free - (492K)
2048 67108864 2 freebsd-swap (32G)
67110912 1933297664 3 freebsd-zfs (922G)
2000408576 648 - free - (324K)
=> 40 2000409184 diskid/DISK-0123456789ABCDE GPT (954G) [CORRUPT]
40 1024 1 freebsd-boot (512K)
1064 984 - free - (492K)
2048 67108864 2 freebsd-swap (32G)
67110912 1933297664 3 freebsd-zfs (922G)
2000408576 648 - free - (324K)
The problem is I don't remember if i did
gpart recover
on geli-attached (e.g. geli managed) or physical partition device.I tried then to restore geli metadata from backup made with 'geli backup'. So I did 'geli restore'. Command succeeded. Now I can mount freebsd-zfs with my password, but there is a clear ZFS filesystem on it. No files.
Problem 2 is that I can't now boot, instead of 'Enter GELI passphrase' message I see just blank console. No reactions to keyboard.
I'm now dumping the decrypted (geli-attached) partition with hexdump:
hexdump -C /dev/da1p3 | less
and I'm seeing parts of existing files on it, including LICENSE and ReadMes. My files should be there, I believe.
zfs list says:
Code:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
z 736K 891G 88K /mnt/z
This is wrong. My filesystem was almost 500GB. Here, it looks clear.
I think I need to dig into the ZFS internals and find some ZFS raw disk parser/viewier/recoverer. Maybe someone knows a good forensic tool? What should I do ?