View Single Post
  #6   (View Single Post)  
Old 15th May 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Quote:
Originally Posted by Nirbo View Post
Also, you should edit your /etc/fstab file, and add all of your CD drives with their ATAPI/CAM device names... Essentially, the easiest way to do this is copy your /dev/acd0 line, paste it to the end of the file, and change it to cd0.

e.g.
Code:
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
/dev/cd0                /cdrom          cd9660  ro,noauto       0       0
NOTE: If you use k3b in KDE or any other desktop with HAL enabled (default on KDE), do not add these fstab entries. Doing so will prevent HAL from mounting your CDs/DVDs.
Quote:
Originally Posted by Nirbo View Post
NOTE2: These permissions will reset after rebooting, so you must add the following to /etc/devfs.conf so the permissions are set properly at boot

NOTE4: One thing recommended by the k3b port is to add 'devd_enable="YES"' to /etc/rc.conf... it seems like a good idea to me ... It helps give permanence to the changes in /etc/devfs.conf

Code:
perm xpt0 0666
perm pass0 0666
Another way to deal with the permissions issue is to use rulesets. This is advantageous if you use removable drives. Rulesets are defined in /etc/devfs.rules and you may have to create this file if it does not already exist. For more information see devfs(8) and devfs.rules(5). Here is an example /etc/devfs.rules that will set read/write permissions for the devices required for k3b to operate as a non-privileged user:
Code:
# MYBOX's rules
#
[mybox_rules=100]
add path 'acd*' mode 666
add path 'cd*' mode 666
add path 'pass*' mode 666
add path xpt0 mode 666
Then edit /etc/rc.conf and add:
Code:
devfs_system_ruleset="mybox_rules"
Reply With Quote