LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-10-2006, 12:41 AM   #1
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Rep: Reputation: 15
Cool How to setup a USB Device(s)


I have Slackware 10.2, I have an external DVD burner & a USB Hard Drive I'd like to be able to plug in when I want to use these devices. What is the proper way to set these up ?

Last edited by bsurfin; 10-10-2006 at 01:42 AM.
 
Old 10-10-2006, 01:42 AM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
It probably will depend which kernel you're using. Hopefully 2.6, which may have the usb drivers installed.

Most usb ext. devices show as /dev/sda1 etc.

Try cat /proc/bus/usb/devices. Do you see any device?
 
Old 10-10-2006, 09:15 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,686

Rep: Reputation: Disabled
USB devices are handled by udev. Have a look at /etc/udev/udev.config. If you want fixed names for your devices have a look at

http://www.reactivated.net/writing_udev_rules.html
http://ftp.kernel.org/pub/linux/util...tplug/udev-FAQ
 
Old 10-11-2006, 12:19 AM   #4
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
Hey BittaBrotha,
I tried the "cat /proc/bus/usb/devices". Do you see any device?
and I got a whole page worth. I still have kernel 2.4.31. Anyway I have no way at this time to copy that whole page here for you to look at, but yes it does say
S: Product=USB 2.0 Storage Device
I checked with my Windows XP system & under system information, then usb and it has the same serial number for this device.
it also listed my hp deskjet printer that I have working under slackware and also my scanner.
 
Old 10-11-2006, 12:26 AM   #5
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
JZL240I-U, don't I also have to do an entry in fstab ?
 
Old 10-11-2006, 12:47 AM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Rep: Reputation: 62
do you mean like this? i have this one my 10.2 box to overcome for usb mice and printer's permission issues

you mileage may vary

Quote:
As root, add a new group called 'usb':
Code:

groupadd -g 120 usb


then under your entry for usbfs in /etc/fstab make sure it looks exactly like this:
Code:

none /proc/bus/usb usbfs defaults,devgid=120,devmode=0664 0 0

then added the username's to the group and rebooted.
 
Old 10-11-2006, 02:11 AM   #7
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
NO, I think I need to add something to the /dev directory, then add a line that includes vfat in the fstab directory.
 
Old 10-11-2006, 02:28 AM   #8
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
Question, I have Slackware 10.2 and the 2.4.31 kernal, I even have my usb printer & Scanner working, Would
"/dev/sda1 /mnt/usbdrive vfat umask=0,user,iocharset=iso8859-1,codepage=850,noauto,quiet 0 0"
also work to setup a usb hard drive, and is that all I need to do to setup the device ? or what would you recommend ?
 
Old 10-11-2006, 11:04 PM   #9
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
I did fdisk -l and it was there /dev/sda1 .
I added "/dev/sda1 /mnt/usbdrive vfat umask=0,users,iocharset=iso8859-1,codepage=850,noauto,quiet 0 0" to the fstab and I got an error message, something like /mnt/usbdrive does not exist, so I clicked on the /mnt directory, right clicked, created a new folder, renamed it usbdrive, I went back to system icon and clicked, and vioala it now works great, I tweaked permissions and It is now working perfectly !

Thanks for the help guys...
 
Old 10-12-2006, 02:42 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,686

Rep: Reputation: Disabled
Quote:
Originally Posted by bsurfin
JZL240I-U, don't I also have to do an entry in fstab ?
No, that is handled by udev -- which possibly writes into /etc/mtab. No action is necessary analogous to mounting by hand where no entry is necessary either.

P.S.: Umm, I see from your last post that you got it to work that way. Good for you . If you follow the links I provided earlier, you'll see that udev will ad an icon to your desktop and mount the drive automatically when you plug it in while a fixed entry will produce an error during boot when your drive is not connected -- but do it any way it's okay for you.

Last edited by JZL240I-U; 10-12-2006 at 02:56 AM.
 
Old 10-12-2006, 07:29 PM   #11
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
I like the sound of it auto mounting, like you said, rather than the way I have it working now. I'll delete my fstab entry and try the /etc/udev/udev.config, I did try to follow your links earlier, but my problem is that I don't understand enough to really make sense of all that, but I'll keep on trying...
 
Old 10-13-2006, 02:41 AM   #12
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,686

Rep: Reputation: Disabled
Quote:
Originally Posted by bsurfin
...but my problem is that I don't understand enough to really make sense of all that, but I'll keep on trying...
Yeah, it is sometimes a little overwhelming, but on a whole it does work. So, don't let little things like a device driver daunt you and carry on. From my own experience I can tell, that one keeps learning and that is already a huge part of the fun.
 
Old 10-20-2006, 12:36 AM   #13
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
I opened kinfo center, it lists my linksys after installing Slackware 11.0, but under network it still does not show it, but shows my other slow lan card, is there a way to get it to show ?
 
Old 10-20-2006, 02:43 AM   #14
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,686

Rep: Reputation: Disabled
I honestly don't know. Just open a new thread in the networking forum, the title of this one won't get you the exposure you need to attract the experts on this. Good luck.
 
Old 10-21-2006, 09:07 PM   #15
bsurfin
Member
 
Registered: May 2004
Location: Kalispell Montana
Distribution: Kubuntu ( Current Version )
Posts: 112

Original Poster
Rep: Reputation: 15
I'm still not finding any info "that works" for the 2.4 kernel, This weekend I'm going to try to install the 2.6 kernel, since http://www.reactivated.net/writing_udev_rules.html is geared towards the 2.6 kernel...
 
  


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
How to force kernel to use a USB 2.0-compatible device (ehci_hcd) as a USB 1.1 device eze Linux - Hardware 0 05-16-2006 06:24 AM
Trying to setup printer, what is Device and device URI ? M$ISBS Linux - Hardware 1 07-20-2005 12:44 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 04:22 PM
USB compactflash device setup woes. BBlalock Linux - Newbie 1 08-15-2002 07:58 AM


All times are GMT -5. The time now is 03:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration