[SOLVED] Bad bloscks (BB) on flash drive. How to fix?

Here you can post about your various experiences with PC hardware. You can also post about hardware that is not compatible with the linux kernel or not recommended for use with Porteus.
Post Reply
nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

[SOLVED] Bad bloscks (BB) on flash drive. How to fix?

Post#1 by nixlower0 » 07 Oct 2012, 20:03

I found that my usb flash drive have something wrong when I tried to transfer to it a file about 1 GB, the I had an error something about "device error".
I checked my 4 GB A-Data drive with some soft like "flashnul.exe", "Flash Drive Tester v1.14" and "badblocks -wvs /dev/sdXY" (as suggested me yesterday comrade fanthom if I'm not wrong).
"flshnul" showed after filling my drive with zeros, one error and one error after "Reand and Write" test.
"Flash Drive Tester v1.14" - after 17 hours I stopped the test. At the begining it show all is OK, but after an hour it begun show badblocks.
In therminal emulator (I used CDLinux live CD), command "badblocks" (

Code: Select all

"badblocks -wvs /dev/sdc1"
), showed next -

Code: Select all

"Reading and comparing: done Pass completed, 740544 bad blocks found. (0/0/740544 errors)"
.
Is there a way to block or fix those bad blocks? Can someone help me?
Thank you in advance for all answers!
Last edited by nixlower0 on 10 Dec 2012, 16:08, edited 3 times in total.

slaxeee
White ninja
White ninja
Posts: 6
Joined: 02 Aug 2012, 04:53
Location: FRANCE

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#2 by slaxeee » 08 Oct 2012, 04:58

I've encountered such kind of problem few times ago.
Using a new 8 Go SD to store programs and documents, i suddenly lost all my datas with mbr or fat corruptions.
I tryed to format again several times but without success. Sometimes it ran, sometimes it felt.

I was focalized on SD Card but in fact the origin was the SD adapter, a USB/SD card reader. Just take a new one and everything goes on.
SD cards include its own controller to mark bad blocks. Too much of them often announce a dead card ....

May be you should have a look with it ?

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#3 by nixlower0 » 08 Oct 2012, 07:59

slaxeee wrote:..." SD cards include its own controller to mark bad blocks. Too much of them often announce a dead card ....

May be you should have a look with it ?"
Hi! You mean I need a new one or better if I use an SD (or micro SD) with card reader/adapte instead of a regular USB flash drive?
Also now I remeber how I begun to suspect my flash drive is broken. I installed from CD (then from Windows XP) a latest Porteus. Every thing was OK, until I begun to modify "posterus.cfg" - "change=/" line. After rebooting cfg file every time was broken, it show in SciTE(scetilla based text/codding editor) -

Code: Select all

"NUL NUL NUL NUL" ...
. But if I haven't installed nothing and run in "fresh" mode, all were OK. Then when I checked if my flash drive has bad blocks, I found many! What can I try for repair my USB flash drive? Any idea?

slaxeee
White ninja
White ninja
Posts: 6
Joined: 02 Aug 2012, 04:53
Location: FRANCE

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#4 by slaxeee » 08 Oct 2012, 11:27

I didn't notice you were talking about USB key, not Flash SD, sorry.

It seems you've got bad vriting errors more than bad cluster unreferenced.
Maybe a flush memory or memory overflow results.

You can check this too :

- Format your key and try to copy/write/update/delete files ( with a text writer for instance )
- Check Filesystem and partition code FAT32 (0b / 0c )
Using 0c (FAT 32 LBA) may sometimes get corrupt files
I don't know why but i expermented this with a WD 250 Go external disk.
LBA was for "old" bios which can't adress large disk if i remember.
- Edit files like porteus.cfg with a linux compliant editor when you are under Windows.
I use Geany.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5437
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#5 by brokenman » 08 Oct 2012, 18:52

If it is physical block damage there is nothing you can do. I would try using the HP USB format tool

http://www.softpedia.com/get/System/Har ... Tool.shtml

Some softwares report to move bad blocks to the end of a device.
How do i become super user?
Wear your underpants on the outside and put on a cape.

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#6 by nixlower0 » 19 Oct 2012, 19:02

Hello! Sorry for answer delay! I have tried some console and terminal utilities, format and "reppair" programs, even HP USB Format Tool. Nothing good, I can't use all 3,7 GB only about 400 MB :( Well I will buy a new flash drive. I will try a cheap (about $7) 8 GB flash drive, when I'll receive it I will report how good is :)

One question more - is it good to test an USB flash drive for bad blocks (bb) before use it or that no matters?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#7 by fanthom » 19 Oct 2012, 23:05

is it good to test an USB flash drive for bad blocks (bb) before use it or that no matters?
new flash sticks should be ok but if you really want to test it then i would go with read-only test rather than extensive "burn-in".
here is the command:

Code: Select all

badblocks -vs /dev/sdXY
Please add [Solved] to your thread title if the solution was found.

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#8 by nixlower0 » 20 Oct 2012, 19:09

OK, thank to all who answered me, I had learned some new terminal comands! My problem can't be solved until I buy new USB flash drive, but this thread can be marked as SOLVED.

User avatar
wread
Module Guard
Module Guard
Posts: 1062
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#9 by wread » 21 Oct 2012, 16:39

Try formatting again, if that won't help, try a new usb, that's all. There's nothing more to it.

Cheers!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#10 by nixlower0 » 06 Dec 2012, 17:12

Hello - forum mates! One USB flash drive (wich I ordered on China) finally is in my hands :) So, now I can begin my experiments on Porteus! ;) Thanks a lot to all people who tried to help me with that "damnation" called BB or bad blocks! This thread can be closed now.

User avatar
Hamza
Warlord
Warlord
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Bad bloscks (BB) on flash drive. How to fix?

Post#11 by Hamza » 06 Dec 2012, 17:31

Just add "[Solved]" into your topic title :)
NjVFQzY2Rg==

Post Reply