Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB hotplug not creating /dev entries [Solution included]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
adelaney
n00b
n00b


Joined: 14 Nov 2002
Posts: 15

PostPosted: Mon Jan 13, 2003 12:04 pm    Post subject: USB hotplug not creating /dev entries [Solution included] Reply with quote

Simiilar problems to this have been posted, but I can't find an answer to this particular problem.

I have a USB mass storage device, when I plug it in it gets registered as in /proc/bus/usb and the relevent scsi modules are loaded into the kernel. It does not however create a /dev entry for a scsi device, like /dev/sda1.

Question: How do I set up hotplugging such that it creates /dev enteries for the USB devices?

Note: This used to work last week, I don't know what changed since then (possibly the hotplug scripts)

Code:

root@guevara docs # lsmod
Module                  Size  Used by    Not tainted
sr_mod                 14584   0  (autoclean) (unused)
ide-cd                 30884   0  (autoclean)
cdrom                  33376   0  (autoclean) [sr_mod ide-cd]
usb-storage            23628   0
scsi_mod               88580   2  [sr_mod usb-storage]
usb-uhci               23116   0  (unused)
usbcore                66752   1  [usb-storage usb-uhci]
iptable_filter          1740   0  (unused)
ip_tables              13880   1  [iptable_filter]
pcnet32                16224   1
mii                     1280   0  [pcnet32]


Last edited by adelaney on Mon Jan 13, 2003 12:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
adelaney
n00b
n00b


Joined: 14 Nov 2002
Posts: 15

PostPosted: Mon Jan 13, 2003 12:49 pm    Post subject: [SOLUTION] Reply with quote

It seems that /etc/modules.devfsd only allows sd_mod to register /dev/sd* entries and sd_mod is not modprobed for some reason. Anyway the fix is to
Code:

$modprobe sd_mod


I can't fix the problem fully as I don't have the sk1llz. Does someone know what's going on here?
Back to top
View user's profile Send private message
SNo0py
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 270
Location: Vienna, Austria

PostPosted: Wed Mar 26, 2003 7:57 pm    Post subject: Reply with quote

Have you been solving this problem?

modprobe doesn't work for me:
Code:
bash-2.05b# modprobe sd_mod
modprobe: Can't locate module sd_mod


Any solutions?
_________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Wed Mar 26, 2003 8:11 pm    Post subject: Reply with quote

Sorry, Snoopy, but I have to cp your sign! Is wonderful!
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
SNo0py
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 270
Location: Vienna, Austria

PostPosted: Thu Mar 27, 2003 7:51 am    Post subject: Reply with quote

cerri wrote:
Sorry, Snoopy, but I have to cp your sign! Is wonderful!

n.p.
_________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
Back to top
View user's profile Send private message
drakos7
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 294
Location: Rockville, MD, USA, Earth, Sol

PostPosted: Fri Apr 25, 2003 6:05 pm    Post subject: Reply with quote

Any word on getting this to work. I have a sony memorystick. Whenever I plug it in it registers in dmesg but I do not get a /dev entry as far as I can tell. All the appropriate modules are loaded.
Laptop: Sony GRX550
Back to top
View user's profile Send private message
SNo0py
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 270
Location: Vienna, Austria

PostPosted: Sat Apr 26, 2003 7:24 am    Post subject: Reply with quote

drakos7 wrote:
Any word on getting this to work. I have a sony memorystick. Whenever I plug it in it registers in dmesg but I do not get a /dev entry as far as I can tell. All the appropriate modules are loaded.
Laptop: Sony GRX550


I had the problem with the Hama Card-Reader. Comment from Hama: "should use the usb-storage.c" -> the reader gets detected (dmesg) but there is no device available -> no way -> throw it away!!! :( :( Don't by Hama!!!
_________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Wed Aug 13, 2003 10:39 am    Post subject: Hama-Issue Reply with quote

Hi,
SNo0py wrote:
drakos7 wrote:
Any word on getting this to work. I have a sony memorystick. Whenever I plug it in it registers in dmesg but I do not get a /dev entry as far as I can tell. All the appropriate modules are loaded.
Laptop: Sony GRX550


I had the problem with the Hama Card-Reader. Comment from Hama: "should use the usb-storage.c" -> the reader gets detected (dmesg) but there is no device available -> no way -> throw it away!!! :( :( Don't by Hama!!!

I also use a hama cardreader (better: I want to use it), but as you said:
that's not so easy!

dmesg detects my reader and when I plug in a memory stick /dev/scsi/host0/bus0/target0/ is created! I can mount the stick by typing:
Code:
mount -t usbfs /dev/scsi/host0/bus0/target0/ /mnt/cardreader/
but then I experience the same problem as described here (in German)!

The problem is that there are only some directorys mounted:
/mnt/cardreader/001 & .../002 (up to 004) filled with binary data I can't use!

Is there a solution so far?
Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
firaX
Apprentice
Apprentice


Joined: 23 Apr 2003
Posts: 175
Location: Munich, Germany

PostPosted: Wed Aug 13, 2003 11:42 am    Post subject: Reply with quote

sd_mod = SCSI DISK SUPPORT under SCSI in kernel :-) unless you activate it of course modprobe sd_mod wont work

btw you dont need ide-scsi to get a mem stick working, i got mine working having usb-storage,sd_mod + the basic usb modules :-)
Back to top
View user's profile Send private message
SNo0py
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 270
Location: Vienna, Austria

PostPosted: Wed Aug 13, 2003 11:44 am    Post subject: Reply with quote

I'll give it a try asap.
_________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Wed Aug 13, 2003 11:58 am    Post subject: Won't help Reply with quote

Hi,

I don't think that this will help!
I use sd_mod and NOT ide-scsi (I have the configuration that firaX mentioned), but this only shows binars data on my Hama reader (MemoryStick & Compact Flash Cards)

Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum