Lacie 5Big2 Failed After Firmware Update

Re: Lacie 5Big2 Failed After Firmware Update

Postby unlucky1 » Wed Jul 10, 2013 10:05 pm

30 hours! Ouch!

Thanks again! I'll let you know when I've got it all! (Just pointed a floor fan at the unit!)

Good night!
unlucky1
Donator VIP
Donator VIP
 
Posts: 184
Joined: Sun Jul 07, 2013 3:18 pm

Re: Lacie 5Big2 Failed After Firmware Update

Postby fvdw » Wed Jul 10, 2013 10:09 pm

good night and sleep well ;)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 5Big2 Failed After Firmware Update

Postby unlucky1 » Wed Jul 10, 2013 10:35 pm

Hmm, just checked it and it failed.
Code: Select all
root@(none):/mountpoint/backup # cp -a /mp2/shares/* .
cp: write error: Read-only file system
cp: can't preserve ownership of './3/Photos/Event 111.avi': Read-only file system
cp: can't create './3/Photos/Event 114.avi': Read-only file system
cp: can't create './3/photo 3.psd': Read-only file system
cp: can't create './3/photo 3_800.psd': Read-only file system
cp: can't preserve permissions of './3': Read-only file system
cp: can't preserve times of './3': Read-only file system
cp: can't preserve ownership of './3': Read-only file system
cp: can't preserve permissions of './3': Read-only file system


What happened? Well, we can deal with it tomorrow I suppose....
unlucky1
Donator VIP
Donator VIP
 
Posts: 184
Joined: Sun Jul 07, 2013 3:18 pm

Re: Lacie 5Big2 Failed After Firmware Update

Postby fvdw » Wed Jul 10, 2013 11:05 pm

it copied a directory which has permission set to readonly, then it can not (re)set permission of files or time stamps, when using the -a option it willo preserve settings like date, owner and permissions, it will first copy the file and then try to adapt these settings to the original ones. if the directory is readonly it will fail

You could use cp without the -a option
Code: Select all
cd /mountpoint/backup
cp -dR /mp2/shares/* .


-d is that it won't follow sym links (it will copy the link (shortcut), if you don't add the -d it will copy the file where the shortcut is pointing to.
-R means it will also copy all subfolders and files in there
-a adds besides these two option also the -p option to preserve ownership, permissions and timestamps
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 5Big2 Failed After Firmware Update

Postby fvdw » Wed Jul 10, 2013 11:10 pm

mmm thinking this over i think something else happened, it should work with the -a option.
So forget the above

This can happen if an error has occurred during copying and writing to the usb disk , in that case the usb disk will be (re)mounted as read only as data corruption is then likely if writing continues.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 5Big2 Failed After Firmware Update

Postby fvdw » Wed Jul 10, 2013 11:16 pm

this remounting as readonly prevent data corruption on the usb disk. The error did occur for a reason.

solving it could be unmount and remount (the usb disk) but probably it will complain that the file system must be checked.

ps whatever you do keep the raid array mounted read only !! then nothing can go wrong

I have seen this before when copying large amounts of file with cp command and usb disks loosing synchronization on the serial port.
need to think what alternative we could use.
A good possibility could be the using the "tar" command or copy directory by directory
The tar command will create archive (tar type of folders) i don't know then if we run into problems if these files get very big for directories containing a lot of data.
Of course there is still the tftp server...

to be continued tomorrow
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 5Big2 Failed After Firmware Update

Postby Mijzelf » Thu Jul 11, 2013 5:47 am

How complete is the busybox? It *can* contain an ftp server. I think running an ftp server on the Lacie is the most convenient way to copy the data, as you can use a very user-friendly ftp client. If the box is connected to gigabit the throughput could max out at 60~70MB/sec (providing you can store it at that rate. An usb2 disk does only 25MB/sec)
Mijzelf
 
Posts: 255
Joined: Wed Nov 21, 2012 9:12 am

Re: Lacie 5Big2 Failed After Firmware Update

Postby fvdw » Thu Jul 11, 2013 6:57 am

it is a full version and it should have ftpd and ftp features enabled, also a http daemon is included. :mrgreen:
It seems also to have an ftp client. Then it could be as easy as using commands like for tftp (use ftp instead of tftp as commands)
This of course only works if you have a tftp server running on your windows PC

Is there a benifit of using ftp instead of tftp :scratch

this the relevant part from the config file
Code: Select all
CONFIG_FTPD=y
CONFIG_FEATURE_FTP_WRITE=y
CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y
CONFIG_FTPGET=y
CONFIG_FTPPUT=y
CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y
CONFIG_HOSTNAME=y
CONFIG_HTTPD=y
CONFIG_FEATURE_HTTPD_RANGES=y
CONFIG_FEATURE_HTTPD_USE_SENDFILE=y
CONFIG_FEATURE_HTTPD_SETUID=y
CONFIG_FEATURE_HTTPD_BASIC_AUTH=y
CONFIG_FEATURE_HTTPD_AUTH_MD5=y
CONFIG_FEATURE_HTTPD_CGI=y
CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y
CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y
CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y
CONFIG_FEATURE_HTTPD_ERROR_PAGES=y
CONFIG_FEATURE_HTTPD_PROXY=y
CONFIG_FEATURE_HTTPD_GZIP=y
CONFIG_IFCONFIG=y


It is compiled against uclib (to keep it small), we saw some issues with the dd command and big files.
But it is worth a try certainly if the speed is as Mijzelf mentioned

I a currently at work so no time to figure out how to setup/use ftpd and ftp with busybox. But I guess its available on the internet
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Lacie 5Big2 Failed After Firmware Update

Postby unlucky1 » Thu Jul 11, 2013 7:11 am

Hi, I'm trying to get 2 directories off to be ABSOLUTELY sure they're safe but with the read-error, cp won't work. Do I have to somehow reset or reinitialize the USB drive again to get it stop making those errors?

I have an FTP Client on windows so I could move the USB there, put NTFS on it and plug it in. Then I could FTP the stuff over. That would be fine too. But first, I want to get those 2 directories off. I would just copy them to my windows box now so it's there and then replicate it to another back-up so I have 2 copies immediately! Not taking any more chances!
unlucky1
Donator VIP
Donator VIP
 
Posts: 184
Joined: Sun Jul 07, 2013 3:18 pm

Re: Lacie 5Big2 Failed After Firmware Update

Postby fvdw » Thu Jul 11, 2013 7:54 am

unlucky1 wrote:Hi, I'm trying to get 2 directories off to be ABSOLUTELY sure they're safe but with the read-error, cp won't work. Do I have to somehow reset or reinitialize the USB drive again to get it stop making those errors?

I have an FTP Client on windows so I could move the USB there, put NTFS on it and plug it in. Then I could FTP the stuff over. That would be fine too. But first, I want to get those 2 directories off. I would just copy them to my windows box now so it's there and then replicate it to another back-up so I have 2 copies immediately! Not taking any more chances!


try to copy them with using the tftp server.

To get the usb writable again check what is reported by "dmesg" and the "mount" command

If it is mounted readonly then umount it and disconnect it after that mount again , if sit still remains readonly mounted because of a required filesystem check then we need to run e2fcsk to get it clean again and r/w mountable

For example like this
Code: Select all
e2fsck -n -f -v /dev/sef1

(n = nochange v = verbose f = force even if flagged as clean)
Run e2fsck only when the disk is NOTmounted
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 2 guests