LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 06-21-2005, 01:47 PM   #1
toodr
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware14.0_RC4
Posts: 20

Rep: Reputation: 0
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!
 
Old 06-21-2005, 02:20 PM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
See http://www.tldp.org/HOWTO/Flash-Memo...fications.html
 
Old 06-21-2005, 03:59 PM   #3
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Rep: Reputation: 30
What is the output from lsusb? (just type lsusb and hit enter)
 
Old 06-21-2005, 05:00 PM   #4
TarrasQ
LQ Newbie
 
Registered: Mar 2004
Location: Oulu, Finland
Distribution: F15
Posts: 23

Rep: Reputation: 0
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.
 
Old 06-22-2005, 11:03 AM   #5
toodr
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware14.0_RC4
Posts: 20

Original Poster
Rep: Reputation: 0
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?
 
Old 06-22-2005, 11:47 AM   #6
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Rep: Reputation: 30
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
What other device codes have you put in there?
 
Old 06-25-2005, 10:42 AM   #7
toodr
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware14.0_RC4
Posts: 20

Original Poster
Rep: Reputation: 0
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!!!
 
Old 07-11-2005, 06:12 PM   #8
LordSurvivoR
Member
 
Registered: Jul 2005
Location: Serbia
Distribution: Gentoo
Posts: 46

Rep: Reputation: 15
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:
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
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# # mount -t usbfs none /proc/bus/usb
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# none on /proc/bus/usb type usbfs (rw)
bash: syntax error near unexpected token `('
root@survivor:/home/survivor# none on /proc/bus/usb type usbfs
bash: none: command not found
root@survivor:/home/survivor# none on /proc/bus/usb
bash: none: command not found
root@survivor:/home/survivor# mount none on /proc/bus/usb type usbfs (rw)
bash: syntax error near unexpected token `('
root@survivor:/home/survivor# mount none on /proc/bus/usb type usbfs
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
root@survivor:/home/survivor# mount device usb
mount: mount point usb does not exist
root@survivor:/home/survivor# mkdir /mnt/usb
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# mount /dev/sdb1
mount: special device /dev/sdb1 does not exist
root@survivor:/home/survivor# mount /dev/sd
mount: can't find /dev/sd in /etc/fstab or /etc/mtab
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# mount -t usbfs none /proc/bus/usb
mount: none already mounted or /proc/bus/usb busy
mount: according to mtab, usbfs is already mounted on /proc/bus/usb
root@survivor:/home/survivor# mount /proc/bus/usb type usbfs (rw)
bash: syntax error near unexpected token `('
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
root@survivor:/home/survivor# less /proc/scsi/usb-storage-0/1
/proc/scsi/usb-storage-0/1: No such file or directory
root@survivor:/home/survivor# mkdir -m 777 /mnt/usb
root@survivor:/home/survivor# mount -t vfat /dev/sda1 /mnt/usb
mount: special device /dev/sda1 does not exist
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# mknod -m 666 /dev/sda b 8 0
root@survivor:/home/survivor# mknod -m 666 /dev/sda1 b 8 0
root@survivor:/home/survivor# mount -t vfat /dev/sda1 /mnt/hd
mount: /dev/sda1 is not a valid block device
root@survivor:/home/survivor# mkfs /dev/sda1
mke2fs 1.35 (28-Feb-2004)
/dev/sda1 is entire device, not just one partition!
Proceed anyway? (y,n) n
root@survivor:/home/survivor# mkdosfs -F 32 /dev/sda1
mkdosfs 2.10 (22 Sep 2003)
/dev/sda1: No such device or address
root@survivor:/home/survivor# t was it . Now I can mount it again the normal way:
bash: t: command not found
root@survivor:/home/survivor# mkdosfs -F 32 /dev/sda1
mkdosfs 2.10 (22 Sep 2003)
/dev/sda1: No such device or address
root@survivor:/home/survivor# mknod -m 666 /dev/sda1 b 8 0
mknod: `/dev/sda1': File exists
root@survivor:/home/survivor# mkdosfs -F 32 /dev/sda1
mkdosfs 2.10 (22 Sep 2003)
/dev/sda1: No such device or address
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
root@survivor:/home/survivor# mount /dev/sda1
mount: /dev/sda1 is not a valid block device
root@survivor:/home/survivor#
From one error, I got another
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

Last edited by LordSurvivoR; 07-11-2005 at 06:21 PM.
 
Old 07-12-2005, 10:39 AM   #9
LordSurvivoR
Member
 
Registered: Jul 2005
Location: Serbia
Distribution: Gentoo
Posts: 46

Rep: Reputation: 15
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
 
Old 05-23-2007, 04:35 PM   #10
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Rep: Reputation: 15
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/
mount: you must specify the filesystem type
debian:~# mount -t auto /dev/sda /mnt/usbkey/
sda
debian:~# mount -t auto /dev/sda1 /mnt/usbkey/
mount: you must specify the filesystem type
debian:~# mknod -m 666 /dev/sda1 b 8 0
debian:~# mount -t auto /dev/sda1 /mnt/usbkey/
mount: No medium found

# dmesg | tail
usb 2-3: new high speed USB device using ehci_hcd and address 16
usb 2-3: configuration #1 chosen from 1 choice
scsi13 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 16
usb-storage: waiting for device to settle before scanning
  Vendor: USB 2.0   Model: SD/MMC Reader     Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 00
sd 13:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
usb 2-3: USB disconnect, address 16
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB stopped working jowizzle Linux - Software 1 03-20-2005 01:11 AM
USB Mouse Stopped Working with 2.6.8.1 Eklipz Linux - Newbie 1 12-09-2004 09:49 PM
usb stopped working FC1 slackist Fedora 17 06-10-2004 08:43 PM
USB Flash drive stopped working after Windows exposure oot Linux - General 1 03-31-2004 10:18 PM
USB has stopped working cruane Linux - Software 1 12-02-2002 02:52 PM


All times are GMT -5. The time now is 06:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration