I have a Synology NAS with a RAID 1 setup on which I recently accidentally deleted a shared folder with data I want back. I shut down the NAS and booted into a machine with an Ubuntu Live Cd and attached one of the NAS drives.
I made an image of the drive using DD and now have an oldhd.img file on an external drive.
I then moved to a new machine, booted up with the Live CD attached the external drive and changed to the external drive directory and ran this command
mount -r -o loop oldhd.img /mnt
Then I ran
fdisk -l and saw the drive I need to be recovered was
I changed dir to my computer's hard drive folder and ran:
extundelete /dev/sdb --restore-all
It returns :
extundelete - failed to read-only open device "/dev/sdb": Error code 2133571347
What am I doing wrong? And what should I do instead?