NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
whc
Nov 02, 2019Aspirant
Rebuilding shares using SSH possible?
Just mistakenly deleted shares when I deleted stuck snapshots using SSH, is it possible to rebould those shares with SSH, have taken screenshot, so have the ID and gen numbers, maybe a SSH command ca...
Sandshark
Nov 02, 2019Sensei
Do you mean rebuild them with their contents intact? BTRFS RESTORE sounds like it should be able to, but I've not used it.
Step one is to get your NAS into read-only mode pronto so that nothing gets overwritten.
Then, you can start investigating here: https://superuser.com/questions/415132/how-to-undelete-files-on-btrfs-partition
- whcNov 02, 2019Aspirant
How to enable read only mode?
- SandsharkNov 02, 2019Sensei
From the boot menu: How-do-I-access-the-boot-menu-on-my-ReadyNAS-316-516-716
Of course, once you are ready to start, it'll have to be out of read-only mode to do the actual recovery.
- whcNov 02, 2019Aspirant
Cant really find anything that works just yet, have about 4 TB files in those deleted shares, is it not possible to just backup every deleted files to another readynas and then sort them form there?
SSH is not my strong souit, only messed with it to get the "stuck" 2tb snapshots removed from my 316.
Spend the whole day reading how to backup without getting any smarter, btrfs restore, sounds good, but what command to restore entire shares/folders and not just single files?
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!