LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-17-2007, 01:55 AM   #1
ak-87
Member
 
Registered: Apr 2005
Posts: 68

Rep: Reputation: 15
Can't mount usb flash disk?


It's Slackware 11 with custom 2.6.21.1 kernel. My udev is hanging up my system, so I turned it off. I managed to mount usb flash disk for the first time with next command:

Code:
#mount -t vfat /dev/sdb1 /mnt/flash
After that I can't mount it anymore. As I wrote my udev is making problems, so I'm loading usb-storage and ehci-hcd modules on boot. When I type same command, this is what I get:

Code:
#mount -t vfat /dev/sdb1 /mnt/flash
mount: special device /dev/sdb1 does not exist
I checked /dev but there is no sdb1 node, although my dmesg shows this:

Code:
Initializing USB Mass Storage driver...
scsi5 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 5:0:0:0: Direct-Access     JetFlash TS1GJF130        8.07 PQ: 0 ANSI: 2
SCSI device sdb: 2007038 512-byte hdwr sectors (1028 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 2007038 512-byte hdwr sectors (1028 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1
sd 5:0:0:0: Attached scsi removable disk sdb
sd 5:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
Also lsusb output:

Code:
Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp.
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 003: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
As I said I mounted it for the first time in exactly same way, but now it is not working. Any ideas?
 
Old 05-17-2007, 03:04 AM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I don't know. It should work manually. What version of usb controller do you have (1.0, 1.1, 2.0). If lower than 2.0 try uhci/ohci instead.

Try activating hotplug. Maybe it will find something.
 
Old 05-17-2007, 03:16 AM   #3
ak-87
Member
 
Registered: Apr 2005
Posts: 68

Original Poster
Rep: Reputation: 15
Hotplug also hangs system. I've upgraded udev with package from Slackware-current and it works now just fine. Now I can mount usb flash without any problems.

Thanks anyway!
 
Old 05-17-2007, 03:27 AM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
But it should work manually. Udev is not a magic. But that's ok if you have it working.
 
Old 05-17-2007, 03:52 AM   #5
ak-87
Member
 
Registered: Apr 2005
Posts: 68

Original Poster
Rep: Reputation: 15
I don't want to open new topic, but after upgrading udev I get next messages on boot:

Code:
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:00.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:01.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:01.1/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:01.1@ide0@0.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:01.1@ide1@1.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:02.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:03.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:04.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@pci0000:00@0000:00:06.0@usb1@1-0:1.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@platform@floppy.0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@platform@i8042/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@platform@i8042@serio0/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@platform@pcspkr/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@platform@serial8250/uevent: Not a directory
/ect/rc.d/rc.M: line 93: /dev/.udev/failed/devices@platform@vesafb.0/uevent: Not a directory
???
 
Old 05-17-2007, 03:57 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
It's a chance that you will need to upgrade more packages. Maybe something is said in changelog.
 
Old 05-17-2007, 11:39 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
udev and hotplug should not be hanging your system. I think you may have made a mistake when compiling the kernel. Try the kernel compile guide and slackbook (in my sig).

How did you compile it ?
 
Old 05-17-2007, 12:25 PM   #8
ak-87
Member
 
Registered: Apr 2005
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
udev and hotplug should not be hanging your system. I think you may have made a mistake when compiling the kernel. Try the kernel compile guide and slackbook (in my sig).

How did you compile it ?
Udev and hotplug hanged my system (it is Toshiba Satellite A100-153; check this link's Installation section http://home.comcast.net/~fbui/Linux-on-ToshibaA105.html) before custom kernel (on test26.s - 2.6.18), so I don't think that custom kernel is problem. Right now udev, after upgrade from Slackware-current, is working fine (except those error messages on boot, above) and hotplug service is off.

I compiled my custom kernel like this:

#make mrproper
#make xconfig
#make bzImage && make modules && make modules_install
#cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.21
#cp System.map /boot/System.map-2.6.21
#ln -s /boot/vmlinuz-2.6.21 /boot/vmlinuz
#ln -s /boot/System.map-2.6.21 /boot/System.map
#lilo
#reboot

Last edited by ak-87; 05-17-2007 at 12:26 PM.
 
Old 05-17-2007, 12:57 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Oh, I see. Then I'm not sure. Maybe try upgrading to Slackware -current.
 
Old 05-17-2007, 01:30 PM   #10
ak-87
Member
 
Registered: Apr 2005
Posts: 68

Original Poster
Rep: Reputation: 15
I would love to, but I am still using dial-up.

Last edited by ak-87; 05-17-2007 at 02:06 PM.
 
Old 05-17-2007, 04:00 PM   #11
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
The udev package from -current expects different rule syntax and different location of starting udevd in the init scripts. If you're going to use packages from -current, you need to do a full upgrade to -current.
As to why it's not working on 11.0 with stock 11.0 udev package, it's likely a kernel config problem. Reproduce the issue with the stock 2.6.17.13 kernel from /extra on 11.0 and we'll go from there.
 
Old 05-18-2007, 03:39 AM   #12
ak-87
Member
 
Registered: Apr 2005
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rworkman
The udev package from -current expects different rule syntax and different location of starting udevd in the init scripts. If you're going to use packages from -current, you need to do a full upgrade to -current.
As to why it's not working on 11.0 with stock 11.0 udev package, it's likely a kernel config problem. Reproduce the issue with the stock 2.6.17.13 kernel from /extra on 11.0 and we'll go from there.
This is what happens with stock 11.0 kernel and udev package on boot:
Code:
cs: IO port probe 0xc00-0xcff : clean
cs: IO port probe 0x820-0x8ff : clean
cs: IO port probe 0x800-0x80f  <-- hangs on this line
 
Old 05-18-2007, 12:15 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Maybe try this:
http://www.linuxquestions.org/questi...=IO+port+probe

Blacklist 'ahci' or remove it from kernel.

Last edited by H_TeXMeX_H; 05-18-2007 at 12:17 PM.
 
Old 05-19-2007, 05:42 AM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
do

Code:
ls -la /dev/sd*
and paste the output.

It could be udev is assigning it a different device name. My usb drive changes occasionally.
 
  


Reply



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
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM
How do you mount a USB flash Disk?? chutsu Linux - Hardware 1 09-02-2004 06:00 PM
Totaly new Redhat 9.0 don't know how to mount USB flash disk real_shock Linux - Hardware 1 07-16-2004 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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