Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Jul 2014, 09:16
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
TestDisk: Flash Drive="CHS and LBA don't match" [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 10 of 11 [156 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10, 11 Next
Author Message
linuxcbon

Joined: 09 Aug 2007
Posts: 749

PostPosted: Thu 21 Mar 2013, 08:28    Post subject:  

OK then the drive needed to be reseted, I guessed that.
Is there a linux tool for that ?
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 21 Mar 2013, 09:25    Post subject:  

Hi Sylvander,

I just saw your question 5. (You must have added it while I was posting.)

No, I don't think you need to do anything else. My best guess is that there were some bad sectors on the drive, which is why it quit working in the first place. When the utility reformatted the drive, it would have discovered the bad sectors and removed them from the allocation table, so that they would not be used. Since fewer sectors are available, you now have a smaller drive.

Could other sectors go bad in the future? Sure. So that's a good reason to avoid entrusting this drive with files that are irreplaceable.

----------------------------------------------------------------

linuxcbon,

Although there might be a Linux utility that could do this, I am not aware of any. And I did a lot of searching.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Thu 21 Mar 2013, 09:53    Post subject:  

Any idea what is different about this "Recovery Tool" that makes it able to do what all those other things failed to do? Confused
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1029
Location: Smithers, BC, Canada

PostPosted: Thu 21 Mar 2013, 11:07    Post subject:  

Wow! Excellent thread guys. Sylvander I admire your tenacity, I've thrown drives away without giving them half the effort you've shown here.

I just want to show you all something I found by following a chain of links from npierce's Russian website http://www.flashboot.ru/iflash.html (excellent find that). I had a tough time getting that site to open, finally used a proxy and got through.

Anyway here's a tool to download http://www.mydigit.cn/mytool/ChipGenius.rar which looks at your flashdrive and gives back the tech data. I got it to open in wine but it didn't find the flashdrive so I ended up running it in Win7. As soon as a flashdrive is plugged in it gives you the specs, pretty neat!
ChipGenius2-DaneElec8G_new.jpg
 Description   
 Filesize   53.42 KB
 Viewed   386 Time(s)

ChipGenius2-DaneElec8G_new.jpg

Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3953
Location: Kiel,Germany

PostPosted: Thu 21 Mar 2013, 11:26    Post subject:  

Quote:
Any idea what is different about this "Recovery Tool" that makes it able to do what all those other things failed to do? Confused


In order to access a controller chip anywhere it needs a separate /dev/* device node(s) . /dev/sdx is not enough, probably perhaps on so called raw flash devices that have no controller chip except the usb controller from the main board of the pc .

There are i2c and eeprom drivers shipped with the kernel (probably not with default Puppy kernels) that show off like
Code:
modprobe -l | grep -E 'i2c|rom'

It needs the special driver for that controller chip on the flash drive in order to create the needed nodes in /dev to access the controller chip or probably an appropriate udev rule. These Win drivers create the device nodes statically in the registry, so the programmer has knowledge about the controller firmware and how to access them. It depends on the company or the programmer or a hacker to convert/crosscompile that Win driver for linux syntax as hardware driver or gnu-libc syntax as userland driver like libusb .
Back to top
View user's profile Send private message Visit poster's website 
linuxcbon

Joined: 09 Aug 2007
Posts: 749

PostPosted: Thu 21 Mar 2013, 11:34    Post subject:  

Karl Godt, no,no, linux doesnt work like windows, it just needs a few lines in some module. I wonder is that doesn't exist already...
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Thu 21 Mar 2013, 16:09    Post subject:  

jrb:
1. In Slacko I downloaded the rar file and unpacked it...
Rebooted to FalconFour's_UBCD->MiniXP and got:
a. The ChipGenius exe file. [ran this and it worked]

b. The FlashGenius.exe file. [what does this do?]
c. The MyDiskTest.exe file. [what does this do?]
I'd run them here in MiniXP if I knew all would be well.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1029
Location: Smithers, BC, Canada

PostPosted: Thu 21 Mar 2013, 18:46    Post subject:  

Sylvander wrote:
jrb:
1. In Slacko I downloaded the rar file and unpacked it...
Rebooted to FalconFour's_UBCD->MiniXP and got:
a. The ChipGenius exe file. [ran this and it worked]

b. The FlashGenius.exe file. [what does this do?]
c. The MyDiskTest.exe file. [what does this do?]
I'd run them here in MiniXP if I knew all would be well.

Through the miracle of Google Translate with which I found this tool in the first place Very Happy :
FlashGenius http://www.mydigit.cn/flashgenius.htm
Quote:
FlashGenius a FLASH memory parameter query tools, you can quickly find out the FLASH chip manufacturer, product category, operating voltage, storage capacity, chip version, feature type.
Green compact, easy-to-use operating software, electronics enthusiasts and digital service personnel around good assistant.

MyDiskTest http://www.mydigit.cn/mydisktest.htm:
Quote:
U disk expansion detection tool first truly

Set several major functions in one: expansion detection, bad blocks scanning speed test, bad block shield
MyDiskTest expansion Recognition Tool is a U disk / SD card / CF card, mobile storage products. Can easily detect whether through the expansion capacity storage products, shoddy.
FLASH memory can also detect whether there is a bad block, whether black piece, does not destroy the original data of the disk.
U disk read and write speeds, and can test aging test storage products. Is the you pick U disk and memory card essential tool.

Sadly I couldn't seem to get anything out of these two. As a matter of fact MyDiskTest just crashed as soon as I hit what I hoped was the test button. Crying or Very sad

I think we may need someone who reads Chinese to figure out whats going on with these. Hurts to be technologically disadvantaged. Laughing

Just so you know I have my Win7 partition imaged 2 different ways and all my data on a separate partition.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Thu 21 Mar 2013, 21:05    Post subject:  

Just ran:
A. FlashGenius.exe
The program ran OK.
Displayed a window with lots of boxes to input various values for the Flash Drive, so as to be given further information about the drive.

B. MyDiskTest.exe
The program ran OK.
Most of the text is in Chinese.
Other stuff is just strange characters.
The Verbatim Store-n-Go is detected/identified in the drive box.
There are 4 buttons; the last one is Stop.
1st has a magnifying glass [study the storage regions in detail?]
2nd seems to be moving/copying files. [there are none on the drive]
3rd eliminating faulty regions?
I'll try them [named as B1, B2, B3].

B1. Drive scan completed; I could see the LED blinking during scan.
Results are cryptic.
Time taken to complete various steps.
Lots of ???????'s after the times.
Drive identified: Verbatim etc.
Info in order = 692.63MB, 696.00MB, 694.00MB, 99.86%, 1024MB.

B2. Failed: big red X.

B3. Failed: big red X.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1029
Location: Smithers, BC, Canada

PostPosted: Thu 21 Mar 2013, 21:42    Post subject:  

Sylvander wrote:
Info in order = 692.63MB, 696.00MB, 694.00MB, 99.86%, 1024MB.

B2. Failed: big red X.

B3. Failed: big red X.

It would certainly be interesting to know what those failures mean, couldn't complete test or drive unacceptable.

Did you check your drive properties with another program (partview?) to see if reported size had changed after running it through this?
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Fri 22 Mar 2013, 04:52    Post subject:  

jrb wrote:
Did you check your drive properties with another program (partview?) to see if reported size had changed after running it through this?

Partview and GParted show all's well with all drives/partitions. Very Happy
Back to top
View user's profile Send private message 
linuxcbon

Joined: 09 Aug 2007
Posts: 749

PostPosted: Fri 22 Mar 2013, 04:55    Post subject:  

Sylvander wrote:
Partview and GParted show all's well with all drives/partitions. Very Happy

Can you please unplug and then plug in the disk ? Then paste here the last lines of dmesg ?
Another thing, can you paste here the result of "hdparm -i /dev/sdb1" ?

It's weird no linux tool to reset a flash disk , except a russian software for windows ? I will have to ask kernel developers...
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Fri 22 Mar 2013, 05:02    Post subject:  

1. Final lines of the results of dmesg:
Code:
[ 1021.468241] usb 1-1.1: Product: Store 'n' Go
[ 1021.468243] usb 1-1.1: Manufacturer: Verbatim
[ 1021.468244] usb 1-1.1: SerialNumber: de656f60c080aa
[ 1021.468834] scsi5 : usb-storage 1-1.1:1.0
[ 1022.471018] scsi 5:0:0:0: Direct-Access     Verbatim Store 'n' Go     1.00 PQ: 0 ANSI: 2
[ 1022.472256] sd 5:0:0:0: [sdb] 1425407 512-byte logical blocks: (729 MB/695 MiB)
[ 1022.472739] sd 5:0:0:0: [sdb] Write Protect is off
[ 1022.472743] sd 5:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1022.473247] sd 5:0:0:0: [sdb] Asking for cache data failed
[ 1022.473249] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 1022.475966] sd 5:0:0:0: [sdb] Asking for cache data failed
[ 1022.475969] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 1022.477727]  sdb: sdb1
[ 1022.480105] sd 5:0:0:0: [sdb] Asking for cache data failed
[ 1022.480109] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 1022.480112] sd 5:0:0:0: [sdb] Attached SCSI removable disk
#


2.
Code:
# hdparm -i /dev/sdb1

/dev/sdb1:
hdparm: ioctl 0x304 failed: Invalid argument
hdparm: HDIO_GET_IDENTITY: Invalid argument
#
Back to top
View user's profile Send private message 
linuxcbon

Joined: 09 Aug 2007
Posts: 749

PostPosted: Fri 22 Mar 2013, 05:05    Post subject:  

Try "hdparm -i /dev/sdb" instead ?
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Fri 22 Mar 2013, 07:32    Post subject:  

Code:
# hdparm -i /dev/sdb

/dev/sdb:
hdparm: ioctl 0x304 failed: Invalid argument
hdparm: HDIO_GET_IDENTITY: Invalid argument
#
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 10 of 11 [156 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10, 11 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0952s ][ Queries: 13 (0.0105s) ][ GZIP on ]