Slackware This Forum is for the discussion of Slackware 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.
|
 |
|
07-23-2005, 09:27 AM
|
#1
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Rep:
|
Problem mounting usb flash drive with 2.6.12.2 kernel
I did a kernel recompile to 2.6.12.2 recently from the 2.4. Everything went great, after some initial hiccoughs, now I'm using the 2.6.12.2 daily.
Trouble is, I recently tried mounting my usb flash drive
# mount /mnt/usb
then I get;
Code:
mount: you must specify the filesystem type
This procedure works fine for the 2.4 kernel which I kept. The filesystem type is set to auto, but I've also tried vfat and a couple of others in desperation.
# lsusb
Code:
Bus 002 Device 002: ID 0781:5151 SanDisk Corp.
# cat /proc/scsi/usb-storage/1
Code:
Host scsi1: usb-storage
Vendor: SanDisk Corporation
Product: Cruzer Micro
Serial Number: SNDK2E6AD502C4706602
Protocol: Transparent SCSI
Transport: Bulk
Quirks:
# dmesg | grep sdb
Code:
SCSI device sdb: 501759 512-byte hdwr sectors (257 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 501759 512-byte hdwr sectors (257 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
# less /var/log/messages
Code:
Jul 23 09:53:50 myhost kernel: usb 2-2: new full speed USB device using uhci_hcd
and address 2
Jul 23 09:53:51 myhost kernel: scsi1 : SCSI emulation for USB Mass Storage devic
es
Jul 23 09:53:56 myhost kernel: Vendor: SanDisk Model: Cruzer Micro Rev:
0.3
Jul 23 09:53:56 myhost kernel: Type: Direct-Access ANSI
SCSI revision: 02
Jul 23 09:53:56 myhost kernel: SCSI device sdb: 501759 512-byte hdwr sectors (25
7 MB)
Jul 23 09:53:56 myhost kernel: sdb: Write Protect is off
Jul 23 09:53:56 myhost kernel: SCSI device sdb: 501759 512-byte hdwr sectors (25
7 MB)
Jul 23 09:53:56 myhost kernel: sdb: Write Protect is off
Jul 23 09:53:56 myhost kernel: sdb: sdb1
Jul 23 09:53:56 myhost kernel: Attached scsi removable disk sdb at scsi1, channe
l 0, id 0, lun 0
The usb and scsi sections of the config file are obviously a bit large, so I won't post them just now. The output of lsmod does show usb_storage ohci_hcd and ehci_hcd though.
Cheers for any help with this, I'm sure it's a common enough problem, but I just can't think what I left out during the kernel compile. Just to remind everyone, everything works fine with the 2.4 kernel with the same general settings.
Thanks
Last edited by dcdbutler; 07-23-2005 at 01:10 PM.
|
|
|
07-23-2005, 09:37 AM
|
#2
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
Does mount -t vfat /dev/sdb1 /mnt/usb works?
|
|
|
07-23-2005, 09:50 AM
|
#3
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Original Poster
Rep:
|
Code:
# mount -t vfat /dev/sdb1 /mnt/usb
mount: special device /dev/sdb1 does not exist
Code:
# mount -t auto /dev/sdb1 /mnt/usb
mount: you must specify the filesystem type
weird. I'm confused. What have I done wrong? And why does it work for the other kernel if /dev/sdb1 does not exist?
|
|
|
07-23-2005, 10:15 AM
|
#4
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
Does cat /proc/partitions show sdb1 after you plug the device ?
|
|
|
07-23-2005, 10:18 AM
|
#5
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Original Poster
Rep:
|
Code:
$ cat /proc/partitions
major minor #blocks name
3 0 160086528 hda
3 1 40957686 hda1
3 2 1 hda2
3 5 19535008 hda5
3 6 497983 hda6
3 64 78125040 hdb
3 65 2931862 hdb1
3 66 46315395 hdb2
8 16 250879 sdb
8 17 250574 sdb1
Yes, it does.

|
|
|
07-23-2005, 10:25 AM
|
#6
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
Lol, it seems there are ghost USB devices today
Does fdisk -l /dev/sdb work ?
|
|
|
07-23-2005, 10:36 AM
|
#7
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Original Poster
Rep:
|
Quote:
Does fdisk -l /dev/sdb work ?
|
I get no output for this command. fdisk -l shows my other drives as usual, but no sdb or sdb1
Cheers
|
|
|
07-23-2005, 10:42 AM
|
#8
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
What is your output with udevinfo -V ?
|
|
|
07-23-2005, 10:48 AM
|
#9
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Original Poster
Rep:
|
Code:
# udevinfo -V
udevinfo, version 062
I was wondering when udev would get a mention, seems like there have been a few issues with it recently. I'm using slackware-current.
I'll be away from the forum for a couple of hours, but keep the good advice flowing.
Thanks
|
|
|
07-23-2005, 10:58 AM
|
#11
|
Member
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
|
what does
sfdisk -l
say?
|
|
|
07-23-2005, 01:07 PM
|
#12
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Original Poster
Rep:
|
Quote:
Well maybe try downgrade to udev-054
|
Hey, thanks, it worked!
For the record, sfdisk -l did not pull up my usb drive before the downgrade, but afterwards, I can see it fine as /dev/sdb1.
Thanks for all the excellent advice!

|
|
|
07-23-2005, 01:14 PM
|
#13
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Original Poster
Rep:
|
one more question: Is is usually considered safe to just plug and unplug the usb flash drive whenever you want to? I know that windows can get unstable if you do this and was just wondering what the acceptable protocol for performing this transition under Linux was. Obviously I'd unmount the device first
Cheers
|
|
|
07-23-2005, 01:30 PM
|
#14
|
Member
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
|
it's not like you are unpluging the device without unmounting it first, right?
|
|
|
07-23-2005, 01:40 PM
|
#15
|
Member
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502
Original Poster
Rep:
|
Quote:
it's not like you are unpluging the device without unmounting it first, right?
|
Yes, that's right, but the light stays on even after unmounting it. I suppose that's what I'm concerned about. When you stop the device under windows, if you do it correctly that is, the light goes out, then you can unplug it. Don't worry, I'm not highly strung or anything, I just like to do things right, that's all.
Cheers
|
|
|
All times are GMT -5. The time now is 06:51 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
|
|