NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
bhsmith
Feb 11, 2018Aspirant
btrfs corruption
I had to reboot my system today and when it came backup it was missing the volumes. I had tried everything I could find in the forums but ended up doing a repair. All my files came back and I thoug...
mdgm-ntgr
Feb 11, 2018NETGEAR Employee Retired
What do you mean by you did a repair? What did you do?
With data recovery attempts you do need to be careful and you do risk making things worse trying to repair things yourself especially if you don't know whether what you are doing is the right way to proceed. Destructive processes can permanently prevent data recovery from being successful.
If you really want to experiment then a prudent step can be to clone the disks (label order) onto new disks first using a tool designed to handle cloning failing disks. That way if you mess things up you've still got another set of disks that can be worked on.
Attempting to fix things yourself may eliminate any chance of professional help being able to recover data.
If btrfs restore is working it's probably best to proceed with that with this proviso: make sure you're not restoring the files to the same volume you are attempting to recover files from. If you restore to the same volume you'll be overwting some data you need to successfully restore your files. So the destination for btrfs restore could be e.g. a USB disk.
Once it's complete you'd then need to check what's been recovered to see if the data is good or not.
- bhsmithFeb 11, 2018Aspirant
The repair was btrfsck --repair
I am getting all of my files and so far they are 100% good. I am comparing them to my backups and just restoring the files I need on a USB backup drive.
What got me into all this trouble was I had a backup on another USB drive and I was trying to save time by compying those files over to the /data dir without using windows. I had ssh'ed into the NAS and was doing a cp to my /data dir. I suddenly received read only file system messages and then everything was corrupted. So my question is after I get the files I want on the USB drive and reset the ReadyNas to factory defaults. How do I get my 10 TB of data back onto the NAS without having to go through windows which is painfully slow? I am afraid to do the cp again as that my corrupt it again.
- StephenBFeb 11, 2018Guru - Experienced User
Using cp shouldn't have corrupted the data volume. You probably should double-check the SMART stats in the log zip file.
Another option is to organize the data on the USB drives into folders, and copy them onto the data volume using the built-in backup job facility. You can do this folder-by-folder (editing the backup job after each one completes).
- mdgm-ntgrFeb 11, 2018NETGEAR Employee Retired
It is possible that the repair operation you ran may do additional damage. It’s best to recover what you can using btrfs restore before doing potentially destructive repair operations. See e.g. https://btrfs.wiki.kernel.org/index.php/Btrfsck
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!