LinuxQuestions.org
Register a domain and help support LQ
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 05-27-2004, 10:09 PM   #1
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
udev+hotplug+2.6.6=questions


I recently moved over to udev and things went pretty smoothly. I do have a few questions, though and was wondering if anyone could offer some help.

My scanner will only seem to work for root. This is a permissions problem. To get the scanner to work for everyone, I need to adjust the permissions. If I change the file /proc/bus/usb/002/002 to give more permissions with the command.
Code:
chmod 777 /proc/bus/usb/002/002
The scanner will work. I'm sure that I can get away with more restrictive permissions, but I'll experiment with that later. The problem is that when I re-boot, the permissions for /proc/bus/usb/002/002 revert back to 644.

Now I could change the permissions every time I want to use the scanner. I could even add to /etc/rc.d/rc.local to make the change happen after every reboot. My guess is that this is probably not the correct way to go about it. What is the recommended method?

My second question is very similar. Using udev, the /dev directory is automatically populated at boot time. I have a dvd-rom and a cd-rw. The dvd-rom is /dev/hdd and the cd-rw is /dev/hdc. Two symlinks are made when I re-boot, /dev/dvd and /dev/cdrom. Both point to /dev/hdd. I would like /dev/cdrom to point to /dev/hdc. Of course, I can manually change the link or add to /etc/rc.d/rc.local to acheive this, but once again I don't think that this is the preferred method. Any ideas on this.

As a side note, moving on to udev has been pretty smooth. Had to change my fstab a bit as some of the symlinks I was using aren't created. Had to add audio, video, and cdrom groups to /etc/groups. SWareT helped out with that. Had to add users to the appropriate groups to get everything running smooth. The only issue that I currently have, other than those listed, is that when I mount /dev/hdc or /dev/hdd, they appear on my desktop as hard drives and not optical devices. Any ideas on fixing that would be great, too.

Thanks in advance for your help,
 
Old 05-31-2004, 06:05 PM   #2
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Original Poster
Rep: Reputation: 49
Anyboby?
 
Old 05-31-2004, 06:30 PM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
/proc is virtual file system, it does not exists physically in the drive, that's why the permission are reset after reboot. I have no idea to set permissions without a script like rc.local, sorry
 
Old 05-31-2004, 06:36 PM   #4
lems
Member
 
Registered: May 2004
Distribution: Slackware x86/x86_64/ARM, NetBSD
Posts: 159

Rep: Reputation: 51
Regarding your DVD/CD-ROM question:
Code:
BUS="ide", KERNEL="hdc", NAME="%k", SYMLINK="cdrom cdroms/cdrom%n"
BUS="ide", KERNEL="hdd", NAME="%k", SYMLINK="dvd cdroms/cdrom%n"
Save this in /etc/udev/rules.d/10-local.rules
(Taken from Writing udev rules)

Your scanner problem is something which bothers me as well.
In the sane-usb manpage I found this:
Code:
none /proc/bus/usb usbfs defaults,devmode=0666  0  0
Unfortunately, this doesn't work for me..

Last edited by lems; 05-31-2004 at 06:39 PM.
 
Old 05-31-2004, 09:43 PM   #5
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Original Poster
Rep: Reputation: 49
Thanks Lems. I'll try it out & let you know how it goes.
 
  


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
iPod not mounting with sbp2 / udev / autofs / hotplug nakko Linux - Hardware 3 06-13-2005 06:50 PM
Udev anyone? yanik Debian 5 01-05-2005 10:02 AM
Help with udev sls Debian 4 12-28-2004 03:06 PM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 02:37 PM
[kernel 2.6.5] hotplug/udev and compact flash rapazp Linux - Laptop and Netbook 0 04-12-2004 04:03 PM


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