Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
USB drive... /dev/sda1 does not exist! (almost resolved)
I just got a shiny new USB flash drive for my birthday
I have read a few articles here, and they all seem to say that a flash drive should be mounted from /dev/sda1 to /mnt/usbflash
the only problem is... I don't have /dev/sda1 !
soooooo.... what now?
Last edited by Lord Zoltar; 01-08-2005 at 03:38 PM.
I have the same problem. Except with my mp3 player that I want to mount (iAudio cw300). I found a thread dealing with this but they assumed I had the sda file
I'll watch this thread before starting my own as I'm pretty sure that's my one and only problem.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
What is your output from ' lsmod ' when usb drive is plugged in
What is the output from ' fdisk -l ' when usb drive is plugged in
What is the outpu from ' cat /proc/scsi/scsi ' when drive is pluugged in
I would try loading modules last two will probably be the ones
uhci-hcd
ohci-hcd
ehci-hcd
2.6.9 uses udev rather than the old devfs, which had some bugs. udev allows for persistent naming, among other things, which I have to say is really cool. There's a good manual on it at http://www.reactivated.net/writing_udev_rules.html
You probably want something like the second line if you just want your old naming scheme back. The first one is my particular jumpdrive that I always want to be at usb1.
Originally posted by Lord Zoltar I just got a shiny new USB flash drive for my birthday
I have read a few articles here, and they all seem to say that a flash drive should be mounted from /dev/sda1 to /mnt/usbflash
the only problem is... I don't have /dev/sda1 !
soooooo.... what now?
On my computer /dev/sda is the SD Card slot on my Media card reader, but sometimes, /dev/sda1 doesn't exist, even though /dev/sda does, even if I have a card inserted. However I found a way for it to "discover" sda1, sort of. I found that if I did fdisk -l /dev/sda, after I inserted the card, /dev/sda1 would then show up. Maybe if you try that after plugging in the flash drive, it'll work.
Orriginally posted by Brian1 What is your output from ' lsmod ' when usb drive is plugged in
What is the output from ' fdisk -l ' when usb drive is plugged in
What is the outpu from ' cat /proc/scsi/scsi ' when drive is pluugged in
I would try loading modules last two will probably be the ones
uhci-hcd
ohci-hcd
ehci-hcd
I have uhci_hcd and ehci_hcd. I also have usblp (? It has 'usb'). They all show up with or with out the mp3 player plugged in though. So to load a module I just use /sbin/modprobe ehci-hcd? Then they'll be a superblock?
usb 4-1: new full speed USB device using address 2
usb 4-1: USB disconnect, address 2
usb 4-1: new full speed USB device using address 3
usb 4-1: USB disconnect, address 3
usb 4-1: new full speed USB device using address 4
usb 4-1: USB disconnect, address 4
usb 4-1: new full speed USB device using address 5
usb 4-1: USB disconnect, address 5
usb 4-1: new full speed USB device using address 6
usb 4-1: USB disconnect, address 6
usb 4-1: new full speed USB device using address 7
usb 4-1: USB disconnect, address 7
This will put the last lines from /var/log/messages on your screen, while the -f option means that you follow the file, appending data as the file grows.
Plugin your USB device
If all goes as it should, something similar as below should be appended to the /var/log/messages file:
Code:
usb 4-2: new full speed USB device using address 2
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: SigmaTel Model: MSCNMMC Rev: 0100
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 253600 512-byte hdwr sectors (130 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
sdb: sdb1
The last line is most important, as this will tell you where the mountable partition of the USB device is located. In your case this may be /dev/sda, /dev/sdb, /dev/sdc, etc, or, when it is partitioned, /dev/sda1, /dev/sdb1, /dev/sdc1, etc.
Can you post the last lines from /var/log/messages after you've followed the above description?
ok, so I just plugged the drive in, ran `tail -f /var/log/messages` (as root of course) and got:
Code:
Jan 2 17:22:16 solomonsdesk udev[14966]: removing device node '/dev/sda1'
Jan 2 17:22:16 solomonsdesk udev[14985]: removing device node '/dev/sda'
Jan 2 17:22:16 solomonsdesk udev[14992]: removing device node '/dev/sda1'
Jan 2 17:22:16 solomonsdesk udev[14993]: removing device node '/dev/sda'
Jan 2 17:22:16 solomonsdesk udev[15000]: removing device node '/dev/sda1'
Jan 2 17:22:16 solomonsdesk udev[15001]: removing device node '/dev/sda'
Jan 2 17:22:16 solomonsdesk udev[15008]: removing device node '/dev/sda1'
Jan 2 17:22:16 solomonsdesk udev[15009]: removing device node '/dev/sda'
Jan 2 17:22:16 solomonsdesk udev[15016]: removing device node '/dev/sda1'
Jan 2 17:22:16 solomonsdesk udev[15017]: removing device node '/dev/sda'
and I thought WTF is it removing the same two devices over and over again? Should also mention that when I plugged the drive in, the CPU load chart kept spiking for a bout 30 sec and the mouse got very unresponsive.
The output of lsmod looks like this:
and Brian1, you can see that those three modules you suggested are already loaded.
I thought I'd also look at dmesg's output and got this:
Code:
dmesg | grep usb
usb 1-5: USB disconnect, address 56
usb 1-5: new high speed USB device using address 57
usb 1-5: USB disconnect, address 57
usb 1-5: new high speed USB device using address 58
usb 1-5: USB disconnect, address 58
usb 1-5: new high speed USB device using address 59
usb 1-5: USB disconnect, address 59
usb 1-5: new high speed USB device using address 60
usb 1-5: USB disconnect, address 60
usb 1-5: new high speed USB device using address 61
usb 1-5: device not accepting address 61, error -71
usb 1-5: new high speed USB device using address 62
usb 1-5: USB disconnect, address 62
usb 1-5: new high speed USB device using address 63
usb 1-5: USB disconnect, address 63
usb 1-5: new high speed USB device using address 64
usb 1-5: USB disconnect, address 64
usb 1-5: new high speed USB device using address 65
usb 1-5: device not accepting address 65, error -71
usb 1-5: new high speed USB device using address 66
usb 1-5: USB disconnect, address 66
usb 1-5: new high speed USB device using address 67
usb 1-5: USB disconnect, address 67
usb 1-5: new high speed USB device using address 68
usb 1-5: device descriptor read/all, error -71
usb 1-5: new high speed USB device using address 70
usb 1-5: USB disconnect, address 70
usb 1-5: new high speed USB device using address 71
usb 1-5: USB disconnect, address 71
usb 1-5: new high speed USB device using address 72
usb 1-5: USB disconnect, address 72
usb 1-5: new high speed USB device using address 73
usb 1-5: USB disconnect, address 73
usb 1-5: new high speed USB device using address 74
usb 1-5: string descriptor 0 read error: -71
usb 1-5: string descriptor 0 read error: -71
usb 1-5: string descriptor 0 read error: -71
usb-storage: probe of 1-5:1.0 failed with error -1
usb 1-5: USB disconnect, address 74
usb 1-5: new high speed USB device using address 75
usb 1-5: USB disconnect, address 75
usb 1-5: new high speed USB device using address 76
usb 1-5: device not accepting address 76, error -71
usb 1-5: new high speed USB device using address 77
usb 1-5: USB disconnect, address 77
usb 1-5: new high speed USB device using address 78
usb 1-5: USB disconnect, address 78
usb 1-5: new high speed USB device using address 79
usb 1-5: USB disconnect, address 79
usb 1-5: new high speed USB device using address 80
usb 1-5: USB disconnect, address 80
usb 1-5: new high speed USB device using address 81
usb 1-5: USB disconnect, address 81
usb 1-5: new high speed USB device using address 82
usb 1-5: USB disconnect, address 82
usb 1-5: new high speed USB device using address 83
usb 1-5: USB disconnect, address 83
usb 1-5: new high speed USB device using address 84
usb 1-5: USB disconnect, address 84
usb 1-5: new high speed USB device using address 85
usb 1-5: USB disconnect, address 85
usb 1-5: new high speed USB device using address 86
usb 1-5: USB disconnect, address 86
usb 1-5: new high speed USB device using address 87
usb 1-5: USB disconnect, address 87
usb 1-5: new high speed USB device using address 88
usb 1-5: USB disconnect, address 88
usb 1-5: new high speed USB device using address 89
usb 1-5: device not accepting address 89, error -71
usb 1-5: new high speed USB device using address 90
usb 1-5: device not accepting address 90, error -71
so something is definitely going bad here...
my udev file contains the following lines about USB
Originally posted by Lord Zoltar so something is definitely going bad here...
That's a good one to start this year's "understatement of the year"!
Have you tried a reboot? It may be that, while you were trying to fix the problem, something went wrong that's bugging you now. A reboot may clear you of those bugs.
After rebooting try it again, and post the output of /var/log/messages again (preferentially from the moment you attached the device, as it may give information about what's wrong).
Regulus: the computer has been rebooted since yesterday when I first discovered the3 problem and today when I tried to do stuff again. But since I only was passive today (reading logs, etc...) nothing I have done would have had an effect, so rebooting would probably not do much. I will be rebooting again in 5 minutes to switch to windows, but I doubt when I boot back into linux anything will change
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Got a thought here Lord Zoltar. Kernel 2.6.9 is not very good at USB. Can not see some deivces that a 2.6.7 kernel did. Suggest you try an older kernel if you still have installed or try 2.6.10-rc2. Any release of 2.6.9.* did not see my MP3 Player. 2.6.7.rc2 did with no problem. Moved onto 2.6.10-rc2 and no problems again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.