Hi, I have problem unmounting external FAT32-formatted USB drive on 10.0-RELEASE-p1 (with XFCE): pacija at mephala:~ % umount /usr/home/pacija/mnt umount: unmount of /usr/home/pacija/mnt failed: Device busy lsof /usr/home/pacija/mnt gives no output. I am not under mounted part in terminal or Thunar, I have no su session left there. I am mounting it as user, here are relevant lines: pacija at mephala:~ % sudo gpart show da5 => 34 975400893 da5 GPT (465G) 34 975400893 1 mbr (465G) pacija at mephala:~ % mount /dev/ada0p2 on / (ufs, local, journaled soft-updates) devfs on /dev (devfs, local, multilabel) tmpfs on /tmp (tmpfs, local) procfs on /proc (procfs, local) fdescfs on /dev/fd (fdescfs) data on /data (zfs, local, nfsv4acls) data/pacija on /usr/home/pacija/data (zfs, local, noatime, nfsv4acls) /dev/da5p1 on /usr/home/pacija/mnt (msdosfs, local, nosuid, mounted by pacija) pacija at mephala:~ % cat /etc/sysctl.conf kern.ipc.shm_allow_removed=1 vfs.usermount=1 pacija at mephala:~ % cat /etc/devfs.rules [system=10] add path 'usb/*' mode 0660 group operator add path 'cd*' mode 0666 add path 'da*' mode 0666 add path 'pass*' mode 0666 add path 'xpt*' mode 0666 pacija at mephala:~ % cat /etc/rc.conf ... devfs_system_ruleset="system" ... pacija at mephala:~ % cat .gaminrc poll /home/pacija/mnt/* Any advices? -- Marko Cupa?
2014-05-05 13:30 GMT+02:00 Marko Cupa? <marko.cupac at mimar.rs>:> Hi, > > I have problem unmounting external FAT32-formatted USB drive on > 10.0-RELEASE-p1 (with XFCE): > > pacija at mephala:~ % umount /usr/home/pacija/mnt > umount: unmount of /usr/home/pacija/mnt failed: Device busy > > lsof /usr/home/pacija/mnt gives no output. > > I am not under mounted part in terminal or Thunar, I have no su session > left there. > > I am mounting it as user, here are relevant lines: > > pacija at mephala:~ % sudo gpart show da5 > => 34 975400893 da5 GPT (465G) > 34 975400893 1 mbr (465G) > > pacija at mephala:~ % mount > /dev/ada0p2 on / (ufs, local, journaled soft-updates) > devfs on /dev (devfs, local, multilabel) > tmpfs on /tmp (tmpfs, local) > procfs on /proc (procfs, local) > fdescfs on /dev/fd (fdescfs) > data on /data (zfs, local, nfsv4acls) > data/pacija on /usr/home/pacija/data (zfs, local, noatime, nfsv4acls) > /dev/da5p1 on /usr/home/pacija/mnt (msdosfs, local, nosuid, mounted by > pacija) > > pacija at mephala:~ % cat /etc/sysctl.conf > kern.ipc.shm_allow_removed=1 > vfs.usermount=1 > > pacija at mephala:~ % cat /etc/devfs.rules > [system=10] > add path 'usb/*' mode 0660 group operator > add path 'cd*' mode 0666 > add path 'da*' mode 0666 > add path 'pass*' mode 0666 > add path 'xpt*' mode 0666 > > pacija at mephala:~ % cat /etc/rc.conf > ... > devfs_system_ruleset="system" > ... > > pacija at mephala:~ % cat .gaminrc > poll /home/pacija/mnt/* > > Any advices? > -- > Marko Cupa?Which is the output of fuser -c /dev/da5p1?
> Hi, > > I have problem unmounting external FAT32-formatted USB drive on > 10.0-RELEASE-p1 (with XFCE): > > pacija at mephala:~ % umount /usr/home/pacija/mnt > umount: unmount of /usr/home/pacija/mnt failed: Device busy > > lsof /usr/home/pacija/mnt gives no output. > > I am not under mounted part in terminal or Thunar, I have no su session > left there. > > I am mounting it as user, here are relevant lines: > > pacija at mephala:~ % sudo gpart show da5 > => 34 975400893 da5 GPT (465G) > 34 975400893 1 mbr (465G) > > pacija at mephala:~ % mount > /dev/ada0p2 on / (ufs, local, journaled soft-updates) > devfs on /dev (devfs, local, multilabel) > tmpfs on /tmp (tmpfs, local) > procfs on /proc (procfs, local) > fdescfs on /dev/fd (fdescfs) > data on /data (zfs, local, nfsv4acls) > data/pacija on /usr/home/pacija/data (zfs, local, noatime, nfsv4acls) > /dev/da5p1 on /usr/home/pacija/mnt (msdosfs, local, nosuid, mounted by > pacija) > > pacija at mephala:~ % cat /etc/sysctl.conf > kern.ipc.shm_allow_removed=1 > vfs.usermount=1 > > pacija at mephala:~ % cat /etc/devfs.rules > [system=10] > add path 'usb/*' mode 0660 group operator > add path 'cd*' mode 0666 > add path 'da*' mode 0666 > add path 'pass*' mode 0666 > add path 'xpt*' mode 0666 > > pacija at mephala:~ % cat /etc/rc.conf > ... > devfs_system_ruleset="system" > ... > > pacija at mephala:~ % cat .gaminrc > poll /home/pacija/mnt/* > > Any advices?Greetings, I frequently experience similar behavior when running x11-wm/xfce4. I only investigated the matter long enough to determine that there weren't any pending writes to the mount points. After discovering that this was going to be a consistent problem, with no /reasonable/ cause. I simply issue: umount -f /some/mount-point which never causes any problem, and always dis-mounts the mount points. --Chris> -- > Marko Cupa? > _______________________________________________ > freebsd-stable at freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org" > >