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

ReadyNAS NV+ v1 - no browser access, no share access

StephenB
Guru

Re: ReadyNAS NV+ v1 - no browser access, no share access

Now that the OS partition isn't full, you could try doing another OS reinstall, and see if that gets you past the boot up issue.


@ziemowit wrote:
  • as you see I have the shares present in Windows Explorer

Then the best approach to backup the files is to copy the shares from Windows.  That is actually faster than mounting a USB disk in the NV+.

 

The puzzle is getting past the login issue.  Have you tried admin as the username (and the NAS admin password)?  It's not clear if the OS reinstall took, if it did than you'd need to use netgear1 as the password.

 

Have you listed the accounts on the system (cat /etc/passwd)?

 


@ziemowit wrote:

 

That script that alerts you about root size - if you could share it I would be very thankful. Please... 🙂

It doesn't actually alert you.  It creates a log file zip, and then writes that with rsync to a different NAS.  There is more on this here:

In the case of the NV+, the script that actually builds the log zip file is 90_CreateLogs. The log zip includes the OS usage (disk_usage.log). This is a script Netgear autogenerates on my own NV+ (copied while it was creating the zip file).

 

# This file is auto-generated.  Do not modify!

. /frontview/bin/functions
. /etc/default/services
[ -d '//ramfs/log_zip' ] || mkdir -p //ramfs/log_zip
rm -f //ramfs/log_zip/*
echo -e '***** smartctl output for hdc *****\n' >> //ramfs/log_zip/disk_smart.log
/usr/sbin/smartctl -a /dev/hdc >> //ramfs/log_zip/disk_smart.log
echo -e "\n\n\n" >> //ramfs/log_zip/disk_smart.log
echo -e '***** smartctl output for hde *****\n' >> //ramfs/log_zip/disk_smart.log
/usr/sbin/smartctl -a /dev/hde >> //ramfs/log_zip/disk_smart.log
echo -e "\n\n\n" >> //ramfs/log_zip/disk_smart.log
echo -e '***** smartctl output for hdg *****\n' >> //ramfs/log_zip/disk_smart.log
/usr/sbin/smartctl -a /dev/hdg >> //ramfs/log_zip/disk_smart.log
echo -e "\n\n\n" >> //ramfs/log_zip/disk_smart.log
echo -e '***** smartctl output for hdi *****\n' >> //ramfs/log_zip/disk_smart.log
/usr/sbin/smartctl -a /dev/hdi >> //ramfs/log_zip/disk_smart.log
echo -e "\n\n\n" >> //ramfs/log_zip/disk_smart.log

echo "===== pvscan =====" > //ramfs/log_zip/volume.log
pvscan >> //ramfs/log_zip/volume.log 2>&1
echo "===== vgscan =====" >> //ramfs/log_zip/volume.log
vgscan >> //ramfs/log_zip/volume.log 2>&1
echo "===== lvscan =====" >> //ramfs/log_zip/volume.log
lvscan >> //ramfs/log_zip/volume.log 2>&1
echo "===== vgdisplay =====" >> //ramfs/log_zip/volume.log
vgdisplay >> //ramfs/log_zip/volume.log 2>&1
for i in `/sbin/lvscan|awk -F[\"\'] '/ACTIVE/ { print $2 }'`;do
  echo "===== lvdisplay $i =====" >> //ramfs/log_zip/volume.log
  lvdisplay $i >> //ramfs/log_zip/volume.log 2>&1
  echo "===== dumpe2fs $i =====" >> //ramfs/log_zip/volume.log
  dumpe2fs -h $i >> //ramfs/log_zip/volume.log 2>&1
done
echo "===== fstab =====" >> //ramfs/log_zip/volume.log
cat /etc/fstab >> //ramfs/log_zip/volume.log
>//ramfs/log_zip/disk_identify.log
for i in /proc/ide/hd[c-q]/identify; do
  echo "**** $i *****" >>//ramfs/log_zip/disk_identify.log
  cat $i >>//ramfs/log_zip/disk_identify.log
  echo >>//ramfs/log_zip/disk_identify.log
done
fdisk -ul &> //ramfs/log_zip/partition.log
mount > //ramfs/log_zip/mounts.log
lspci -v > //ramfs/log_zip/pci_devices.log 2> /dev/null
ifconfig -a > //ramfs/log_zip/network_settings.log
grep eth /etc/default/services >> //ramfs/log_zip/network_settings.log
[ -s /root/.bash_history ] && cat /root/.bash_history > //ramfs/log_zip/local_commands.log
ls -lR /etc > //ramfs/log_zip/etc-ls.log
ps aux > //ramfs/log_zip/processes.log
cp /var/log/frontview/ecounter_*.log //ramfs/log_zip
cat /var/log/proftpd.log > //ramfs/log_zip/ftp.log
cat /var/log/frontview/access.log > //ramfs/log_zip/httpd_access.log
cp /var/log/frontview/command.log //ramfs/log_zip
cp /var/log/frontview/msmtp.log //ramfs/log_zip
cat /var/log/syslog > //ramfs/log_zip/system.log
cat /proc/sys/dev/boot/info > //ramfs/log_zip/boot_info.log
cat /var/log/frontview/spool.err > //ramfs/log_zip/spool_error.log
cat /proc/sys/dev/spd/info > //ramfs/log_zip/memory_spd.log
cat /var/log/netatalk.log > //ramfs/log_zip/afp.log
cat /etc/default/services > //ramfs/log_zip/services.conf
cat /proc/xraid/configuration > //ramfs/log_zip/xraid_config.log
cp /var/log/frontview/backup/*.log //ramfs/log_zip
cp /var/log/frontview/spool.log //ramfs/log_zip
cat /var/log/samba/log.smbd > //ramfs/log_zip/smbd.log
cat /var/log/frontview/error.log > //ramfs/log_zip/httpd_errors.log
cat /etc/frontview/fan_setting_min > //ramfs/log_zip/fan_setting_min
cp /var/log/frontview/enclosure.log //ramfs/log_zip
cat /var/log/raidiator_version > //ramfs/log_zip/raidiator_version.log
cp /var/log/user.log //ramfs/log_zip
cp /var/log/frontview/disk_smart_*.log //ramfs/log_zip
cat /proc/bus/usb/devices > //ramfs/log_zip/usb_devices.log
cat /var/log/frontview/status.log-old > //ramfs/log_zip/status-old.log
cat /var/log/samba/log.nmbd > //ramfs/log_zip/nmbd.log
cp /var/log/frontview/disk_usage.log //ramfs/log_zip
cat /proc/sys/dev/ecounter/info > //ramfs/log_zip/ecounter.log
cp /var/log/daemon.log //ramfs/log_zip
cat /proc/sys/dev/hwmon/info > //ramfs/log_zip/hwmon_info.log
cat /proc/meminfo > //ramfs/log_zip/mem_info.log
cat /var/log/dmesg > //ramfs/log_zip/dmesg.log
cat /etc/frontview/fan_setting_last > //ramfs/log_zip/fan_setting_last
cat /var/log/kern.log > //ramfs/log_zip/kernel.log
cp /etc/frontview/raid.conf //ramfs/log_zip
cp /tmp/diagnostics.log //ramfs/log_zip
chown -R admin //ramfs/log_zip
rm -f '/var/spool/frontview/90_CreateLogs'

 

 

You'll see a reference in the linked post above to a diag script (that creates diagnostics.log).  That is

 

#!/bin/bash
# $Revision: 1.18 $
# modified for creating logs

STD="/dev/null"
ERR="/dev/null"
SQL_USER="factory"
SQL_PASS="infrant1"

SUMMARY=
VERSION=`echo '$Revision: 1.18 $'|awk '{ print $2 }'`
KERNEL_VERSION="`cat /proc/sys/kernel/osrelease` `cat /proc/sys/kernel/version`"
hwclock --show 2>&1 | grep -q invalid && hwclock --set --date 11/28/2005
STARTTIME=`hwclock --show|sed -e 's/-.*//'`
DATE=`date -d "$STARTTIME" +%s`
STARTTIME=`date -d"$STARTTIME" "+%Y-%m-%d %T"`
MINIBOOT=`grep ^loader /proc/sys/dev/boot/info | cut -d" " -f2`
VENDOR=`grep ^vendor: /proc/sys/dev/boot/info |cut -f2`
MODEL=`grep ^model: /proc/sys/dev/boot/info |cut -f2`
LED=0,0,0,0


