Re: Felsökning ReadyNAS NV+
Postat: 7 augusti 2016, 21:46:35
Ett skott i dimman: kan det vara en disk med läsfel som återläsas till det blir time-out?
Svenskt forum för elektroniksnack.
https://elektronikforumet.com/forum/
Kod: Markera allt
To perform an OS reinstall or factory reset:
1. Power off your system.
2. Using a straightened paper clip, press and hold the Reset button.
3. As you continue to hold the Reset button, press and release the Power button.
4. When the name of the correct boot mode displays in the status display screen, release the
Reset button.
“OS reinstall” displays in the status display in 5 seconds. “Factory Reset” displays 25
seconds later.
Jag ska testa ovanstående på burken som saknar användardata för tillfället.The System Reset switch allows you to perform three functions:
1. Reinstall the ReadyNAS firmware.
2. Reset the ReadyNAS back to the factory default settings.
3. Change between X-RAID and Flex-RAID mode.
Typically, you should not need to resort to options (1) and (2) unless you exhausted all other means
of recovering your system. You might want to reinstall the ReadyNAS firmware as a first step, if
the ReadyNAS had been working normally but a configuration change makes it inaccessible. If
this does not work or you wish to set the ReadyNAS back to a factory default state, you can do so
following these instructions below:
• To re-install the ReadyNAS firmware: Use a paper clip to depress the switch while the
system is off. Continue to depress the reset switch while powering on the system for
approximately 5 seconds until the disk LEDs flash once to signify that the command has been
accepted. The firmware installation takes several minutes to complete. The Status LED in the
front will be solid green when the process is complete. The installation does not affect the data
on the ReadyNAS.
Warning: Make sure that you do not continue to press the reset switch after the
LEDS flash once, otherwise a Factory Default will occur that erases your data. (see below)
Kod: Markera allt
ftp> pwd
257 "/" is the current directory
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
scan
226 Transfer complete
ftp: 9 bytes received in 0.00Seconds 2.25Kbytes/sec.
ftp>
Kod: Markera allt
nas-01-EE-01:/# pwd
/
nas-01-EE-01:/# ls
0 c frontview lib opt root Simon tmp VHS
backup CJ home lost+found proc sb-090815 susanna USB
bilder dev initrd media pub sbin sys usr
bin etc janne mnt ramfs scan temp var
nas-01-EE-01:/#
Kod: Markera allt
nas-01-EE-01:/# ls -l
total 105
-rw-r--r-- 1 root root 0 Jul 31 2008 0
lrwxrwxrwx 1 root root 9 Jul 31 2008 backup -> /c/backup
lrwxrwxrwx 1 root root 9 Oct 13 2008 bilder -> /c/bilder
drwxr-xr-x 2 root root 4096 Aug 8 18:55 bin
drwxrwxrwx 17 root root 16384 Jul 10 11:27 c
lrwxrwxrwx 1 root root 5 Oct 13 2008 CJ -> /c/CJ
drwxr-xr-x 9 root root 24576 Aug 8 18:56 dev
drwxr-xr-x 52 admin admin 4096 Aug 8 18:57 etc
drwxr-sr-x 6 admin admin 4096 Oct 15 2014 frontview
drwxrwsr-x 3 root root 4096 Sep 19 2003 home
drwxr-xr-x 2 root root 1024 Aug 8 18:55 initrd
lrwxrwxrwx 1 root root 8 Nov 6 2011 janne -> /c/janne
drwxr-xr-x 7 root root 4096 Oct 15 2014 lib
drwx------ 2 root root 16384 Jul 15 2002 lost+found
lrwxrwxrwx 1 root root 8 Jul 31 2008 media -> /c/media
drwxr-xr-x 2 root root 4096 Feb 8 2002 mnt
drwxr-xr-x 3 admin admin 4096 Jul 18 14:29 opt
dr-xr-xr-x 56 root root 0 Dec 1 2003 proc
lrwxrwxrwx 1 root root 6 Oct 18 2008 pub -> /c/pub
drwxrwxrwt 2 root root 0 Aug 8 19:02 ramfs
drwx------ 4 root root 4096 Oct 15 2014 root
lrwxrwxrwx 1 root root 12 Oct 30 2009 sb-090815 -> /c/sb-090815
drwxr-xr-x 2 root root 4096 Oct 15 2014 sbin
lrwxrwxrwx 1 root root 7 Oct 31 2010 scan -> /c/scan
lrwxrwxrwx 1 root root 8 Oct 16 2008 Simon -> /c/Simon
lrwxrwxrwx 1 root root 10 Nov 24 2008 susanna -> /c/susanna
drwxr-xr-x 11 root root 0 Dec 1 2003 sys
lrwxrwxrwx 1 root root 7 Sep 21 2008 temp -> /c/temp
drwxrwxrwt 4 root root 4096 Aug 8 18:56 tmp
drwxrwxrwt 2 root root 40 Aug 8 18:55 USB
drwxr-xr-x 11 root root 4096 Oct 2 2014 usr
drwxr-xr-x 17 root root 4096 May 15 2006 var
lrwxrwxrwx 1 root root 6 Aug 2 2015 VHS -> /c/VHS
nas-01-EE-01:/#
Kod: Markera allt
Aug 08 19:20:11 nas-01-EE-01 proftpd[1956] 192.168.1.15 (192.168.1.91[192.168.1.91]): FTP session opened.
Aug 08 19:20:12 nas-01-EE-01 proftpd[1956] 192.168.1.15 (192.168.1.91[192.168.1.91]): ROOT FTP login successful.
Aug 08 17:20:12 nas-01-EE-01 proftpd[1956] 192.168.1.15 (192.168.1.91[192.168.1.91]): Preparing to chroot to directory '/home/ftp'
Aug 08 17:20:12 nas-01-EE-01 proftpd[1956] 192.168.1.15 (192.168.1.91[192.168.1.91]): USER root: Login successful.
nas-01-EE-01:/#
Kod: Markera allt
Aug 08 19:19:45 nas-01-72-6A proftpd[1594] 192.168.1.6 (192.168.1.91[192.168.1.91]): FTP session opened.
Aug 08 19:19:45 nas-01-72-6A proftpd[1594] 192.168.1.6 (192.168.1.91[192.168.1.91]): ROOT FTP login successful.
Aug 08 19:19:45 nas-01-72-6A proftpd[1594] 192.168.1.6 (192.168.1.91[192.168.1.91]): USER root: Login successful.
nas-01-72-6A:/#
Right, då är det bara att hitta vad det är som styr det...chroot is an operating system call that restricts an application to be able to access only
a subset of the filesystem -- in effect, that part of the filesystem becomes the root,
which it can't see outside of. This is done for security reasons, to create a "jail" which
an FTP client can't see beyond.
Kod: Markera allt
nas-01-EE-01:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hdc1 2015824 550164 1465660 28% /
tmpfs 16 0 16 0% /USB
/dev/c/c 2905844912 532900416 2372944496 19% /c
/c/scan 2905844912 532900416 2372944496 19% /home/ftp/scan