LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-01-2005, 08:11 PM   #1
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
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.
 
Old 01-01-2005, 08:22 PM   #2
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
I found another thread that said I should modprobe usb-uhci and usbcore and modprobe on both of these failed.
I have a custom compiled 2.6.9 kernel.
 
Old 01-01-2005, 08:28 PM   #3
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
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.
 
Old 01-01-2005, 09:03 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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: Reputation: 65
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

Other modules
usb-storage

Then try the output from again.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-01-2005, 10:03 PM   #5
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Also, you'll prob want to make sure you have vfat support compiled into your kernel or loaded as a module.
 
Old 01-01-2005, 10:29 PM   #6
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
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

This is what I ended up adding to mine:

/etc/udev/rules.d/udev.rules
Code:
BUS="usb", SYSFS{serial}="33000000522000004034", KERNEL="sd?1", NAME="%k", SYMLINK="usb1"
BUS="usb", KERNEL="sd?1", NAME="%k"
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.

Last edited by Chrax; 01-01-2005 at 10:32 PM.
 
Old 01-01-2005, 10:37 PM   #7
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Also, I would imagine Slack has hotplug set up as default (long time since I ran slack..), so try running

Code:
tail -f /var/log/messages
as root, then plug in your USB drive and see what it is recognized as.
 
Old 01-02-2005, 12:16 AM   #8
drj000
Member
 
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

Rep: Reputation: 33
Re: USB drive... /dev/sda1 does not exist!

Quote:
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.
 
Old 01-02-2005, 01:44 PM   #9
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Quote:
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

Other modules
usb-storage

Then try the output from again.

Brian1
" Google the Linux way @ http://www.google.com/linux "
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?

Last edited by 1veedo; 01-02-2005 at 01:47 PM.
 
Old 01-02-2005, 02:50 PM   #10
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Code:
dmesg | grep "usb"
gives me:
Code:
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
Every time I connect it, it seems like it adds another address. I got the grep command from here:
http://www.linuxquestions.org/questi...ghlight=iAudio

The guy in that thread trying to connect his mp3 player is having the same problem as I
 
Old 01-02-2005, 04:09 PM   #11
Regulus
Member
 
Registered: Dec 2004
Posts: 41

Rep: Reputation: 15
What you should try is the following:
Code:
su -
Log in as root
Code:
tail -f /var/log/messages
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?

Regards -- Regulus
 
Old 01-02-2005, 04:25 PM   #12
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
thanks for all the replies, guys!

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:
Code:
Module                  Size  Used by
usb_storage            59456  0
snd_pcm_oss            45608  0
snd_mixer_oss          15744  1 snd_pcm_oss
ipv6                  216192  10
ohci_hcd               17668  0
via_agp                 7424  1
shpchp                 89956  0
pciehp                 87268  0
uhci_hcd               27408  0
ehci_hcd               26628  0
snd_via82xx            20772  0
snd_ac97_codec         62288  1 snd_via82xx
snd_pcm                75912  2 snd_pcm_oss,snd_via82xx
snd_timer              19204  1 snd_pcm
snd_page_alloc          7432  2 snd_via82xx,snd_pcm
gameport                3584  1 snd_via82xx
snd_mpu401_uart         5504  1 snd_via82xx
snd_rawmidi            18596  1 snd_mpu401_uart
snd_seq_device          6280  1 snd_rawmidi
snd                    42724  9 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               6752  1 snd
via_rhine              17796  0
mii                     3968  1 via_rhine
crc32                   4096  1 via_rhine
nvidia               4812116  12
ds                     13572  0
yenta_socket           17536  0
pcmcia_core            53060  2 ds,yenta_socket
evdev                   7168  0
psmouse                18312  0
ide_scsi               12932  0
agpgart                26920  2 via_agp
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
Code:
cat /etc/udev/rules.d/udev.rules | grep usb
KERNEL="hiddev*",       NAME="usb/%k"
KERNEL="auer*",         NAME="usb/%k"
KERNEL="legousbtower*", NAME="usb/%k"
KERNEL="dabusb*",       NAME="usb/%k"
BUS="usb", KERNEL="lp[0-9]*",   NAME="usb/%k"

...oh, and drj000, your fdisk trick did not seem to do anything, but I don't even have a /dev/sda
 
Old 01-02-2005, 04:43 PM   #13
Regulus
Member
 
Registered: Dec 2004
Posts: 41

Rep: Reputation: 15
Quote:
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).

Success -- Regulus
 
Old 01-02-2005, 05:14 PM   #14
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
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
 
Old 01-02-2005, 05:51 PM   #15
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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: Reputation: 65
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.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
  


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 pen drive not mounting. /dev/sda1 not present! hamish Linux - Hardware 9 01-11-2010 08:25 PM
ALERT! /dev/sda1 does not exist. - Installing on external HD nrbelex Linux - Software 5 11-17-2005 06:49 AM
USB: Memory Stick: no /dev/sda1 sysbox Linux - Hardware 6 08-09-2005 11:29 PM
USB Pen Drive, /dev/sda1 is not a valid block device Aeiri Linux - Hardware 3 08-13-2004 10:32 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration