LinuxQuestions.org
Help answer threads with 0 replies.
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-26-2006, 08:28 AM   #1
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Question Help with udev and usb stick


Hey guys, it's been a while! Anyways what I am trying to do is to have udev assign my usb stick to a static device block so when I mount my devices via fstab I don't have to guess what device is the usb stick, I have a couple devices that can be considered as mass storage devices and it sometimes gets confusing when I want to know what device is what after they have been pulled out and plugged back in.

Does anyone have any rules I can use that will do this?





Thanks.
 
Old 04-26-2006, 09:01 AM   #2
yuchai
Member
 
Registered: Jan 2005
Location: New York, NY
Distribution: Slackware 13.0
Posts: 56

Rep: Reputation: 15
Check out the following link - i've used it to make appropriate static device links for quite a few devices (usb stick, camera, removable hard drive)

http://reactivated.net/writing_udev_rules.html
 
Old 04-26-2006, 03:27 PM   #3
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
For mine I made udev rules to create automatic symlinks because of how the kernel device names can change. Try something like this

BUS="USB", SYSFS{Product}="***", NAME="%k", SYMLINK="JumpDrive"

*** is the name of the device as the kernel detects it. Two easy ways to find it are:
the output of dmesg
udevinfo -a -p $(udevinfo -q path -n /dev/sda)

The doc that yuchai pointed you to is very good.
 
Old 04-28-2006, 03:22 AM   #4
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Original Poster
Rep: Reputation: 34
Thanks guys All fixed!
 
  


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
Udev usb issues exvor Linux - Software 1 06-25-2005 11:27 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
udev and usb mouse ajvbun Fedora 1 11-30-2004 02:07 AM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 01:15 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 07:58 PM

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

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