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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-25-2006, 09:47 AM
|
#1
|
LQ Newbie
Registered: Apr 2006
Location: Bratislava, Slovakia
Distribution: debian
Posts: 4
Rep:
|
cannot mount usbkey on linux
hi guys, here comes my first post to this forum:
i've got difficulties with mounting my 128MB usb key manufactured by EMTEC under debian sarge (however this is not related to distro probably).
i checked the loaded kernel modules, the usb-storage module is present. when i insert the key into a usb port i get no notification, no sign of message in dmesg or syslog. when i try to mount the key like this: mount -t vfat /dev/sda1 /mnt i get an error message about probably a bad super block or invalid filesystem. when i try /dev/sda2,sda3 etc or /dev/sdb1,sdb2 etc i get "not a valid block device" message. i'm using SATA hard disk which is detected as /dev/sda and i'm using its logical partitions /dev/sda5 and higher. i used sg_scan and sg_map to find out which scsi-like devices are detected but i only could find /dev/sda which refers to my hard disk.
i thought maybe the disk being referred to as /dev/sda and usb keys being usually being referred to as /dev/sda1 could cause some kind of interferrence, but i know too little about this to judge. please share your opinion about what might cause this and give me a hint to solve it if you can..
other relevant info is that i'm using generic 2.6 kernel and had the same usb key tested by my friend on his debian machine and all worked for him..
Last edited by mis2o; 04-25-2006 at 09:56 AM.
|
|
|
04-25-2006, 11:22 AM
|
#2
|
Member
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61
Rep:
|
I had the same problem not long ago...
You probably need to modprobe also the modules usb-uhci or usb-ehci (the first is for support of usb 1.1 and the second one for usb 2.0)
Here is the post where I got it solved:
http://www.linuxquestions.org/questi...d.php?t=398644
|
|
|
04-28-2006, 09:26 AM
|
#3
|
LQ Newbie
Registered: Apr 2006
Location: Bratislava, Slovakia
Distribution: debian
Posts: 4
Original Poster
Rep:
|
i had a look at it yesterday and found out the following:
-the module names are probably uhci-hcd and ehci-hcd
-both of them are loaded
-i get no syslog messages when plugging the key into the port
i tried the same device with Knoppix live CD:
-originally the key was not detected
-i could see uhci-hcd among loaded modules, ehci-hcd was not loaded
-after loading ehci-hcd, the key was detected and i had no problem to access it
so i still have no idea why the device is not working with my Debian Sarge install, i don't think it's a matter of USB driver as i can use the USB mouse without problems and the modules are loaded..
your help is very much appreciated!
|
|
|
04-28-2006, 09:37 AM
|
#4
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
First item, if your Hard drive is SATA and it's device name is /dev/sda it is impossible for your USB key to also be /dev/sda.. it would at the very least have to be /dev/sdb and would probably be mounted as /dev/sdb1.
do you have the following modules loaded ?
sd_mod
scsi_mod
usb_storage
usbcore
uhci_hcd
modprobe whichever ones are not loaded..
open the log file for viewing
tail -f /var/log/messages about 10 lines of log should scroll onto the screen
plug in the usb drive and see what designation the system gives it. when you plug in the usb key you should see the messages scroll right up on the screen identifying the drive designation.
CTRL+C to exit the log
Debian doesn't have a /mnt folder by default is that something you added ? if not create a folder to mount he usbdrive
mkdir /media/usbdrive
mount the drive using the designation shown in the messages log..I'll use sdb for this example
mount /dev/sdb1 /media/usbdrive
If all that works update your /etc/moudules.conf to add hte missing modules and add an entry into /etc/fstab so your uuser can mount the drive.
Last edited by farslayer; 04-28-2006 at 09:42 AM.
|
|
|
05-10-2006, 10:08 AM
|
#5
|
LQ Newbie
Registered: Apr 2006
Location: Bratislava, Slovakia
Distribution: debian
Posts: 4
Original Poster
Rep:
|
hi, me again i checked it and all of the modules listed by farslayer are loaded. i also tried modprobing ehci-hcd, as this helped me when trying USB key on Knoppix. but not this time. I tried modprobing other modules which seemed to a have a connection with usb or scsi but with no luck. only messages in /var/log/messages were connected with successfull loading these modules. When trying this on Knoppix, I could see a messages about assigning /dev/sdb1 to usb key immediately after loading ehci-hcd.
in fact, there is a /mnt directory by default in debian, but i created a different one for sure. mounting with "mount -t vfat /dev/sdb1 /mnt/usbkey" results with "not a valid block device" message. I also tried others (sdb2, even sdc) without success.
if you have any sugestions, please share it with me..
|
|
|
05-10-2006, 08:32 PM
|
#6
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
So when you did the tail -f on the messages log and then plugged in teh USB Drive you saw absolutely nothing scroll onto the screen ?
|
|
|
05-11-2006, 09:11 AM
|
#7
|
LQ Newbie
Registered: Apr 2006
Location: Bratislava, Slovakia
Distribution: debian
Posts: 4
Original Poster
Rep:
|
yes, exactly
|
|
|
05-11-2006, 04:50 PM
|
#8
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
are you sure your USB ports are active under linux ?
Check your dmesg log to ensure the USB ports are detected at boot time..
Quote:
itg-debian:~# more /var/log/dmesg | grep uhci
uhci_hcd 0000:00:1f.2: Intel Corp. 82801BA/BAM USB (Hub #1)
uhci_hcd 0000:00:1f.2: irq 11, io base 0000ff80
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1f.4: Intel Corp. 82801BA/BAM USB (Hub #2)
uhci_hcd 0000:00:1f.4: irq 11, io base 0000ff60
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
|
|
|
|
05-11-2006, 05:24 PM
|
#9
|
LQ Newbie
Registered: Apr 2006
Posts: 27
Rep:
|
Some USB keys have directly a vfat filesystem, and are not partitioned... try mounting /dev/sdb
Another thing: on my (weird) toshiba laptop, usb didn't work out of the box, though IT WAS DETECTED - had to recompile my kernel...
No panic if you've never done it:
Login as root and:
Code:
apt-get install libncurses-dev gcc make bzip2
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.16.tar.bz2
tar xjf linux-2.6.16.16.tar.bz2
cd linux-2.6.16.16
make menuconfig # configure everything according to your hardware, use lspci to find out what ='s inside your pc and experiment!
make
make deb-pkg
cd ../
dpkg -i linux-2.6.16.16_2.6.16.16*.deb
update-grub # if you use grub
apt-get install udev module-init-tools # if you used a 2.4 kernel
You'll probably get a kernel panic or two at reboot , that's normal if you use intel ich6 SATA... you might check ftp://jypmtm.homeip.net , i don't know if i uploaded my config file, so that you might see how to configure for some strange chipsets...
Choose built-in rather than modules, if it's for non-removable devices... and always put your root fs driver and your hd driver compiled-in, even if you prefer modules...
Last edited by milanc; 05-12-2006 at 02:37 AM.
|
|
|
All times are GMT -5. The time now is 04:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|