LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-01-2004, 08:25 AM   #1
destin
LQ Newbie
 
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Rep: Reputation: 15
Weird message when connecting USB mass storage device


When i plug a USB box with an IDE hd inside to my laptop I get this weird message on my console:

root@*****:~# cat: /sys//devices//pci0000:00/0000:00:11.2/usb1/1-1/bNumConfigurations:No such file or directory
/etc/hotplug/usb.agent: line 144: [: too many arguments


then i press Contol^C to get back in console.I have no problem mounting the drive.I searched a bit when i compiled 2.6.4 for usb+pci hotplug but i did not add those options.I do not use hotpluging.

Is that a bug or any hotplug stupidity ??

Using 2.6.4 kernel+slack9.1

Last edited by destin; 04-01-2004 at 08:30 AM.
 
Old 04-01-2004, 08:33 AM   #2
mrpdaemon
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
getting the same messages in boot since I compiled 2.6.4 too. It happens during bringing up USB mouse & keyboard.

My guess is, from that pathname, that the USB driver assumes sysfs is there, but I don't think I have that compiled.
 
Old 04-01-2004, 09:24 AM   #3
destin
LQ Newbie
 
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Original Poster
Rep: Reputation: 15
I read that a lot of people have that problem.I updated to hotplug-2004_03_29.tar.bz2 but the problem persisted.
But "# chmod -x /etc/hotplug/scsi.agent" solved the problem.I believe that at 2.6.5 stable they will have fixed it.

Last edited by destin; 04-01-2004 at 09:26 AM.
 
Old 04-01-2004, 10:06 AM   #4
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 745

Rep: Reputation: 52
sysfs is built in to the 2.6 series kernel.
What is missing is the directory /sys which will not exist unless you create it yourself.
(at least until distro's based on the new kernel series are released).
You also need an entry in /etc/fstab.


1. Give sysfs a mount point

mkdir /sys

2. Put an entry in /etc/fstab

sysfs /sys sysfs defaults 0 0

The reason that everything still works despite the error messages, is that sysfs works to a large extent in parallel with proc at the moment, while the new kernel evolves.

Documentation about this is scarce, but you may wish to read /Documentation/filesystems/sysfs.txt in your kernel sources, but it really doesn't help much.

Still you can get rid of the error messages by following the points 1 & 2 above.

tobyl
 
Old 04-01-2004, 05:11 PM   #5
destin
LQ Newbie
 
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tobyl
sysfs is built in to the 2.6 series kernel.
What is missing is the directory /sys which will not exist unless you create it yourself.
(at least until distro's based on the new kernel series are released).
You also need an entry in /etc/fstab.


1. Give sysfs a mount point

mkdir /sys

2. Put an entry in /etc/fstab

sysfs /sys sysfs defaults 0 0

The reason that everything still works despite the error messages, is that sysfs works to a large extent in parallel with proc at the moment, while the new kernel evolves.

Documentation about this is scarce, but you may wish to read /Documentation/filesystems/sysfs.txt in your kernel sources, but it really doesn't help much.

Still you can get rid of the error messages by following the points 1 & 2 above.

tobyl
that works too
 
Old 04-04-2004, 08:34 AM   #6
mrpdaemon
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
2.6.5 removes the error messages when a sysfs mountpoint does not exist.
 
  


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
Mass storage device USB xeebeeeeeee Linux - Hardware 10 02-13-2008 12:11 PM
USB Mass storage Device purefan Linux - Hardware 15 06-06-2005 01:56 PM
usb - mass storage device d1l2w3 Mandriva 7 01-10-2005 10:10 PM
USB Mass Storage Device ebasi Linux - Hardware 2 12-23-2004 02:06 PM
Usb mass storage device laguna Linux - Hardware 4 08-12-2002 02:16 AM


All times are GMT -5. The time now is 12:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration