Bad Sectors?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Bad Sectors?

Postby poland » Sun Nov 04, 2012 9:03 pm

Device: Pogoplug V2
Drive: 32GB flash drive(Archlinuxx+Download area)

I have a Pogoplug V2 with archlinux installed which I use as a download rig. The thing is that recently I noticed that when I transfer the downloaded video over to my PC over wifi, the transfer speeds reduce all of a sudden. From 1.8 - 2.3Mbps it goes down to 13kbps for sometime, intermittently.

Teracopy registers an error which goes something like "Cannot read from source" which leads me to believe that the flash drive has developed bad sectors. But I have no clue.

Also, such videos that encounter transfer problems then do not play properly on my PC!!!
(mind you the download is flawless and so is the video)(If I start to play such videos directly from the flash drive rather than transfer first, it play flawlessly)

Please guide me what to do next as i am a novice in Linux. Thank you.
poland
 
Posts: 2
Joined: Sun Nov 04, 2012 8:51 pm

Re: Bad Sectors?

Postby sambul13 » Sun Nov 04, 2012 11:27 pm

Don't continuously save video downloads on a flash drive, use HD or SSD instead. Though your issue may be related to Wi-Fi local interference or hardware problems affecting transfer speeds and packets loss.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Bad Sectors?

Postby poland » Sun Nov 04, 2012 11:59 pm

I do plan to use a HDD but I am trying to ride out the artificially induced high prices. So, I will have to stick with the flash drive for sometime.

I am positive that my issue has nothing to do with any wifi interference. I had a similar suspicion at first so I maintained a clear LoS between the pogo and my PC and the error still occurred at the exact same moment on various files.

My PC and the pogo are perfectly fine so the culprit seems to be the flash drive. Besides, the error thrown by teracopy confirms that the error has something to do with the the flash drive.

PS.:
1) Please note that in some videos I have no errors at all (could point to particular sectors being bad).

2) Also, I remember in a instance I had to rehash and re-download a few winrar files because they reported CRC errors after transfer.
Last edited by poland on Mon Nov 05, 2012 3:51 am, edited 1 time in total.
poland
 
Posts: 2
Joined: Sun Nov 04, 2012 8:51 pm

Re: Bad Sectors?

Postby sambul13 » Mon Nov 05, 2012 1:35 am

$this->bbcode_second_pass_quote('poland', 'I')f I start to play such videos directly from the flash drive rather than transfer first, it play flawlessly.
It doesn't sound like a flash memory issue. Install htop and copy the problem download via Wi-Fi while watching proc load in htop in a 2nd terminal window. See if proc load jumps at some point, and by what process. I wouldn't be surprised, your flash is dying slow death now. Used 2.5" HDs and USB enclosures are extremely cheap on Ebay, and represent enormously better solution for your task.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Bad Sectors?

Postby moonman » Mon Nov 05, 2012 4:23 am

Flash drives have wear leveling controller on it so whenever a block goes bad it will be mapped as such and will never be used again. There's a limit of how many blocks can go bad but I don't think this is your issue. You might have hit a memory wall and just don't have enough free ram. If you are brave enough you may want to try to use a BFQ I/O scheduler which may or may not even out the load on your flash drive. If that doesn't work, you can try noop scheduler. For BFQ you need to have the latest kernel 3.6.4 and the latest u-boot. Then you can try different mount options that should reduce the amount of writes on your flash drive: noatime,data=writethrough,barrier=0,nobh. The most important ones are noatime and data=writethrough.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests