|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
mounting/unmounting CD and USBkey
Hi guys,
I've got FreeBSD + KDE. Currently I mount the CD with the following command Code:
mount -t cd9660 /dev/acd1 /mnt/cd Code:
mount -t msdosfs /dev/da0s1 /mnt/flash Is there a way to mount/unmount the CD drive and the USBkey so I can remount them without having to reboot? Thanks in advance, Corneliu |
|
|||
umount <device_name>
or umount <mount_path> |
|
|||
If you get a "device busy" message, it means you're probably active in the devices mount point.. change to a different directory and ensure no other process is read/writing/accessing files on the drive.
|
|
||||
You may want to set-up KDE so it will automatically mount and unmount your CDs / media. Have a look at this How-To.
|
|
|||
Thank you all.
When I try to unmount this is what I get: Code:
freebsd# unmount -l /dev/da0s1 unmount: Command not found. freebsd# I tried the tutorial to automount but I didn't succeed. I followed all the steps and everything seemed fine. Still no automounting... |
|
|||
The tutorial for mounting stuff automatically.
Here is what I did: Code:
freebsd# find `kde-config --prefix`/lib/kde3/media_propsdlgplugin.so && echo "HAL is enabled." /usr/local/lib/kde3/media_propsdlgplugin.so HAL is enabled. freebsd# Code:
freebsd# vi /etc/devfs.rules #MYBOX's rules # [mybox_rules=100] add path 'acd0' mode 666 add path 'cd0' mode 666 ~ /etc/devfs.rules: 6 lines, 85 characters. freebsd# Not sure it is OK... Code:
freebsd# vi /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ad4s1b none swap sw 0 0 /dev/ad4s1a / ufs rw 1 1 /dev/ad4s1e /tmp ufs rw 2 2 /dev/ad4s1f /usr ufs rw 2 2 /dev/ad4s1d /var ufs rw 2 2 ~ /etc/fstab: unmodified: line 1 Code:
freebsd# vi /etc/rc.conf # -- sysinstall generated deltas -- # Mon May 19 22:21:55 2008 # Created: Mon May 19 22:21:55 2008 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname="freebsd.gateway.2wire.net" ifconfig_rl0="DHCP" ipv6_enable="YES" keymap="us.iso" linux_enable="YES" defaultrouter="192.168.2.1" devfs_system_ruleset="mybox_rules" dbus_enable="YES" hald_enable="YES" ~ /etc/rc.conf: unmodified: line 1 Code:
freebsd# vi /usr/local/etc/PolicyKit/PolicyKit.conf <?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> <match action="org.freedesktop.hal.storage.mount-removable"> <match user="corneliu"> <return result="yes"/> </match> </match> </config> ~ ~ ~ ~ ~ ~ /usr/local/etc/PolicyKit/PolicyKit.conf: unmodified: line 1 |
|
|||
The command is "umount" not "unmount", pay extra attention.. type in commands exactly as you see them.
|
|
|||
Thanks, sorry
|
|
|||
Thank you all,
Trying to set the auto-mount I messed up the system so I had to reinstall FreeBSD. The umount command works great, so I'll stick with it for a while untill I get the courrage to try the auto-mount stuff again. |
|
|||
I tried using the howto and have a problem with policykit. I believe that all the required daemons are running and properly installed. However, I cannot automount as a regular user. The following is definitely not recommended, but should indicate where the problem lies. Replacing
Code:
<match action="org.freedesktop.hal.storage.mount-removable"> <match user="corneliu"> <return result="yes"/> </match> </match> Code:
<match user="corneliu"> <return result="yes"/> </match> |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mounting external XFS HDD | rativid | OpenBSD General | 5 | 3rd September 2010 02:31 PM |
USB icon after mounting | andycapp | FreeBSD General | 0 | 23rd October 2008 10:40 PM |
Mounting | sniper007 | FreeBSD General | 7 | 2nd July 2008 06:50 AM |
mounting UFS | hirohitosan | Other BSD and UNIX/UNIX-like | 2 | 27th June 2008 02:40 PM |
Mounting a second serial hd | keyboard112 | Other BSD and UNIX/UNIX-like | 4 | 12th May 2008 08:06 AM |