Save original firmware for later restoration

Re: Save original firmware for later restoration

Postby matzi » Fri May 30, 2014 11:04 pm

on the current system disk it should not be patched because that one is installed by fvdw console yesterday. sdb is patched if I remember right wit the heartbleed fix.

yes it is the database from rw_fs, I think the actual one. Remember it is from current system disk. I womder why this system disk it not mofified by the system while the other one from nwsp2 is? And why is it touching the database? You did not tell me about the disc id, can there be an issue?

I will do the upgrade and come back tomorrow. ;)
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby fvdw » Fri May 30, 2014 11:10 pm

yes tomorrow we will proceed
maybe the output in this post viewtopic.php?f=26&t=1860&start=10#p14928 is not representative for what is running now.

PS the real database is in /rw_fs/etc (not in /rw_fs) ! and should not have "ok" in the name

Will need to check that disk sda is really the 1TB Samsung dis and if so why sda5 is not containing a correct database

see you tomorrow, good night
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby fvdw » Sat May 31, 2014 7:59 am

to get more detailed output in boot.log
replace the file globals.inc in /etc/inc folder by the one in the attached zip archive.

A reboot is required to get the more detailed output in boot.log
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby matzi » Sat May 31, 2014 8:36 am

O. globals.inc is installed. boot.log then is
Code: Select all
start boot log
detect and set platform
5big2
UIMAGE-3136-NWSP2CL-19
5big2
update dev nodes
booting using sda2 root file system...
make dev node for buttons...
make dev node for tun device...
enable IP forwarding...
start buttons control daemon
device = 5big2
source = buttons-nwsp2
buttons-nwsp2 daemon started
Sat May 31 10:31:18 CEST 2014
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
configure loopback netwerk interface
setting reboot and standby
5big2
rebootd-nwsp2
5big2
standbyd-nwsp2
start fan
fan5big daemon started
starting php based setup routines step 1
mwexec(): killall syslogd
 * Starting syslogd... mwexec(): /sbin/syslogd -b 5
             [ OK ]
mwexec(): chown 99:99 /tmp/etc/nas_conf_vltl.xml
mwexec(): chmod 666 /tmp/etc/nas_conf_vltl.xml

 * Found XML database configuration file...    [ OK ]
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec(): chown 99:99 /rw_fs/etc/nas_conf_db.xml
mwexec(): chmod 666 /rw_fs/etc/nas_conf_db.xml
 * Updating Disks database... mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
          [ OK ]
 * Starting mount of volumes...
   - Mounting volume Vol-A:        [ OK ]
 * Finishing mount of volumes...        [ OK ]
 * Starting udevd... mwexec(): /sbin/udevd --daemon
mwexec(): /sbin/udevadm trigger --action=add
mwexec(): /sbin/udevadm settle --timeout=5
                [ OK ]
 * Generating Hosts File...           [ OK ]
 * Configuring System Hostname... mwexec(): /usr/bin/hostname 'fvdwsl-base.local'
       [ OK ] 
 * Configuring LAN interface... mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec(): /sbin/ifconfig -a 'eth0' 169.254.164.81 netmask 255.255.0.0
mwexec(): /sbin/ifconfig 'eth0' up
mwexec(): /sbin/udhcpc -b -i 'eth0' -s /etc/api/api_dhcpc.php dhcpdCbScript
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
       [ OK ]
 * Initializing Timezone... mwexec(): ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
          [ OK ]
 * Starting web server... mwexec(): rm /etc/webdav.conf
mwexec(): chmod 644 /etc/webdav.conf
mwexec(): /usr/bin/httpd -f httpd.conf -d /etc
             [ OK ]
 * Configuring Disks... mwexec(): /usr/sbin/noflushd -n 15 /dev/sda /dev/sdb
             [ OK ]
 * Configuring Samba...                [ OK ]
mwexec(): /usr/sbin/nmbd -D -l /var/log/samba
mwexec(): /usr/sbin/smbd -D -l /var/log/samba
 * Configuring System Users...
   Root password: use default password
   Set usersmwexec(): /usr/bin/passwd -P dummy dummy
mwexec(): /usr/bin/smbpasswd -e 'dummy'
, linux and samba accounts    [ OK ]
mwexec(): cat /etc/nas_services | grep 5big2 | grep syncawayd
 * Starting syncawayd... mwexec(): /usr/bin/killall  syncawayd
mwexec(): /usr/sbin/syncawayd -n 3
             [ OK ]
 * Starting Fvdw-sl Discovery Daemon...mwexec(): /usr/bin/discoverd
    [ OK ]
