usb stick damaged

Moderator: Mattk

Post Reply
ipe
Junior Boarder
Junior Boarder
Posts: 38
Joined: Sun Jul 31, 2011 10:00 am

usb stick damaged

Post by ipe »

Suddenly, my pendrive broke.

I would like to know if the configuration data still remains in the filesystem of nslu2 (I can access through 192.168.1.77).

Thank you so much
ipe
Junior Boarder
Junior Boarder
Posts: 38
Joined: Sun Jul 31, 2011 10:00 am

Re: usb stick damaged

Post by ipe »

Another question. ¿Could I recover the damaged partitions by using any tool and testdisk?

As all 4gb pendrives have the same partition table, it may be posible to clone...

I
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: usb stick damaged

Post by admin »

As damage is mostly quite widespread I don't think it will work, but you migh give it a try if you know of any tools that might be helpful.

Recommended way is to try to get the /data/weather tree saved and transferred to a stick (completely new setup) as this is where your weather data has been logged to.
ipe
Junior Boarder
Junior Boarder
Posts: 38
Joined: Sun Jul 31, 2011 10:00 am

Re: usb stick damaged

Post by ipe »

Thank you so much. It's a hardware error. Seems to be unrecoverable. Fortunately, I have a backup of almost every raw file.
Joe200
Junior Boarder
Junior Boarder
Posts: 22
Joined: Mon Jun 22, 2009 11:39 pm

Re: usb stick damaged

Post by Joe200 »

admin wrote:As damage is mostly quite widespread I don't think it will work, but you migh give it a try if you know of any tools that might be helpful.

Recommended way is to try to get the /data/weather tree saved and transferred to a stick (completely new setup) as this is where your weather data has been logged to.
The same happened with me yesterday (the usb stick is damaged). How can I make a backup of the files in the usb stick, accessing the data tree through my computer (connecting the stick into a usb port)? Is there any program to do that?

And, is there any way, after I making the data backups, put them in a new usb stick and continue using the data? I'm asking this 'cause, for example, I lost the data from the past month, and now I would like to do a backup of it and make the graphics using the sensors data. I think you understood.

Joe
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: usb stick damaged

Post by admin »

Joe200
Junior Boarder
Junior Boarder
Posts: 22
Joined: Mon Jun 22, 2009 11:39 pm

Re: usb stick damaged

Post by Joe200 »

Thanks for the attention. But I can't do that, I can't access the usb stick. If I enter the IP to access meteohub (the normal IP 192.128.1.77) it says "unnable to connect the server".

The usb stick has a led that blinks when data is being accessed or data is being written. What happened is that, when the stick failed, NSLU2 made two bips , and now the led is always constantly blinking without any interruption. And it was from there till now that I can't access it.
Joe200
Junior Boarder
Junior Boarder
Posts: 22
Joined: Mon Jun 22, 2009 11:39 pm

Re: usb stick damaged

Post by Joe200 »

I searched on NSLU2 forum for any problems simmilar to this and I found a member that had something like this too with his usb stick.

viewtopic.php?f=2&t=5308

A user answered this:

d_l wrote:It may be possible to recover your raw data if it isn't damaged. I had a thumb drive fail and I recovered three months of data.

The thumb drive is in Linux Ext3 format so you must use a Linux reader program. I used Linux Reader 1.1 from: http://www.diskinternals.com/download.shtml (it's even free!) as the several other Linux readers programs I first tried wouldn't access the necessary partition on the thumb drive to get to the raw data.

The raw data is as a file named raw in the monthly dated folders under the /weather/ folder (I forget which partion it was in). The monthly folders have a naming format of 200901, 200902, etc. You will want to transfer each folder and its raw file content to your new NSLU2 thumb drive through the Samba access.

After you have transferred all the recovered folder, I would advise going to the Inspect Data page on the Meteohub and selecting a date and time in each month (I guess it really doesn't matter when) and then doing a Cleanup Data on it which fixes the data for the month you were viewing. I think this fixes any bad formatting that might have occurred as a result of the thumb drive failure. This step probably can't fix badly corrupted data, but might repair any minor problems that might have occurred.

If you have any graphs, you may also be able to recover the *.mg definitions from the /graphs/ folder.

Then I guess you should do a dreaded data recompute. If you have excessively high system loads during the recompute (say 5-12 or higher range), you probably have corrupted data that the Cleanup Data didn't fix. :( It might require looking in the logs for the dates and times of the bad data (in your local time) and then deleting that bad data (listed in GMT time) in the Inspect Data page. I didn't have to do this.

If this goes well, I would then advise making a back up copy of each RAW weather folder on your computer and periodically making copies of the new monthly folder RAW data in case you should have another thumb drive failure.

Good Luck. Let us know how this turns out. I was able to recover raw data and graph definitions. I also had made a "restore settings" back up file that I used in the restoration too.

I would like to know, if possible, if I can do the same thing. I have windows 7 but I think I can make the same steps, except the access through Samba. I don't understand some things about Linux and I don't have it, but perhaps is there any way to transfer the saved data to a new usb stick?

Can I turn off NSLU2 and connect the pen drive to computer and save the data using Linux Reader program without any problems? And what can I do after that so I can copy the saved data to a new meteohub usb stick? I'm asking this 'cause I don't have any possibility to use Linux and I don't know how to work with the Samba access.

I think the first step I can do it despite I have a windows system, but the rest I don't know what to do. :(
Post Reply