Save original firmware for later restoration

Re: Save original firmware for later restoration

Postby fvdw » Sun Jun 08, 2014 9:45 pm

well when wdc20 is in slot 1 it is identified as sda and when wdc25 is in slot 1 this disk is identified as sda (look to the number of blocks for the whole disk).
So why on earth it loads 15-1 when having two disks and wdc25 in slot 1.

lets have a look on what file is present in the folder /lacie-boot for both configurations after boot
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 » Sun Jun 08, 2014 9:57 pm

another interesting trial would be to boot 2 times after each other with wdc25 in slot 1, does 15-1 turns up again after second boot ?
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 » Sun Jun 08, 2014 10:00 pm

You've put me on the right track saying it boots from the wrong partition but from the right disc. Remember the disc came from nwsp2. In that case I loaded 5big2 V15-3. Of course that failed with an error message. Possibly this writes the firmware on the momentarily unused partition, while the used partition is not touched. Then somehow after installation in 5big2 with both discs it uses the unupdated when both discs are present and the updated partition in single disc mode. Ayway I just did the update to 15-3 again with both discs installed. Problem solved!

Thank you both very much.
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 » Sun Jun 08, 2014 10:06 pm

mmm... :scratch

If it is true what you say then it is still funny that when booting with single disk in slot 1 wdc25 came up with 15-3...then you would expect that it would use 15-1 as well...
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 » Sun Jun 08, 2014 10:13 pm

I thought the firmware is installed on more than one partition. That is why I thought that it can have different firmware versions on a disc. Now depending on the lacie boot file it can boot different fw versions. (lacieboot is sda1boot at the moment).
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 » Sun Jun 08, 2014 10:16 pm

It is also sda1boot when booting wdc25 only
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 » Sun Jun 08, 2014 10:20 pm

It is also sda1boot with both discs and wdc20 in slot1
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 » Sun Jun 08, 2014 10:28 pm

after each of two consecutive reboots, dual discs wdc25 in slot1, it is alway sda1boot. Shouldn't toggle?
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 » Sun Jun 08, 2014 10:51 pm

no it shouldn't toggle. It only changes when you install new firmware, if it is sda1boot after upgrade it will be sda2boot and the otherway around.
At next boot the system will boot form the partition specified

When there is nothing in /lacie-boot folder then it boots from sda7

ps /lacie-boot is mounted to a folder outside the chrooted environment when the system runs from sda1 or sda2.
In principle the nas always starts from sda7 but if it finds the file sda1boot or sda2boot in the the folder /lacie-boot it will boot from sda1 or sda2 in a chrooted environment.

It should make no difference if there are two or one disk in the system, thats why I still wonder how it could run from different partitions dependent on number of disks inserted.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby Jocko » Mon Jun 09, 2014 8:13 am

Hi both

Maybe an explanation found during my sleeping :mrgreen: :mrgreen:

To check it, matzi you must remember what you did a long time ago.

When you update the firmware via the webinterface, the firmware version on sdx7 is never upgraded and so you always keep the version of the first install.

With you nwsp2 I assume you use an old version : so before 15.0

For the 5big2, we made some changes in the rcS to update the device node (added a udevstart before chroot file system on sda1/2). We made these changes with version 15.0 if I remember well. So if on partition 7, you don't have this version and then maybe the device nodes are not rightly updated before chroot and so when the rcS script chroot the file system it uses a wrong partition but I am not sure about this idea


So to check that you must install version 15.2 (I'd rather that you don't use 15-3 : it 's an easy way to check your issue) on the partition 7 : you can do that only with the disk not used to boot the NAS (so the disk on your 2d slot)
Code: Select all
dd if=/pathto/firmware15.x.img of=/dev/sdb7

After doing this and swapping the disk on the slot1, the nas should boot on sda7 and you must see as firmware version 15.2 because the firmware is no longer chrooted (no file in /lacie-boot)

so create now the file sda1boot
Code: Select all
touch /lacie-boot/sda1boot
and restart the nas. The file system is now chrooted and you must see as firmware version 15.3 if my explanation is right. :scratch :crazy
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: nos96 and 10 guests