start rpcbind service
starting php based setup routines step 2
mwexec(): chmod 755 /rw_fs/etc/dropbear
mwexec(): chmod 600 /rw_fs/etc/dropbear/dropbear_rsa_host_key
mwexec(): touch /rw_fs/tmp/var/log/lastlog
mwexec(): touch /rw_fs/tmp/var/run/utmp
mwexec(): sudo chmod 777 '/rw_fs/.ssh'
mwexec(): sudo chmod 700 '/rw_fs/.ssh'
 * Starting dropbear... mwexec(): dropbear -p 22 -r '/rw_fs/etc/dropbear/dropbear_rsa_host_key'
             [ OK ]
mwexec(): unlink /etc/profile
 * Kill temporary dropbear...mwexec(): kill -9 741
          [ OK ]
starting php based setup routines step 3
 * Starting daemon update Hosts File... mwexec(): /usr/sbin/hostd 7200
 [ OK ]
 * Starting mount of remote shares...
 * Finishing mount shares...           [ OK ]
mwexec(): /bin/chmod 777 /var/spool/mqueue
mwexec(): /bin/chown 0:0 /var/spool/mqueue
mwexec(): /bin/chmod 777 /var/spool/clientmqueue
mwexec(): /bin/chown 0:0 /var/spool/clientmqueue
mwexec(): ln -s /share/1000/twonkymedia/twonky /var/twonky
starting php based setup routines step banner


*** fvdw-sl NAS firmware
    This is fvdw-sl version: fvdw-sl 15.3
    built on: May 30 2014

    LAN IP address: 192.168.178.44 (DHCP)

    Port configuration:

    LAN   -> eth0
php based setup routines finished
web permission on resolv.conf
set device tuning for dms performance
else loop1 finished
rcS finished

[/quote]

I saw there is a new database with time stamp from this morning. Is it regularly renewed? :
[quote]<?xml version="1.0"?>
<nas_conf_db>
   <version>1</version>
   <system>
      <datetime_format>US</datetime_format>
      <hostname>fvdwsl-base</hostname>
      <domain>local</domain>
      <language>en</language>
      <dhcpenabled>true</dhcpenabled>
      <printenabled>false</printenabled>
      <database>true</database>
      <newfirmware>0</newfirmware>
      <preconfig>true</preconfig>
      <webgui>
         <adminpasswd>$1$Lbp38Zfq$aKfL.PeNsSW29E9YJv95y.</adminpasswd>
         <protocol>http</protocol>
      </webgui>
      <hdparams>
         <disk>
            <device>/dev/sda</device>
            <inactivityperiod>15</inactivityperiod>
            <lastselftest>0</lastselftest>
         </disk>
      </hdparams>
      <notify>
         <eventbmp>3</eventbmp>
         <email>
            <enable>false</enable>
            <address/>
            <smtpip/>
         </email>
         <icq>
            <enable>false</enable>
            <idnum/>
            <passwd/>
            <dest_idnum/>
         </icq>
         <sms>
            <enable>false</enable>
            <idnum/>
            <passwd/>
            <cellnum/>
         </sms>
      </notify>
      <timezone>/Europe/Berlin</timezone>
      <ntp>
         <enable>false</enable>
      </ntp>
      <ftp>
         <enable>false</enable>
      </ftp>
      <platform>5big2</platform>
      <drives>MultiDrive</drives>
      <storagemode>single</storagemode>
   </system>
   <ddns>
      <enable>false</enable>
      <service/>
      <username/>
      <password/>
      <hostname/>
      <server/>
      <period>5</period>
      <success>false</success>
   </ddns>
   <interfaces>
      <lan>
         <if>egiga0</if>
         <ipaddr/>
         <netmask>255.255.0.0</netmask>
         <subnet/>
         <gateway/>
         <mtu>1500</mtu>
         <media/>
         <mediaopt/>
         <hwaddr>00:D0:4B:91:93:42</hwaddr>
         <rand_ip>169.254.164.81</rand_ip>
      </lan>
   </interfaces>
   <samba>
      <netbiosname>fvdwsl-base</netbiosname>
      <workgroup>mshome</workgroup>
      <serverdesc>fvdw-sl NAS</serverdesc>
      <security>user</security>
      <localmaster>yes</localmaster>
      <reloadtype>reload</reloadtype>
      <windmediadisable>yes</windmediadisable>
   </samba>
   <shares>
      <share>
         <sharename>public</sharename>
         <sharetype>public</sharetype>
         <desc>Default_share</desc>
         <sharestatus>active</sharestatus>
         <sharelocation>internal_share</sharelocation>
         <stream>1</stream>
         <nfs>0</nfs>
         <ftp>0</ftp>
         <protected>0</protected>
         <volid>1000</volid>
         <sharemount>1000</sharemount>
      </share>
   </shares>
   <access>
      <users>
         <user>
            <username>dummy</username>
            <uid>502</uid>
            <description>dummy_user</description>
            <admin>0</admin>
            <webshare>0</webshare>
            <remoteaccess>1</remoteaccess>
            <hidden>0</hidden>
            <password>dummy</password>
            <userhome>/share/1000/public/</userhome>
         </user>
      </users>
   </access>
   <mediaserver>
      <activedms>none</activedms>
   </mediaserver>
   <disks>
      <disk>
         <size>928.385517597</size>
         <internal>true</internal>
         <name>Disk-A</name>
         <system>true</system>
         <blockdev>/dev/sda</blockdev>
         <diskid>S1VSJ9GZ401094</diskid>
         <model> SAMSUNG HD103SI</model>
         <usb>false</usb>
         <freesize>0</freesize>
         <init>true</init>
         <partitions>
            <partition>
               <lvname>/dev/sda8</lvname>
               <volid>1000</volid>
               <color>#6f387c</color>
               <index>0</index>
               <size>928.385517597</size>
            </partition>
         </partitions>
      </disk>
      <disk>
         <size>2047.99999952</size>
         <internal>true</internal>
         <name>Disk-B</name>
         <system>false</system>
         <blockdev>/dev/sdb</blockdev>
         <diskid>WD-WCC190001482</diskid>
         <model> WDC WD25EZRX-00AZ6B0</model>
         <usb>false</usb>
         <freesize>2047.99999952</freesize>
         <init>false</init>
         <partitions>
            <partition/>
         </partitions>
      </disk>
   </disks>
   <vols>
      <vol>
         <volid>1000</volid>
         <md>/dev/sda8</md>
         <fs>1000</fs>
         <lastindex>1</lastindex>
         <name>Vol-A</name>
         <devices/>
         <raidtype>single</raidtype>
         <color>#6f387c</color>
         <formatting>0</formatting>
         <size>928.385517597</size>
      </vol>
   </vols>
