Recover accidentally deleted directory
Hi
I have a NAS326 device with 2 disks,using RAID1
I accidentally deleted a directory using the web interface, there was no recycle bin enabled.
On desktop I use Win10, I use the NAS only as a file server.
I stopped the NAS remotely, I'm on a holiday abroad.
Could you suggest a good way to recover this directory?
Accepted Solution
-
Hi @keep2000
If the recycle bin function wasn’t enabled, unfortunately, once a file or folder is deleted, it cannot be recovered directly from the device.
To prevent accidental deletions in the future, we recommend enabling the recycle bin function. This will help ensure that deleted files or folders can be recovered if necessary.
Kay
0
All Replies
-
The used filesystem, ext4, is not designed to 'undelete' files. Best solution would be if you can recover the directory from a backup.
But if not, do not switch on the NAS. Take the disks out, and connect them to a Linux box. Assemble the raid array, but do not mount the volume. Then use extundelete.
If that fails, AFAIK the only option is to use PhotoRec, or a similar tool. That is a program which scans the whole surface for recognizable file headers, to recover that files. Which means that only files with a recognizable header can be recovered. Nowadays most document files are in that category, and media files. But not raw photo's, and plain text files.
As it doesn't use the filesystem, it cannot recover filenames or timestamps. It cannot handle fragmented files. It doesn't know if a file is deleted or not, so it will write anything it can find to another medium. You can only filter on type.
0 -
Hi @keep2000
If the recycle bin function wasn’t enabled, unfortunately, once a file or folder is deleted, it cannot be recovered directly from the device.
To prevent accidental deletions in the future, we recommend enabling the recycle bin function. This will help ensure that deleted files or folders can be recovered if necessary.
Kay
0
Categories
- All Categories
- 415 Beta Program
- 2.5K Nebula
- 152 Nebula Ideas
- 101 Nebula Status and Incidents
- 5.8K Security
- 296 USG FLEX H Series
- 281 Security Ideas
- 1.5K Switch
- 77 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.5K Consumer Product
- 254 Service & License
- 396 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 87 About Community
- 76 Security Highlight