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.
|
 |
|
10-23-2005, 05:03 PM
|
#1
|
Member
Registered: Sep 2002
Location: Wallington, Surrey, UK
Distribution: Ubuntu, Android phone
Posts: 119
Rep:
|
USB memory stick
I am puzzled as to why I cannot mount a memory stick as a mass storage device. The particular device belongs to my daughter and she uses it on Windows XP. I have Slackware current installed on the same box. I already have a mount point set-up for a digital camera that mounts perfectly at /mnt/camera on /dev/sdb1 (sda1 is my SATA drive).
lsmod shows the usb-storage driver. Looking /proc/bus/usb/devices shows details of the device and mentions the usb-storage driver.
I have another box with Zenwalk 1.2 installed and I have the same problem. Any ideas why the device won't mount?
Thanks.
|
|
|
10-23-2005, 06:33 PM
|
#2
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
What error message do you get when you try to mount it? It's really hard to guess what's wrong without it. Is there anything wrong in "dmesg" when you try to mount it?
|
|
|
10-23-2005, 06:51 PM
|
#3
|
Member
Registered: Sep 2002
Location: Wallington, Surrey, UK
Distribution: Ubuntu, Android phone
Posts: 119
Original Poster
Rep:
|
Quote:
Originally posted by Half_Elf
What error message do you get when you try to mount it? It's really hard to guess what's wrong without it. Is there anything wrong in "dmesg" when you try to mount it?
|
bash-3.00# mount /dev/sdb1 -t vfat /mnt/hd/
mount: special device /dev/sdb1 does not exist
There is nothing with a time stamp in /var/log/messages, /var/log/syslog or dmesg that relates to the above 
|
|
|
10-23-2005, 06:53 PM
|
#4
|
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:
|
What is the output from the command ' /sbin/fdisk -l '?
What is the mount command you are trying?
Post output of the command ' /sbin/lsmod ' and ' /sbin/lsusb '?
Brian1
|
|
|
10-23-2005, 06:55 PM
|
#5
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
Are you sure this drive is assigned to /dev/sdb1? Plug in the drive and type "dmesg", on the few last lines, it should tell you which device it is using.
Or you might want to try "cfdisk /dev/sdb" to take a look at the partition table? Most flash drive don't have partition (so you have to load the whole /dev/sdb) I believe.
|
|
|
10-23-2005, 06:56 PM
|
#6
|
Member
Registered: May 2005
Distribution: Ubuntu 9.04
Posts: 320
Rep:
|
From what I've heard, the "usb-storage" driver shouldn't be enabled as it often causes problems with some flash drives and stuff (even though that's exactly what it's meant for. . . hmm. . .)
Why is it enabled in the first place? I use Slack, too, and it wasn't enabled by default on my machine, I'm pretty sure. . .
|
|
|
10-24-2005, 07:29 AM
|
#7
|
Member
Registered: Sep 2002
Location: Wallington, Surrey, UK
Distribution: Ubuntu, Android phone
Posts: 119
Original Poster
Rep:
|
I am not in front of the box at the moment (I will take a look tonight and post back further findings).
From what I recall, the tail of the dmesg output had no reference to any type of usb mass storage device.
The mount options I have tried are as follows:
mount /dev/sdb1 -t vfat /mnt/hd
mount /dev/sdb1 -t auto /mnt/hd
These both give the same error message noted above. I have also tried:
mount /dev/sdb -t vfat /mnt/hd
This does not give an error message, but upon investigation the media is not mounted  ie. ls /mnt/hd/ draws a blank.
As mentioned in my original post we do have a camera in the house that is mounted with:
mount /dev/sdb1 -t vfat /mnt/camera
I guess that is where the usb-storage driver fits in.
|
|
|
10-24-2005, 03:18 PM
|
#8
|
Member
Registered: Sep 2002
Location: Wallington, Surrey, UK
Distribution: Ubuntu, Android phone
Posts: 119
Original Poster
Rep:
|
Well, I decided to pop the stick in prior to boot to see what happened. The section from dmesg:
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
ip_tables: (C) 2000-2002 Netfilter core team
Vendor: Verbatim Model: USB Drive Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 128000 512-byte hdwr sectors (66 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
SCSI device sdb: 128000 512-byte hdwr sectors (66 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
sdb: unknown partition table
Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi4, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
I then managed to mount the device with:
mount /dev/sdb -t auto /mnt/hd
Now I need to work out why it will not mount if plugged in after boot 
|
|
|
10-24-2005, 04:38 PM
|
#9
|
Member
Registered: May 2005
Distribution: Ubuntu 9.04
Posts: 320
Rep:
|
Quote:
Originally posted by Alan Lakin
Now I need to work out why it will not mount if plugged in after boot
|
Maybe the modules aren't loading properly.
|
|
|
10-24-2005, 05:58 PM
|
#10
|
Member
Registered: Aug 2004
Location: Belgium
Distribution: debian 5.02
Posts: 73
Rep:
|
USB-stick won't mount
hello,
got the same problem... the stick is only readable when plugged in on boot. I'm using Fedora core 4 (64-bit) but it seems lousy... changing back to SuSE again!!! Anyway : trying out the automount config files didn't work out. when not plugged in on boot I didn't even get a mounting point in /media. Any Idea?
greetings,
Ronald
|
|
|
10-26-2005, 05:21 PM
|
#11
|
Member
Registered: Sep 2002
Location: Wallington, Surrey, UK
Distribution: Ubuntu, Android phone
Posts: 119
Original Poster
Rep:
|
Ronald, I know this does not really help you, but since I did my little experiment and got all of the details from dmesg it has somehow kicked my system into action. The command that did not previously work, now does  I have even entered the details into the /etc/fstab so that a normal user can mount the device with mount /mnt/usb-stick. I am totally puzzled by all of this but it is probably worth taking a deep breath and logically step through the process from what works i.e. having it mounted from boot.
Best of luck.
|
|
|
10-27-2005, 04:09 PM
|
#12
|
Member
Registered: Aug 2004
Location: Belgium
Distribution: debian 5.02
Posts: 73
Rep:
|
usb-stick : opus2
hello Alan,
Thanks, but I did more investigation. Dmesg gives some very strange output :
ehci_hcd 0000:00:02.1 : port 5 reset error (-110)
hub 1-0:1.0: hub_port_status failed (-32)
After 5 times i get :
hub 1-0:1.0: cannot enable port 5. Maybe the USB cable is bad?
rubbish, of course : it works under windoze2000
Any idea what's wrong?
greetings,
Ronald
|
|
|
10-27-2005, 06:06 PM
|
#13
|
Member
Registered: Sep 2002
Location: Wallington, Surrey, UK
Distribution: Ubuntu, Android phone
Posts: 119
Original Poster
Rep:
|
Ronald,
I am afraid I am not a techie (though I am sure there will be plenty reading this  ) but is your usb sub-system working with other usb devices?
|
|
|
10-28-2005, 01:33 PM
|
#14
|
Member
Registered: Aug 2004
Location: Belgium
Distribution: debian 5.02
Posts: 73
Rep:
|
usb-stick : opus2.1
Hello Alan,
keyboard and mouse both in USB-port and working. Printer doesn't work in USB but that could be a driver problem... it's a Samsung CLP-510N.
Greetings,
Ronald
|
|
|
10-31-2005, 10:39 AM
|
#15
|
Member
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98
Rep:
|
I just tried to set up a usb memory stick as well and ran across the same problem. If i plug it in, then boot i'm able to mount it, otherwise it doesn't seem to have a device node.
I might be stating the obvious, but i found that if you modprobe sd_mod then look at dmesg it will tell you where the node is. How can you set linux up to do this automatically? I thought i had configured auto loading of modules anyways.. I guess i could just explicitly load sd_mod on boot, but this doesn't seem like the best way.
Any ideas?
|
|
|
All times are GMT -5. The time now is 02:08 AM.
|
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
|
|