usb flash stopped working
Running Slackware 10.1 - 2.6.11.10 and recently plugged in an usb flash memory
Kingston Data Traveller II - 256 Mb and it worked OK for a month and a half. This is a dual boot computer and the other operating system is MSwin98. After an electricity cut down the memory stick stopped working on Linux but is still working on Win98. As far as I can see from the logs the Linux system detects this flash memory all right but there is no /dev/sda1 device created neither /dev/sda and it cannot be mounted any more - "mount: special device /dev/sda1 does not exist" The line in fstab is: /dev/sda1 /mnt/hd vfat users,noauto,iocharset=cp1251,codepage=1251,exec,suid,rw,umask=0 0 0 My question is what has happened and how can I fix it? Here is the log from ~#dmesg usbcore: registered new driver usbfs usbcore: registered new driver hub USB Universal Host Controller Interface driver v2.2 ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10 ACPI: PCI interrupt 0000:00:07.2[D] -> GSI 10 (level, low) -> IRQ 10 uhci_hcd 0000:00:07.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller uhci_hcd 0000:00:07.2: irq 10, io base 0xc400 uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usb 1-1: new full speed USB device using uhci_hcd and address 2 .................................................................................................... .................... Initializing USB Mass Storage driver... pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: shpc_init : shpc_cap_offset == 0 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 scsi1 : SCSI emulation for USB Mass Storage devices usbcore: registered new driver usb-storage USB Mass Storage support registered. usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning .................................................................................................... ........... Vendor: Kingston Model: DataTraveler II Rev: 1.13 Type: Direct-Access ANSI SCSI revision: 00 SCSI device sda: 442368 512-byte hdwr sectors (226 MB) sda: Write Protect is off sda: Mode Sense: 23 00 00 00 sda: assuming drive cache: write through SCSI device sda: 442368 512-byte hdwr sectors (226 MB) sda: Write Protect is off sda: Mode Sense: 23 00 00 00 sda: assuming drive cache: write through sda: sda1 Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0 Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0 usb-storage: device scan complete Any help is very much wellcome! |
|
What is the output from lsusb? (just type lsusb and hit enter)
|
Not an answer, but I had the same problem today:
My laptop's battery ran out and since then the boot always gets stuck when starting pcmcia with the same PCI Interrupt [xxxx] enabled... message. It doesn't seem to matter wheter my LAN card is in the slot or not. |
thank you nixcraft - a very good guide indeed ,but it seems that I have a different problem:
there is no /dev/sda or /dev/sda1 devices created although the usb stick is plugged in... so this maybe a hardware problem or some driver (kernel module ) is not functioning right, but I am not able to tell whats going on the output of the ~# lsusb is: Bus 001 Device 002: ID 0951:1600 Kingston Technology Bus 001 Device 001: ID 0000:0000 These directories exist: /proc/bus/usb /proc/scsi/usb-storage The command ~#less /proc/scsi/usb-storage/1 gives this: Host scsi1: usb-storage Vendor: Kingston Product: DataTraveler II Serial Number: 5B5110001FAA Protocol: Transparent SCSI Transport: Bulk Quirks: But there are no lines : GUID:...................................... Attached: Yes/No Seemingly everything is OK but when I attempt to mount it with : ~#mount /mnt/hd the system replies : mount: special device /dev/sda1 does not exist Why the system wuold not create a /dev/sda device when I stick the flash memory in? |
Have you just messed around with some other sda values? Sometimes my memory stick uses sdb1 or sdb2 but msot of the time uses sda1. Just try
Code:
mount -t vfat /dev/whatever /mnt/hd |
Finally fixed it!!!
For some reason the devices /dev/sda and /dev/sda1 were really missing and I recreated them like this: ~#mknod -m 666 /dev/sda b 8 0 ~#mknod -m 666 /dev/sda1 b 8 0 then I tried to mount the flash drive like this: ~#mount -t vfat /dev/sda1 /mnt/hd but it gave me the following error : bad option, bad superblock, etc ...etc so I thought I might as well put a new system on the flash drive like this: ~# mkfs /dev/sda1 and this did the trick! It created a new ext2 filesystem and the according disk structure but then I needed this flash drive to be used by windows as well as by linux so I had to do again: ~# mkdosfs -F 32 /dev/sda1 and that was it . Now I can mount it again the normal way: ~# mount /dev/sda1 /mnt/hd Thank you everyone!!! |
same problem, but I still can't fix it.
fstab entry: /dev/sda1 /mnt/usb auto rw,user,uid=1002,gid=0,umask=037 0 0 root@survivor:/home/survivor# lsusb Bus 002 Device 001: ID 0000:0000 Bus 001 Device 002: ID 058f:9380 Alcor Micro Corp. USB Flash drive Bus 001 Device 001: ID 0000:0000 root@survivor:/home/survivor# ls -l /proc/bus/usb total 0 dr-xr-xr-x 2 root root 0 2005-07-11 18:29 001 dr-xr-xr-x 2 root root 0 2005-07-11 18:29 002 -r--r--r-- 1 root root 0 2005-07-11 23:30 devices Ok here is everything I've done in Konsole: Quote:
How could I fix this? Regards, Daniel Edit: from the link above (http://www.tldp.org/HOWTO/Flash-Memo...fications.html) at step 7.3 there is one issue: root@survivor:/home/survivor# less /proc/scsi/usb-storage-0/1 /proc/scsi/usb-storage-0/1: No such file or directory |
Got it to work, google helped me.
Added in fstab this row: /dev/uba1 /mnt/usb auto noatime,rw,users,exec,uid=1000,gid=100 0 0 and now I can mount it with: mount /dev/uba1 Regards, Daniel |
Hello,
I have such a problem too. I've carefully read this thread and the linked "basic verifications", but I still cannot use the micro-sd. After all the attempts, the best I could do is mounting read-only. Then I took another micro-sd, from a mobile, and tested it. I couldn't mount it either. What do you think? Is there a chance that the card adapter and/or the card reader is out of order? Thank you Code:
debian:~# mount /mnt/usbkey/ |
All times are GMT -5. The time now is 07:30 PM. |