If you upgraded in one step from 4-2 to 10-1 then your script is still on the spd8020. :ugeek:
This is because the upgrade process (for the sp8020) is that the new firmware is written to another partition and the boot flag is changed to that partition and at next boot it boots from the partition were you have written the new firmware leaving the old one untouched.
(On the Lacies' another method is used)
In more detail. The disc has a partition sda1 and sda2 one of them is used for booting and has a boot flag set.
Assume the nas has booted form sda1. Now during a firmware upgrade the new firmware is written to sda2. And the boot flag is set from sda1 to sda2. At next boot it now boots from sda2. So the previous version is still there on sda1.
To view the content of sda1 just access the nas via SSH using putty. Make a a mount point for sda1 , and mount sda1 on that.
- Code: Select all
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
If you now change to directory /mnt/sda1 you will be able to see the content of sda1 partition and copy whatever you want.
Of course if the nas was running on sda2 before upgrade then the new firmware is written to sda1 and boot flag is set to that. In that case you need to mount /dev/sda2
To find out which partition is used for booting just run fdisk and use the p command, you will get output like this
- Code: Select all
root@SPD8020:/ # fdisk /dev/sda
The number of cylinders for this disk is set to 121601.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 32 257008+ 83 Linux
/dev/sda2 * 33 64 257040 83 Linux
/dev/sda3 65 96 257040 82 Linux swap
/dev/sda4 97 121601 975988912+ 5 Extended
/dev/sda5 97 144 385528+ 83 Linux
/dev/sda6 145 121601 975603321 83 Linux
Command (m for help):
Notice the * at sda2, this means my sps8020 has booted from sda2.
Of course if you have done several upgrades to come from the fvdw version were you script was still there to the one you are running now then it will be lost. But if you didn't do that then you can still save your script and share it with us :mrgreen: :D