LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2004, 04:27 AM   #1
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Rep: Reputation: 30
newbie: do i -really- have to reboot when switching usb ???


Hi, I'm running Linux kernel 2.4.22 on a older PC (PIII 600) and it has 2 usb ports with it.
1 usb port is connected with a webcam, the other one is connected with a printer.

it seems like to me whenever I wanna switch from printer usb port to a digitial camera usb port, my linux won't recongize it. i need to "reboot" the system first before it noticed my d-cam....

did I mis-config something??? thought usb port suppose to be respond in real time.


p.s: this kernel is come from mdk 9.2, and yes... i will move to kernel 2.6 when i have more free time :P

thank you
 
Old 12-30-2004, 05:00 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Nope you don't have to there's a program called hotplug that does this.
 
Old 12-30-2004, 05:27 AM   #3
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
ok, so i need to compile kernel for hotplug first right? or hotplug is a "program" that doesn't require kernel?
 
Old 12-30-2004, 06:03 AM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
kernel 2.6.9 has really good hotplug support, and the 2.6.10 it's supposed to be even better
might want to consider a patch or even recompile
if not, you could try inserting but, but i'm not suer how to do that
 
Old 12-30-2004, 06:18 AM   #5
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Try
Code:
# modprobe -r usb-storage
# modprobe usb-storage
or try different device names, eg /dev/sdb1 instead of /dev/sda1, etc, for mounting.
 
Old 12-30-2004, 06:18 AM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Isn't there a hotplug module as well?
 
Old 12-30-2004, 10:45 AM   #7
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
There's a hotplug program but I think it needs the hotplug kernel options as well. The package is just called "hotplug". The kernel options are under hotpluggable device IIRC in the device drivers part.
 
Old 12-30-2004, 06:09 PM   #8
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
hotplug isn't a module. It's a set of programs that detect usb, pci, etc, and load necessary modules. Personally, I don't use the program but just insert working modules (which I know work because I know my hardware). I am quite sure you already have "hotplug" because you can use your printer and camera. Back to your original question of avoiding rebooting, why don't you just try unloading and loading usb-storage (or trying /dev/sdb1, /dev/sdc1, ...)?

Last edited by beanerjo; 12-30-2004 at 06:15 PM.
 
Old 01-04-2005, 05:43 PM   #9
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
Hotplug is a rpm, you probably have to install it first. It is not in Mandrake 9.2 minimal install, you have to install it.
Also install usbview, it's rather useful when you plug and unplug USB things.
Also do "tail -f /var/log/syslog" while disconnect/reconnecting things, very useful infos.
 
  


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
Considering switching to Debian...newbie needs help :( silentwhispers Debian 7 12-30-2004 02:55 AM
Newbie to Linux. Was a Windows User NOW Switching to Mandrake. pangwl00 Mandriva 4 12-07-2004 09:55 AM
Newbie switching from Mandrake to Debian Micro420 Debian 3 08-27-2004 06:41 PM
Complete newbie KDE/Gnome switching question ajalan Mandriva 6 04-10-2004 05:38 PM
help a newbie switching operating systems kinghimself Linux - Newbie 6 11-09-2003 09:10 PM


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