[6.6.6] Accidentally deleted BTRFS signature on cache drive, possible to recover data?


Recommended Posts

So I was an idiot and was trying to format an unassigned NVME drive nvme1n1, but accidentally ran cfdisk /dev/nvme0n1, which prompted me to press any key to delete a btrfs signature, and I proceeded. I then realized my mistake and went back and formatted the correct drive. Unfortunately, after a reboot I now get "Unmountable: No file system" next to the drive.

 

I tried running "mount -o recover,ro /dev/nvme0n1 /x" and "mount -o degraded,recover,ro /dev/nvme0n1 /x" but they both gave me "mount: /x: wrong fs type, bad option, bad superblock on /dev/nvme0n1, missing codepage or helper program, or other error."

 

I then tried "btrfs restore -v /dev/nvme0n1 /mnt/disk3/cache_recovery" which gave me

"No valid Btrfs found on /dev/nvme0n1
Could not open root, trying backup super
No valid Btrfs found on /dev/nvme0n1
Could not open root, trying backup super
ERROR: superblock bytenr 274877906944 is larger than device size 250059350016
Could not open root, trying backup super"

 

I then tried "btrfs check --repair /dev/nvme0n1" which gave me

"enabling repair mode
No valid Btrfs found on /dev/nvme0n1
ERROR: cannot open file system"

 

Is there any hope for recovering the data? I can live with losing the data, but the drive contained a VM image that would take a long time to set up again, so I'd rather recover it.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.