× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

md5 check program for ReadyNAS Ultra

mito1
Aspirant

md5 check program for ReadyNAS Ultra

Hi there,
I've been looking for a programm that can check md5-sums on the ReadyNAS itself.
I create md5-sums on my PC and copy the backup-files an the md5-files to the NAS. After that I check it with md5summer http://www.md5summer.org/. But it means, that my PC has to read the laaarge files over the LAN. And it takes a lot of time and energy because my PC is running.
So is it possible to do this directly on the NAS?
Message 1 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: md5 check program for ReadyNAS Ultra

The "md5sum" command is pre-installed. In fact it is used for checking that firmware updates and add-ons are not corrupt before installing them.

You can SSH in and use. You can install the x86 EnableRootSSH add-on: http://www.readynas.com/?p=4203

However do pay heed to the warning:
NetGear wrote:

With the EnableRootSSH add-on, you can now remote login to the ReadyNAS RAIDiator shell as a root user. Initial password for root will be the same as the current FrontView admin password. Please keep in mind that NETGEAR may deny support if you’ve enabled root access.


To be able to use SSH you need to install the x86 EnableRootSSH add-on (there are other addons to enable SSH access but these are for support use only).

On x86 installation is via the Add-ons menu.

Username is 'root' and password will initially be set to be the same as your admin password.

You can login using PuTTy on Windows.

Alternative you can use the Terminal (found at Applications > Utilities > Terminal on Mac OS X) on Mac OS X or Linux:

ssh root@ip.address.of.nas

Then use Linux shell commands.

If you wish to change the root password you can simply use the passwd command:

MDGM-NAS:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Message 2 of 9
mito1
Aspirant

Re: md5 check program for ReadyNAS Ultra

Thank you for your answer. ssh is already running on my NAS and I will try md5sum. Maybe I say "hello again", if I get problems running it ...
Message 3 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: md5 check program for ReadyNAS Ultra

Simply use

# md5sum /path/to/file
Message 4 of 9
mito1
Aspirant

Re: md5 check program for ReadyNAS Ultra

So I tried this, and it makes me a sum of the md5-file 😎

ReadyNAS:/c/Data/Daten/Images/2008# md5sum 2008.md5
7907fa649f319a1f5e6d60096bae14ea 2008.md5
ReadyNAS:/c/Data/Daten/Images/2008# md5sum -?
md5sum: invalid option -- ?
BusyBox v1.18.4 (2011-03-28 19:08:01 PDT) multi-call binary.

Usage: md5sum [FILE]...
or: md5sum -c [-sw] [FILE]

Print or check MD5 checksums

Options:
-c Check sums against given list
-s Don't output anything, status code shows success
-w Warn about improperly formatted checksum lines

ReadyNAS:/c/Data/Daten/Images/2008#

The I tried "md5sum -s -c 2008.md5" and get:
': No such file or directoryass/thumbs/2008.03.01 - 22.30.22.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.30.34.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.34.36.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.34.40.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.35.10.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.35.22.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.36.32.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.37.20.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.38.34.jpg
': No such file or directoryass/thumbs/2008.03.01 - 22.41.44.jpg


Here are the first lines of my md5-file:
# MD5 checksums generated by MD5summer (http://www.md5summer.org)
# Generated 14.07.2009 08:17:55

a5d1fb2bb7c807db27e628733db5e3b6 *01 Januar/images/2008.01.13 - 17.31.06.jpg
9e11f5e447cff89c8ec05b2bec2923be *01 Januar/images/2008.01.13 - 17.31.16.jpg
18c59d30257900ae54602bc220149261 *01 Januar/images/2008.01.13 - 17.31.28.jpg
cee2ef8a60578d483fec2196f4e23478 *01 Januar/images/2008.01.13 - 17.31.38.jpg
0facfae489f888129981d4204072eca9 *01 Januar/images/2008.01.13 - 17.31.46.jpg
7a4e29db4433c568b733cb969ea9231b *01 Januar/images/2008.01.18 - 18.37.58.jpg
7312b5b43e658fcc45d7b083a2aba954 *01 Januar/images/2008.01.18 - 18.38.30.jpg
3e70738a74c51653e538ec28593e3d56 *01 Januar/images/2008.01.18 - 18.38.46.jpg
1b43e748ac2c955999582625d6df16e0 *01 Januar/images/2008.01.18 - 18.38.50.jpg

How I have to use the programm correctly??
Message 5 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: md5 check program for ReadyNAS Ultra

Do those thumbs files exist? e.g. /c/Data/Daten/Images/2008/directoryass/thumbs/2008.03.01 - 22.30.22.jpg
Message 6 of 9
mito1
Aspirant

Re: md5 check program for ReadyNAS Ultra

Yes, there is a folder called "thumbs". These are webalbums created with jalbum. There is a folder with the original images (images), a folder with html-stuff (res), one with the html-pages (slides) and one folder with the small thumb pictures.

But the directory ist not O.K. The path on the NAS is:
/c/Data/Daten/Images/2008/thumbs/2008.03.01 - 22.30.22.jpg

And the md5-file is located in the folder 2008. But in the output of md5sum it tells
/c/Data/Daten/Images/2008/directoryass/thumbs/2008.03.01 - 22.30.22.jpg

Don't ask me where the /directoryass/ comes from ...
Message 7 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: md5 check program for ReadyNAS Ultra

You did a md5sum -s -c but the help info suggested doing a md5sum -c -s. It's possible that it needs to be done in this order for it to work properly.
Message 8 of 9
mdgm-ntgr
NETGEAR Employee Retired

Re: md5 check program for ReadyNAS Ultra

It's also possible that md5sum doesn't like the * on each line of the list.

I think the command you should use to create a new md5-file with this change is something like

sed 's/\*//g' md5-file > new-md5-file


Or better yet, perhaps you could do a command to replace a space followed by an asterisk with just a space.

As your filenames include spaces you will also want to put quotes around them. You could use a command to replace just the first space in the line with a space + quotation mark (") and add another quotation mark to the end of each line. There should be commands to do these changes as well.
Message 9 of 9
Top Contributors
Discussion stats
  • 8 replies
  • 1238 views
  • 0 kudos
  • 2 in conversation
Announcements