Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb port (?) or usb-stick fault.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gabrielm79
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2005
Posts: 86
Location: Alexandroupoli , Greece

PostPosted: Sun Oct 19, 2014 10:12 am    Post subject: usb port (?) or usb-stick fault. Reply with quote

Hello. First i would like to apologize for my poor English.

I use many usb memory sticks. Most occasion for the tv , live cds , transfer data.

Lately i have a problem with some usb sticks i've used (no hard use) for live cd and then i formated. For example

This is the output of /var/log/messages when i put in port.

Code:
Oct 19 12:45:46 gabriel kernel: hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0008
Oct 19 12:45:46 gabriel kernel: ehci-pci 0000:00:1d.7: GetStatus port:3 status 001803 0  ACK POWER sig=j CSC CONNECT
Oct 19 12:45:46 gabriel kernel: hub 2-0:1.0: port 3, status 0501, change 0001, 480 Mb/s
Oct 19 12:45:46 gabriel kernel: hub 2-0:1.0: debounce: port 3: total 100ms stable 100ms status 0x501
Oct 19 12:45:46 gabriel kernel: ehci-pci 0000:00:1d.7: port 3 reset complete, port enabled
Oct 19 12:45:46 gabriel kernel: ehci-pci 0000:00:1d.7: GetStatus port:3 status 001005 0  ACK POWER sig=se0 PE CONNECT
Oct 19 12:45:46 gabriel kernel: usb 2-3: new high-speed USB device number 8 using ehci-pci
Oct 19 12:45:47 gabriel kernel: ehci-pci 0000:00:1d.7: port 3 reset complete, port enabled
Oct 19 12:45:47 gabriel kernel: ehci-pci 0000:00:1d.7: GetStatus port:3 status 001005 0  ACK POWER sig=se0 PE CONNECT
Oct 19 12:45:47 gabriel kernel: usb 2-3: default language 0x0409
Oct 19 12:45:47 gabriel kernel: usb 2-3: udev 8, busnum 2, minor = 135
Oct 19 12:45:47 gabriel kernel: usb 2-3: New USB device found, idVendor=0930, idProduct=6545
Oct 19 12:45:47 gabriel kernel: usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 19 12:45:47 gabriel kernel: usb 2-3: Product: DataTraveler 2.0
Oct 19 12:45:47 gabriel kernel: usb 2-3: Manufacturer: Kingston
Oct 19 12:45:47 gabriel kernel: usb 2-3: SerialNumber: C8600088616CEDA1BA190151
Oct 19 12:45:47 gabriel kernel: usb 2-3: usb_probe_device
Oct 19 12:45:47 gabriel kernel: usb 2-3: configuration #1 chosen from 1 choice
Oct 19 12:45:47 gabriel kernel: usb 2-3: adding 2-3:1.0 (config #1, interface 0)
Oct 19 12:45:47 gabriel kernel: usb-storage 2-3:1.0: usb_probe_interface
Oct 19 12:45:47 gabriel kernel: usb-storage 2-3:1.0: usb_probe_interface - got id
Oct 19 12:45:47 gabriel kernel: usb-storage 2-3:1.0: USB Mass Storage device detected
Oct 19 12:45:47 gabriel kernel: scsi29 : usb-storage 2-3:1.0
Oct 19 12:45:48 gabriel kernel: scsi 29:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 4
Oct 19 12:45:48 gabriel kernel: sd 29:0:0:0: Attached scsi generic sg8 type 0
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] 15240576 512-byte logical blocks: (7.80 GB/7.26 GiB)
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] Write Protect is off
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] Mode Sense: 23 00 00 00
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] No Caching mode page found
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] Assuming drive cache: write through
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] No Caching mode page found
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] Assuming drive cache: write through
Oct 19 12:45:49 gabriel kernel:  sdh: sdh1
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] No Caching mode page found
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] Assuming drive cache: write through
Oct 19 12:45:49 gabriel kernel: sd 29:0:0:0: [sdh] Attached SCSI removable disk


fdisk -l /dev/sdh

Code:
fdisk -l /dev/sdh

Disk /dev/sdh: 7.3 GiB, 7803174912 bytes, 15240576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x73c1fb61

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdh1        2048 15240575 15238528  7.3G  6 FAT16


Code:
# fsck.vfat /dev/sdh1
fsck.fat 3.0.26 (2014-03-07)
/
  Bad short file name ().
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? 1
/dev/sdh1: 0 files, 2/1901098 clusters
gabriel / # fsck.vfat /dev/sdh1
fsck.fat 3.0.26 (2014-03-07)
/
  Bad short file name ().
1) Drop file
2) Rename file
3) Auto-rename
4) Keep it
? 3
  Renamed to
/dev/sdh1: 1 files, 2/1901098 clusters
gabriel / # fsck.vfat /dev/sdh1
fsck.fat 3.0.26 (2014-03-07)
/dev/sdh1: 1 files, 2/1901098 clusters


Then mount and ls -al
Code:
gabriel / # mount /dev/sdh1 /mnt/external/
gabriel / # ls /mnt/external/ -la
total 12
drwxr-xr-x 2 root root 4096 Jan  1  1970 .
drwxr-xr-x 4 root root 4096 Mar 26  2013 ..
-rwxr-xr-x 1 root root   21 Dec 31  1979 .cm0013


after all this , i have 2 problems

a) cp command doesn't stop. I am trying to cp a file but it freeze.The file sometimes is less bytes sometimes (!) is more bytes...

b) even if the file is copied i can't unmount the dev. Only with -l option.

I am pretty sure the file is corrupted cause my tv doesn't play it

Thanks
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Mon Oct 20, 2014 10:32 am    Post subject: Reply with quote

It could be either thing. It could also be a kernel bug, it wouldn't be the first time I see a problem with the USB stack in linux. But, analogously: it wouldn't be the first time I see a bogus Kingston DataTraveler unit, so...

If you have some other pendrive you can use that to test if the port is working ok. The other way around, you could use a friend's computer to test if the offending pendrive works on it.

Also, you might want to check if the same pendrive works on the same computer when using a different distro (i.e. a knoppix livecd or whatever else).

Other than that, the only way to have a chance to see what happens on that concrete moment where it all freezes would be to get a core dump. That should at least give us an idea on where the kernel crashed.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Mon Oct 20, 2014 10:51 am    Post subject: Reply with quote

Bear in mind that usb connectors wear out, i had it on a bit older hardware.
some connectors fit in perfectly others not and this behaviour is hard to proof at all.

especially portable computers are prone to that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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