</nas_conf_db>
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby fvdw » Sat May 31, 2014 10:28 am

yes it is updated at every boot

it is clear that the update script doesn't seem to find sdb.

I Need to have a look to Jocko's script that updates the database.
Unfortunate he is not around this weekend otherwise he could speed this process. But I will do my best later this afternoon first need to do some other jobs.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby fvdw » Sat May 31, 2014 10:49 am

One small test

what does this command gives as output ?
Code: Select all
/usr/bin/lsscsi
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby matzi » Sat May 31, 2014 11:25 am

root@fvdwsl-base:/ # /usr/bin/lsscsi
[0:2:0:0] disk ATA WDC WD25EZRX-00A 80.0 /dev/sdb
[0:3:0:0] disk ATA SAMSUNG HD103SI 1AG0 /dev/sda

Remark: The first boot.log is not representative for the actual configuration because it is from actul sdb (taken with linux pc)
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby fvdw » Sat May 31, 2014 11:31 am

ok, that looks good

attached two files. The must replace the files with the same name in /etc/finc

(back up the original version to make restore easier)
These adapted files should give more output in boot.log to see why they don't detect sdb
So after install reboot the nas and post boot.log
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby matzi » Sat May 31, 2014 11:32 am

ide3ctl is not working:

root@fvdwsl-base:/ # ./idle3ctl -g /dev/sdb
sg16(VSC_GET_TIMER) failed: Input/output error
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby matzi » Sat May 31, 2014 11:36 am

Now this is latest bootlog:

start boot log
detect and set platform
5big2
UIMAGE-3136-NWSP2CL-19
5big2
update dev nodes
booting using sda2 root file system...
make dev node for buttons...
make dev node for tun device...
enable IP forwarding...
start buttons control daemon
device = 5big2
source = buttons-nwsp2
buttons-nwsp2 daemon started
Sat May 31 13:35:21 CEST 2014
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
configure loopback netwerk interface
setting reboot and standby
5big2
rebootd-nwsp2
5big2
standbyd-nwsp2
start fan
fan5big daemon started
starting php based setup routines step 1
mwexec(): killall syslogd
* Starting syslogd... mwexec(): /sbin/syslogd -b 5
[ OK ]

* sysfuc_load_nas_db multi disk system...

