LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-12-2005, 12:57 AM   #1
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Rep: Reputation: 31
cannot mount usbstick


I cannot mount my usb flashdrive. I always get mount: /dev/sda1 is not a valid block device and sda1 is shown as brw-rw----.

I've followed these instructions...
Quote:
First:
Remove the flash disk from your computer if it's not already.
Change your /etc/fstab entry to this:


Code:
/dev/sda1     /mnt/usbstick     vfat     noauto,users,rw,umask=1000  0  0

I am assuming you created the mount point /mnt/usbstick. This will allow
you to mount the device as a normal user, so don't try mounting as root.
The kernel will mount a partition, not a device, so /dev/sda1 is correct.

Second:
After changing your /etc/fstab, issue as root "/etc/rc.d/rc.hotplug restart"
and then exit from root to a normal user. Then issue "dmesg | grep -i usb"
and post that output.

Third:
Now plug the flash disk into your computer and wait 30 seconds and
then issue "dmesg | tail" and post the output. Then issue as a normal
user "mount /mnt/usbstick" and if it returns to a prompt with no other
output, it's mounted. You can then issue "cd /mnt/usbstick" and it will
read/write as a normal user. If it does return some other output, then
post that here; along with the output of "dmesg | tail" again after you
tried to mount the device.

Fourth:
With the device still plugged in, issue as root "/etc/rc.d/rc.hotplug restart"
once again and then as a normal user issue "mount /mnt/usbstick" and
if that doesn't mount it issue "dmesg | tail" again for the new messages.

http://www.linuxquestions.org/questi...ount+usb+drive
...and I still get this error.

$ dmesg | tail
PCI: Setting latency timer of device 00:1f.2 to 64
uhci.c: USB UHCI at I/O 0x1820, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x1001
hw_random: misc device register failed


$ sudo /etc/init.d/hotplug restart
Stopping hotplug subsystem:
pci
pci [success]
usb
usb [success]
isapnp
isapnp [success]
ide
ide [success]
input
input [success]
scsi
scsi [success]
done.
Starting hotplug subsystem:
pci
sata_sil: can't be loaded
missing kernel or user mode driver sata_sil
tulip: can't be loaded
missing kernel or user mode driver tulip
dmfe: already loaded
snd-intel8x0: already loaded
uhci: loaded successfully
shpchp: can't be loaded
missing kernel or user mode driver shpchp
pciehp: can't be loaded
missing kernel or user mode driver pciehp
i810_rng: already loaded
hw_random: can't be loaded
missing kernel or user mode driver hw_random
pci [success]
usb
usbcore: already loaded
usbcore: already loaded
usb [success]
isapnp
isapnp [success]
ide
ide [success]
input
input [failed]
scsi
scsi [success]
ide
ide [success]
input
input [failed]
scsi
scsi [success]
done.



Any ideas?
Thanks

Last edited by verbose; 09-12-2005 at 12:59 AM.
 
Old 09-12-2005, 01:27 AM   #2
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 31
Perhaps the usb stick is broken?

Plug in the stick and do a fdisk -l and see what shows up.
 
Old 09-12-2005, 01:34 AM   #3
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
That yields nothing. I just bought the usb drive, so it's not broken.
 
Old 09-12-2005, 03:53 AM   #4
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
try http://www.linux-usb.org/
 
Old 09-12-2005, 05:32 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
I don't know Debian systems, only Slackware, but if you post the output of
"lsmod" we can see whether or not you have the kernel modules to use
the USB device, and perhaps a Debian fellow can help from there.
 
Old 09-12-2005, 11:08 AM   #6
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
$ lsmod

Module Size Used by Not tainted
rtc 5768 0 (autoclean)
uhci 21436 0 (unused)
usbcore 52268 1 [uhci]
vfat 8748 0 (autoclean)
fat 27576 0 (autoclean) [vfat]
sd_mod 10764 0 (autoclean) (unused)
apm 8428 1 (autoclean)
af_packet 11048 1 (autoclean)
snd-intel8x0 16928 2
snd-ac97-codec 53756 0 [snd-intel8x0]
snd-pcm-oss 34336 0
snd-mixer-oss 11128 2 [snd-pcm-oss]
snd-pcm 50056 0 [snd-intel8x0 snd-ac97-codec snd-pcm-oss]
snd-timer 12900 0 [snd-pcm]
snd 29540 0 [snd-intel8x0 snd-ac97-codec snd-pcm-oss snd-mixer-oss snd-pcm snd-timer]
soundcore 3268 4 [snd]
snd-page-alloc 4296 0 [snd-intel8x0 snd-mixer-oss snd-pcm snd-timer snd]
ide-scsi 8272 0
scsi_mod 86052 2 [sd_mod ide-scsi]
dmfe 10721 1
crc32 2848 0 [dmfe]
i810_rng 2368 0 (unused)
agpgart 39108 4
ide-cd 27072 0
cdrom 26212 0 [ide-cd]
ext3 65388 6 (autoclean)
jbd 34628 6 (autoclean) [ext3]
ide-detect 288 0 (autoclean) (unused)
siimage 6916 1 (autoclean)
piix 7784 1 (autoclean)
ide-disk 12448 7 (autoclean)
ide-core 91832 7 (autoclean) [ide-scsi ide-cd ide-detect siimage piix ide-disk]
unix 12752 245 (autoclean)
 
Old 09-12-2005, 11:45 AM   #7
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
you need to load the USB mass storage driver from the rc scripts. That module does not look like it is present. Not sure what it is called, best guess is "mass-storage"
 
Old 09-12-2005, 12:55 PM   #8
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Unfortunately, I can't seem to find any device like this.
 
Old 09-12-2005, 01:15 PM   #9
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
It is not a device, it is a module. edit somewhere similar to /etc/rc.d/rc.modules. to activate it manually,do
Code:
modprobe mass-storage
the device(/dev/sda1) should show up after that.
 
Old 09-12-2005, 01:20 PM   #10
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Sorry, I misspoke. There is no module named mass-storage or any module with a similar name.
 
Old 09-12-2005, 01:30 PM   #11
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
I just looked it up. It is called usb-storage. I wonder why it is not in the rc file already and commented out...
 
Old 09-12-2005, 01:36 PM   #12
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Meard. No module exists with this name either.
 
Old 09-12-2005, 02:10 PM   #13
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
Wow... I guess you may have to recompile your kernel to include module support for that. you can try
Code:
find -f /lib/modules -name usb-storage
to be absolutely conclusive that it does not exist.
 
Old 09-12-2005, 02:23 PM   #14
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
It doesn't exist. I've never recompiled a kernel before. How would I go about doing such a thing? Excuse my newbiness.

I've tried compiling 2.6.8 in the past but it would never boot, so I eventually gave up. I think it has something to with sata_sil not being detected. I never got a definitive answer as to why it didn't boot. I got answers revolving around changing hda to hde or something like this, which yielded no positive results. I'd still like to resolve this but I've lost hope in ever getting 2.6.8 to boot.

So I guess I'm plain out of luck...
 
Old 09-12-2005, 02:31 PM   #15
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
well, things have improved since 2.6.8, so it may work now. But that is another thread.
 
  


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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 08:29 PM
Writespeed USBstick is horrible in updated FC3. sjonie100 Fedora 0 08-02-2005 06:56 AM
some USBstick help please Lleb_KCir Linux - General 13 07-26-2005 01:13 PM
USBstick problems! chansen0421 Linux - Newbie 4 01-15-2005 02:40 PM


All times are GMT -5. The time now is 10:21 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