Solved Can't mount or play DVD

I'm running FreeBSD 10.1-RC3 64bit. I can't seem to mount or play a DVD. I can't mount my USB stick either.

Contents of /etc/rc.conf:
Code:
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
moused_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
hald_enable="YES"
dbus_enable="YES"
#kdm4_enable="YES"
pf_enable="YES"
pf_rules="/etc/pf.conf"
pflog_enable="YES"
pflog_loggile="/var/log/pflog"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
linux_enable="YES"
devfs_system_ruleset="localrules"

Contents of /etc/devfs.conf:
Code:
# Commonly used by many ports
#link  cd0  cdrom
link  cd0  dvd

# Allow a user in the wheel group to query the smb0 device
[localrules=5]
add path 'da*'  mode 0660 group operator
add path 'cd*'  mode 0666 group operator
add path 'acd*' mode 0660 group operator

Contents of /etc/sysctl.conf:
Code:
security.bsd.see_other_uids=0
hw.psm.synaptics.vscroll_hor_area=1300
vfs.usermount=1

Contents of /etc/fstab:
Code:
# Device  Mountpoint  FStype  Options Dump  Pass#
/dev/ada0p2  /  ufs  rw  1  1
/dev/ada0p3  none  swap  sw  0  0
proc  /proc  procfs  rw  0  0
linproc  /compat/linux/proc  linprocfs  rw 0 0
/dev/cd0  /media/cdrom  cd9660  rw,noauto 0 0

I created the directory /media/cdrom with:
Code:
drwxr-xr-x root  operator
My groups are wheel and operator.
 
Thanks. How do I go about adding this mount_msdosfs -u someuser -g operator /dev/da0s1 /mnt to /etc/fstab? I have multiple USB ports.
 
The options must be entered in the options field with commas. The mount(1) man page shows an example. Roughly:
Code:
/dev/da0s1   /mnt   msdosfs   -u=someuser,-g=operator,noauto   0   0

Notes:
  1. Multiple ports is not significant, the device name is dynamic. Still, it is not guaranteed that the device will appear at the same address every time. Dynamic devices can be handled with devd(8).
  2. noauto is added there in case the device is detected with a different address, so the mount would fail at boot.
  3. The preferred form is mount -t msdosfs /dev/da0s1 /mnt rather than using the individual mount_* programs.
 
I can't get mount_msdosfs -u someuser -g operator /dev/da0s1 /mnt or mount -t msdosfs /dev/da0s1 /mnt to work as a user.
 
I fixed mounting as user from the command line but KDE still won't let me mount it from the Device Notifier.
 
When I try to mount my USB drive in Dolphin, I get this
Code:
An error occurred while accessing '7.5 GiB Hard Drive', the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-removable no <-- (action, result)
 
I've fixed the problem with KDE mounting USB drives.
  1. Start KDE from /etc/rc.conf.
  2. Edit /usr/local/etc/PolicyKit/PolicyKit.conf
Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
  <match user="root">
   <return result="yes"/>
  </match>
  <define_admin_auth group="wheel"/>

  <match action="org.freedesktop.hal.storage-mount-removable">
  <match user="someuser">
    <return result="yes"/>
  </match>
  </match>
  <match action="org.freedesktop.hal.storage-mount-fixed">
       <match user="someuser">
    <return result="yes"/>
  </match>
  </match>
  <match action="org.freedesktop.hal.storage-eject">
  <match user="someuser">
    <return result="yes"/>
  </match>
  </match>
</config>
 
Back
Top