* sysfuc_load_nas_db multi disk system...
mwexec(): chown 99:99 /tmp/etc/nas_conf_vltl.xml
mwexec(): chmod 666 /tmp/etc/nas_conf_vltl.xml

* Found XML database configuration file... [ OK ]
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec(): chown 99:99 /rw_fs/etc/nas_conf_db.xml
mwexec(): chmod 666 /rw_fs/etc/nas_conf_db.xml
* Updating Disks database... *
full update for any internal disk...
*
check if /dev/sda is an internal disk..
*
this is an internal disk..
*
reading partition table..
*
filling in partition info..
*
check if /dev/sdb is an internal disk..
*
this is an internal disk..
*
reading partition table..
*
partition is not ext3 formatted..
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
[ OK ]
* Starting mount of volumes...
- Mounting volume Vol-A: [ OK ]
* Finishing mount of volumes... [ OK ]
* Starting udevd... mwexec(): /sbin/udevd --daemon
mwexec(): /sbin/udevadm trigger --action=add
mwexec(): /sbin/udevadm settle --timeout=5
[ OK ]
* Generating Hosts File... [ OK ]
* Configuring System Hostname... mwexec(): /usr/bin/hostname 'fvdwsl-base.local'
[ OK ]
* Configuring LAN interface... mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec(): /sbin/ifconfig -a 'eth0' 169.254.189.80 netmask 255.255.0.0
mwexec(): /sbin/ifconfig 'eth0' up
mwexec(): /sbin/udhcpc -b -i 'eth0' -s /etc/api/api_dhcpc.php dhcpdCbScript
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec(): /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
[ OK ]
* Initializing Timezone... mwexec(): ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
[ OK ]
* Starting web server... mwexec(): rm /etc/webdav.conf
mwexec(): chmod 644 /etc/webdav.conf
mwexec(): /usr/bin/httpd -f httpd.conf -d /etc
[ OK ]
* Configuring Disks... mwexec(): /usr/sbin/noflushd -n 15 /dev/sda /dev/sdb
[ OK ]
* Configuring Samba... [ OK ]
mwexec(): /usr/sbin/nmbd -D -l /var/log/samba
mwexec(): /usr/sbin/smbd -D -l /var/log/samba
* Configuring System Users...
Root password: use default password
Set usersmwexec(): /usr/bin/passwd -P dummy dummy
mwexec(): /usr/bin/smbpasswd -e 'dummy'
, linux and samba accounts [ OK ]
mwexec(): cat /etc/nas_services | grep 5big2 | grep syncawayd
* Starting syncawayd... mwexec(): /usr/bin/killall syncawayd
mwexec(): /usr/sbin/syncawayd -n 3
[ OK ]
* Starting Fvdw-sl Discovery Daemon...mwexec(): /usr/bin/discoverd
[ OK ]
start rpcbind service
starting php based setup routines step 2
mwexec(): chmod 755 /rw_fs/etc/dropbear
mwexec(): chmod 600 /rw_fs/etc/dropbear/dropbear_rsa_host_key
mwexec(): touch /rw_fs/tmp/var/log/lastlog
mwexec(): touch /rw_fs/tmp/var/run/utmp
mwexec(): sudo chmod 777 '/rw_fs/.ssh'
mwexec(): sudo chmod 700 '/rw_fs/.ssh'
* Starting dropbear... mwexec(): dropbear -p 22 -r '/rw_fs/etc/dropbear/dropbear_rsa_host_key'
[ OK ]
mwexec(): unlink /etc/profile
* Kill temporary dropbear...mwexec(): kill -9 741
[ OK ]
starting php based setup routines step 3
* Starting daemon update Hosts File... mwexec(): /usr/sbin/hostd 7200
[ OK ]
* Starting mount of remote shares...
* Finishing mount shares... [ OK ]
mwexec(): /bin/chmod 777 /var/spool/mqueue
mwexec(): /bin/chown 0:0 /var/spool/mqueue
mwexec(): /bin/chmod 777 /var/spool/clientmqueue
mwexec(): /bin/chown 0:0 /var/spool/clientmqueue
mwexec(): ln -s /share/1000/twonkymedia/twonky /var/twonky
starting php based setup routines step banner


*** fvdw-sl NAS firmware
This is fvdw-sl version: fvdw-sl 15.3
built on: May 30 2014

LAN IP address: 192.168.178.44 (DHCP)

Port configuration:

LAN -> eth0
php based setup routines finished
web permission on resolv.conf
set device tuning for dms performance
else loop1 finished
rcS finished
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 10 guests