echo -e "\n\n"
echo -e "================================================================"
echo -e "Infrant Manufacturing Test, Version $VERSION"
echo -e "Running on kernel $KERNEL_VERSION"
echo -e "================================================================"

echo 
echo -e "================================================================"
echo -e "Testing onboard network interface..."
echo -e "================================================================"
ONBOARD_RESULT="FAILED"
LED2=$LED
LED=0,1,0,0
echo -n "Testing DHCP and ping..."
SERVER=`cat /tmp/.dhcp_server`
ping -c 3 -w 3 $SERVER >$STD 2>$ERR && ONBOARD_RESULT="PASSED" LED="$LED2"
echo done
ONBOARD_SUMMARY="ONBOARD NIC TEST.......... ${ONBOARD_RESULT}"
SUMMARY="${ONBOARD_SUMMARY}\n${SUMMARY}"
echo -e "$ONBOARD_SUMMARY"


  DISKS=0
  for i in /proc/ide/hd[c-z]; do
    DISKS=$(($DISKS+1))
  done
  d=0
  for i in /proc/ide/hd[a-z]; do
    i=`echo $i|cut -f4 -d/`
    if [ "$d" -eq "$DISKS" ]; then
      DISKINFO="${DISKINFO}Disk $d: `hdparm -i /dev/$i|awk -F\"^ \" '/Model/ { print $2 }'`"
    elif [ "$d" -eq "0" ]; then
      DISKINFO="${DISKINFO}CF Card: `hdparm -i /dev/$i|awk -F\"^ \" '/Model/ { print $2 }'`\n"
    else
      DISKINFO="${DISKINFO}Disk $d: `hdparm -i /dev/$i|awk -F\"^ \" '/Model/ { print $2 }'`\n"
    fi
    d=$(($d+1))
  done
  SPD=`cat /proc/sys/dev/spd/info`
  if [ -d "/proc/ide/hda" ]; then
    /frontview/bin/new-flasher read /dev/mtd0 0x100 256 /tmp/config &>/dev/null
    VPD=`od -Ad -vx /tmp/config|cut -f2-9 -d" "|head -16`
    rm -f /tmp/config
  else
    VPD="UNKNOWN"
  fi
  MAC=`ifconfig eth0|awk '/HWaddr/ { print $5 }'`
  unset SPD
  unset VPD
  unset MAC

echo 
echo -e "================================================================"
echo -e "Testing Memory..."
echo -e "================================================================"
MEM_RESULT="PASSED"
echo -n "Running quick memory check..."
memtest 64K 1 >$STD 2>$ERR || MEM_RESULT="FAILED" LED="1,1,0,0"
echo done
MEM_SUMMARY="MEMORY TEST .............. ${MEM_RESULT} \
(Found `awk '/^SZ/ { print $2 }' /proc/sys/dev/spd/info` MB)"
SUMMARY="${MEM_SUMMARY}\n${SUMMARY}"
echo -e "$MEM_SUMMARY"


