Page 1 of 3

Firmware backup error

PostPosted: Sun Sep 27, 2015 4:20 pm
by type-a1pha
Hi,
thank you for the work you're doing.

I'm trying to backup the previous firmware, just in case I might need it later on.

NAS: Lacie Network Space 2 Classic Edition

However, I'm getting an error as the backup process ends after successfully backing up both:
lacie-partition6.img
lacie-partition7.img
with the error:
"The backup of partition 9 has failed.
The script will exit to prevent data loss on your disk."

No lacie-partition8.img gets created in the process. While trying to create the file lacie-partition8.img, the process shows the progress window stuck at 0% and then the error window appears.

The NAS is empty, formatted and resetted. I also tried again after installing the last update, just in case but I got same result.

I'm not committed on doing the backup but if possible I would prefer to.
Any idea on what's wrong?
May it be a space problem? The disk where I'm trying to save the backup has 200GB free.


fdisk -l /dev/sda returns:

Code: Select all
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1         250     2008093+  5 Extended
/dev/sda2             251      243201  1951503907+ 83 Linux
/dev/sda5               1          32      256977  82 Linux swap
/dev/sda6              33          33        8001  83 Linux
/dev/sda7              34          34        8001  83 Linux
/dev/sda8              35         140      851413+ 83 Linux
/dev/sda9             141         249      875511  83 Linux
/dev/sda10            250         250        8001  83 Linux


gdisk -l /dev/sda returns:

Code: Select all
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************

Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 00000000-0000-0000-0000-000000000000
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 8-sector boundaries
Total free space is 5477 sectors (2.7 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   2         4016250      3907024064   1.8 TiB     8300  Linux filesystem
   5             126          514079   251.0 MiB   8200  Linux swap
   6          514143          530144   7.8 MiB     8300  Linux filesystem
   7          530208          546209   7.8 MiB     8300  Linux filesystem
   8          546273         2249099   831.5 MiB   8300  Linux filesystem
   9         2249163         4000184   855.0 MiB   8300  Linux filesystem
  10         4000248         4016249   7.8 MiB     8300  Linux filesystem


The log viewer shows the following:
Code: Select all
Connection received from 192.168.0.252 on port 2629 [27/09 18:01:50.432]
Read request for file <UIMAGE-3142-NWSP2CL-KIRKWOOD-24-standalone>. Mode octet [27/09 18:01:50.432]
OACK: <timeout=5,> [27/09 18:01:50.451]
Using local port 49200 [27/09 18:01:50.451]
<UIMAGE-3142-NWSP2CL-KIRKWOOD-24-standalone>: sent 11284 blks, 5777224 bytes in 3 s. 0 blk resent [27/09 18:01:53.265]
Connection received from 192.168.0.252 on port 52913 [27/09 18:03:28.620]
Read request for file <lacie-firmware-backup.sh>. Mode octet [27/09 18:03:28.620]
OACK: <tsize=6376,> [27/09 18:03:28.624]
Using local port 56545 [27/09 18:03:28.624]
<lacie-firmware-backup.sh>: sent 13 blks, 6376 bytes in 0 s. 0 blk resent [27/09 18:03:28.631]
Connection received from 192.168.0.252 on port 57957 [27/09 18:04:03.957]
Read request for file <dialog>. Mode octet [27/09 18:04:03.957]
OACK: <tsize=349732,> [27/09 18:04:03.987]
Using local port 58825 [27/09 18:04:03.987]
<dialog>: sent 684 blks, 349732 bytes in 1 s. 0 blk resent [27/09 18:04:04.257]
Connection received from 192.168.0.252 on port 53879 [27/09 18:04:04.277]
Read request for file <xterm>. Mode octet [27/09 18:04:04.277]
OACK: <tsize=3258,> [27/09 18:04:04.277]
Using local port 58826 [27/09 18:04:04.277]
<xterm>: sent 7 blks, 3258 bytes in 0 s. 0 blk resent [27/09 18:04:04.287]
Connection received from 192.168.0.252 on port 34036 [27/09 18:04:38.559]
Write request for file <lacie-partion6.img>. Mode octet [27/09 18:04:38.559]
OACK: <tsize=8193024,> [27/09 18:04:38.559]
Using local port 62442 [27/09 18:04:38.559]
<lacie-partion6.img>: rcvd 16003 blks, 8193024 bytes in 7 s. 0 blk resent [27/09 18:04:45.189]
Connection received from 192.168.0.252 on port 53308 [27/09 18:04:50.091]
Write request for file <lacie-partion7.img>. Mode octet [27/09 18:04:50.101]
OACK: <tsize=8193024,> [27/09 18:04:50.101]
Using local port 57059 [27/09 18:04:50.101]
<lacie-partion7.img>: rcvd 16003 blks, 8193024 bytes in 5 s. 0 blk resent [27/09 18:04:55.872]

Re: Firmware backup error

PostPosted: Sun Sep 27, 2015 9:12 pm
by lamosca01isa
Hi!
Me too give me error and can not perform the backup :(

Re: Firmware backup error

PostPosted: Sun Sep 27, 2015 11:30 pm
by type-a1pha
The command failing should be this one in lacie-firmware-backup.sh:
Code: Select all
if dd if="$diskid"8 of=/sda9/lacie-partition8.img > /dev/null 2> /dev/null

Is there any way to retrieve the error response instead of discarding it?

Re: Firmware backup error

PostPosted: Mon Sep 28, 2015 7:42 am
by fvdw
I will look to this this evening after retunring from work

Re: Firmware backup error

PostPosted: Mon Sep 28, 2015 9:54 am
by lamosca01isa
fvdw wrote:I will look to this this evening after retunring from work



great! Thank you

Re: Firmware backup error

PostPosted: Mon Sep 28, 2015 7:04 pm
by fvdw
what happens if you perform the backup script and after it aborts you give this command

Code: Select all
dd if=/dev/sda8 of=/sda9/lacie-partition8.img

Re: Firmware backup error

PostPosted: Mon Sep 28, 2015 7:22 pm
by type-a1pha
The result of sending that command after the error is:
Code: Select all
dd: writing '/sda9/lacie-partition8.img': No space left on device
1687249+0 records in
1687248+0 records out
863870976 bytes (823.9MB) copied, 92.956960 seconds, 8.9MB/s

Re: Firmware backup error

PostPosted: Mon Sep 28, 2015 7:24 pm
by fvdw
ok , funny sda9 should be large enough

what does this command give as output
Code: Select all
ls -al /sda9

Re: Firmware backup error

PostPosted: Mon Sep 28, 2015 7:49 pm
by type-a1pha
Sending the command after the error gives:
Code: Select all
total 844472
drwxr-xr-x    3 root     root          4096 Sep 28 19:58 .
drwxrwxrwt   13 root     root           360 Sep 28 19:57 ..
-rw-r--r--    1 root     root     863870976 Sep 28 20:00 lacie-partition8.img
drwx------    2 root     root         16384 Sep 28 19:57 lost+found

Re: Firmware backup error

PostPosted: Mon Sep 28, 2015 7:52 pm
by fvdw
and finally this command

Code: Select all
df -h