LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   gamin / gam_server prevents umounting drives / partitions (http://www.linuxquestions.org/questions/ubuntu-63/gamin-gam_server-prevents-umounting-drives-partitions-406774/)

ender42 01-22-2006 11:59 PM

gamin / gam_server prevents umounting drives / partitions even as root
 
I've kept getting errors when trying to umount a drive or a partition, after I have closed all their windows. Even from the commandline, and even as root.

root@machine:~# umount /dev/hdb1
umount: /mountpoint: device is busy
umount: /mountpoint: device is busy
root@machine:~#

I've used 'fuser /mountpoint' and 'ps aux | grep psnumberreturned' and found it to be /usr/lib/gamin/gam_server .

Suppossedly this was fixed in 0.0.25 according to:
http://bugzilla.gnome.org/show_bug.cgi?id=168175

apt-get show gamin
Description: File and directory monitoring system
Gamin is a file and directory monitoring system defined to
be a subset of the FAM (File Alteration Monitor) system.

Filename: pool/main/g/gamin/gamin_0.0.26-0ubuntu3_i386.deb

The debian package appears to not be the most current version:
http://www.gnome.org/~veillard/gamin...n-0.1.7.tar.gz

I'd like to know how to tickle the gam_server into releasing the drive so that I can umount it. Hints on repackaging the most current gamin into Debian (and boy, what will that break on me?)

http://lists.centos.org/pipermail/ce...ay/006610.html
recommends what I've been doing, find the process id via fuser and kill it. Do I need to restart gamin/gam_server?

http://www.slackercentral.com/sckb/i..._for_New_Users
suggests: 'killall -9 gam_server && umount /my/mountpoint'

I finally got this forum to work:
http://ubuntuforums.org/printthread.php?t=57855
But no real information there...



I had luck killing the process once, but I have no idea if that's causing further errors (I've had more issues since then).

It appears to only occur when I'm using the GUI to access the drive/partition in question. When I copied files via commandline from a USB drive to the new HD, I didn't have an issue.

Now, if I could just get 'apt-get -u upgrade' to not automatically mount my partitions and drives and open GUI'd folders to them, then I'd have a work-around... :D

I could email bugs and stuff for gamin, do you think that I should - or is there something easy that I'm missing?

morphodone 01-23-2006 12:12 AM

i have no idea what gam_server is but...
you should be able to umount the drive with sudo

Code:

sudo umount /dev/hdx


All times are GMT -5. The time now is 05:48 AM.