echo 
echo -e "================================================================"
echo -e "Testing hard disks..."
echo -e "================================================================"
DISK_RESULT=PASSED
DISKS=0
for i in `grep " 0 .*hd[c-z]" /proc/partitions |cut -f2 -dd`; do
  echo -n "Running quick check on hd${i}..."
  DISKS=$(($DISKS+1))
  NEWINFO=`hdparm -i /dev/hd${i}|grep Model|cut -f2 -d"="|cut -f1 -d","`
  if [ -z "$DISKINFO" ]; then
    DISKINFO="hd${i} - ${NEWINFO}\n"
  else
    DISKINFO="hd${i} - ${NEWINFO}\n${DISKINFO}"
  fi
  DTEST=`hdparm -T /dev/hd${i} 2>&1`
  DERROR=$?
  echo $DTEST
  [ $DERROR -eq 0 ] || DISK_RESULT="FAILED" LED=1,1,1,0
  unset DTEST
  unset DERROR
done


DISK_SUMMARY="DISK TEST ................ ${DISK_RESULT}"
SUMMARY="${DISK_SUMMARY}\n${SUMMARY}"
echo -e "$DISK_SUMMARY"


echo 
echo -e "================================================================"
echo -e "Testing hardware monitoring..."
echo -e "================================================================"
LED2=$LED
LED=1,0,1,0
grep -v vtt /proc/sys/dev/hwmon/info | sed 's/_/ /g'
for i in 15 25 33 50; do
  grep -q "power_${i}" /proc/sys/dev/hwmon/info || continue
  [ `sed 's/\.//g' /proc/sys/dev/hwmon/info|grep power_$i|cut -f2 -d:` -lt $((${i}00 - (${i}00 / 10))) ] && ENC_RESULT="FAILED - low voltage"
done
for i in 0 1 2; do
  grep -q "temp_${i}" /proc/sys/dev/hwmon/info || continue
  if [ `grep temp_${i} /proc/sys/dev/hwmon/info|cut -f2 -d:|sed 's/\..*//'` -gt 65 ]; then
    if [ -z "$ENC_RESULT" ]; then
      ENC_RESULT="FAILED - temp out of range"
    else
      ENC_RESULT="${ENC_RESULT}; temp out of range"
    fi
  fi
done
FAN=0
for i in 0 1 2; do
  grep -q "fan_${i}" /proc/sys/dev/hwmon/info || continue
  FAN=$(($FAN + `grep fan_${i} /proc/sys/dev/hwmon/info|cut -f2 -d:|sed 's/\..*//'`))
done
if [ $FAN -lt 1 ]; then
  if [ -z "$ENC_RESULT" ]; then
    ENC_RESULT="FAILED - no fan speed detected"
  else
    ENC_RESULT="${ENC_RESULT}; no fan speed detected"
  fi
fi
[ -z "$ENC_RESULT" ] && ENC_RESULT=PASSED LED=$LED2
ENC_SUMMARY="HARDWARE MONITOR TEST .... ${ENC_RESULT}"
SUMMARY="${ENC_SUMMARY}\n${SUMMARY}"
echo -e "$ENC_SUMMARY"


echo 
echo -e "================================================================"
echo -e "Checking RTC..."
echo -e "================================================================"
RTC_RESULT="PASSED"
TIME=`hwclock --show|sed -e 's/-.*//'`
DATE=`date -d "$TIME" +%s`
sleep 10
TIME=`hwclock --show|sed -e 's/-.*//'`
NEWDATE=`date -d "$TIME" +%s`
[ $(($NEWDATE - $DATE)) -lt 9 ] && RTC_RESULT="FAILED" LED=1,0,0,0
RTC_SUMMARY="RTC TEST ................. ${RTC_RESULT}"
SUMMARY="${RTC_SUMMARY}\n${SUMMARY}"
echo -e "$RTC_SUMMARY"


