NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
xtrips1
Nov 15, 2017Aspirant
Recovering permanently deleted files from Readynas Pro
Hello, How do you recover deleted files from a Readynas Pro? I deleted a share thinking it would do that like under Windows. I know I will lose the directory structure and the files names and e...
- Nov 15, 2017
I don't know of a good way to do this. You could try installing extundelete using ssh I guess.
Of course if there are disk writes, the ability to repair rapidly disappears.
If you had the network recycle bin enabled, you might be able to get some data back from there.
jihssan
Nov 25, 2017Tutor
First you have to install putty on you computer.
install from extundelete from http://extundelete.sourceforge.net/ and move it to your readynas so you can access to it and install it.
now you can access to your readynas using putty, for that, enter the ip address of your nas in host, and a console will open inviting you to enter your username and password.
type:
suapt-get updateapt-get upgrade
apt-get install e2fslibs-dev
apt-get install build-essential
apt-get install bzip2
after, on the console, you can view all your data using cd //, so you can acces to the extundelete file.
df -h (to get an idea of disk use and get the path you need)access to extundelete directory by using this command
cd path (ex cd /var/ftp/Backup)
the extundelete is bz2 extension so you have to unzip it using bzip2
bunzip2 extundelete-0.2.4.tar.bz2
you'll get a new folder extundelete... containing the uncompressed files
access to this new folder using
cd ext..... (use tab key to get the whole name )
./configure
make
make install (optional if you want to place it in bin folder)
to check the name of the drive to recover:
fdisk -lto restore all:
extundelete /dev/sda4 --restore-all to restore a directory:
extundelete /dev/sda1 --restore-directory /[directory]/sudo extundelete /dev/sda1 --restore-directory /[directory]/
So, i hope this will help you.
Don't hesitate if you have questions.
xtrips1
Nov 25, 2017Aspirant
Excellent help.
But here is what I get:
NOVANAS:/c/media# cd extundelete-0.2.4
NOVANAS:/c/media/extundelete-0.2.4# ./configure
Configuring extundelete 0.2.4
configure: error: in `/c/media/extundelete-0.2.4':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
NOVANAS:/c/media/extundelete-0.2.4# make
bash: make: command not found
What's next?
- StephenBNov 25, 2017Guru - Experienced User
FWIW, doing an apt-get upgrade on the NAS is not recommended, and can do damage.
- SandsharkNov 25, 2017Sensei
And all of this copying, compiling, etc. is being done in C, where the deleted data lies; so it's making recovery much less likely.
- jihssanNov 25, 2017Tutor
It seems missing the development tools
Try this command
apt-get install build-essential
- jihssanNov 25, 2017Tutor
Why you think it will damage the nas
can you explain please
i tried it on mine and its working perfectly
- xtrips1Nov 25, 2017Aspirant
This is the output:
NOVANAS:~# apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package build-essential has no installation candidate - jihssanNov 25, 2017Tutor
Type this command line and tell me the output please
- xtrips1Nov 25, 2017Aspirant
Sure. Which one?
- StephenBNov 26, 2017Guru - Experienced User
jihssan wrote:
Why you think it will damage the nas
can you explain please
i tried it on mine and its working perfectly
One of many posts on the subject: https://community.netgear.com/t5/Using-your-ReadyNAS/scared-adding-entries-to-etc-apt-source-list/m-p/823561/highlight/true#M9425 That post is for OS 4.1, but actually applies to all ReadyNAS. Some packages are customized and intentionally down-rev.
- jihssanNov 26, 2017Tutor
I forgot pating the command, sorry about that
the command is
nano /etc/apt/sources.list
- xtrips1Nov 26, 2017Aspirant
-bash: nano: command not found
My situation is bad, isn't it?
- SandsharkNov 26, 2017Sensei
Nano is an editor you also need to install. But VI is pre-installed, so you can use it instead.
- xtrips1Nov 26, 2017Aspirant
NOVANAS:~# vi /etc/apt/sources.list
deb http://www.readynas.com/packages 4.2.31/#deb http://archive.debian.org/debian etch main
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
- /etc/apt/sources.list 3/3 100%
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!