echo -e "\n"
echo -e "================================================================"
echo -e "Final Test Summary:"
echo -e "================================================================"
echo -e ${SUMMARY} | grep PASSED
echo -e ${SUMMARY} | grep FAILED
echo
echo -e "================================================================"
echo -en "TEST RESULT:   "
if echo ${SUMMARY}|grep -q FAILED; then
  echo -e "FAIL"
else
  echo -e "PASS"
fi
echo -e "================================================================"

exit 0

 

 

Message 26 of 29
ziemowit
Aspirant

Re: ReadyNAS NV+ v1 - no browser access, no share access

Thanks for the idea of reinstalling the O/S. Yes, the netgear1 password works with root, as I am now using scp to offload files from the NV+ into Windows and that is the password I am using. But reinstalling might be a good try to get things working again. Anyway, scp is less "pita" than I feared. Before re-installing the O/S I will see if I can do a "usermod" for admin and see where it gets me. Will keep you posted. 


Thanks for the scripts! I will study them thoroughly, to see what I can learn from them. 

Message 27 of 29
ziemowit
Aspirant

Re: ReadyNAS NV+ v1 - no browser access, no share access

I have tried to reinstall the O/S, but the result was the same as before. Still no access to shares, although the shares were listed in Windows explorer. A change was there in the meaning that I also could see the USB disk, but again... no access. No username/password combination could make it work.

 

The scp in tech support mode seemed to work, but it was slooooow - and the file creation dates got changed to corrent date and time. Not what I wanted. So scp was out of question for the moment.

 

As I could not figure out how to mount the USB disk in tech support mode, I decided to go for the "boot" path where I could see that the USB disk got mounted. They I decided to play around with /etc/rc3.d or /etc/rc5.d (I did not know whether the system actually entered rl 3 or 5.) I added the links to /etc/init.d/ssh to both rc3.d and rc5.d to see whether I got what I wanted - and it worked!

nas2:/USB_HDD_1# ls -l /etc/rc5.d
total 0
lrwxrwxrwx    1 root     root           18 Jan 30 12:15 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx    1 root     root           17 Jan 30 12:15 S11hotplug -> ../init.d/hotplug
lrwxrwxrwx    1 root     root           15 Jan 30 12:15 S11klogd -> ../init.d/klogd
lrwxrwxrwx    1 root     root           17 Aug 18  2015 S14mysql -> /etc/init.d/mysql
lrwxrwxrwx    1 root     root           14 Jan 30 12:15 S20exim -> ../init.d/exim
lrwxrwxrwx    1 root     root           15 Jan 30 12:15 S20inetd -> ../init.d/inetd
lrwxrwxrwx    1 root     root           15 Jan 30 18:43 S20ssh -> /etc/init.d/ssh

So now I had ssh running and a system with all the shares and USB disk mounted. 

nas2:/USB_HDD_1# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc1             1.9G  554M  1.3G  28% /
tmpfs                  16k     0   16k   0% /USB
/dev/c/c              2.7T  2.4T  351G  88% /c
/dev/sda1             931G  867M  930G   1% /USB/USB_HDD_1

I installed winscp on my windows machine and actually offload files simultaneously in two different ways:

  • by winscp (and it does not change file creation dates)
  • by direct copy to USB disk and it's quite fast, by my expectations.

The next step will be to figure out how to dump metadata from my mySQL database into text file(s) and then to re-initialize the NV+ to factory setup.

Message 28 of 29
StephenB
Guru

Re: ReadyNAS NV+ v1 - no browser access, no share access


@ziemowit wrote:

The next step will be to figure out how to dump metadata from my mySQL database into text file(s) and then to re-initialize the NV+ to factory setup.


I wouldn't try to get the metadata out of Netgear's SQL database, it's simplest to just reconfigure the NAS from scratch. The boot issue is likely due to damaged config files, so you need to reconfigure anyway.

Message 29 of 29
Top Contributors
Discussion stats
  • 28 replies
  • 2801 views
  • 2 kudos
  • 3 in conversation
Announcements