-   Ubuntu (
-   -   gamin / gam_server prevents umounting drives / partitions (

ender42 01-23-2006 12:59 AM

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

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:

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:

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?)
recommends what I've been doing, find the process id via fuser and kill it. Do I need to restart gamin/gam_server?
suggests: 'killall -9 gam_server && umount /my/mountpoint'

I finally got this forum to work:
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 01:12 AM

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


sudo umount /dev/hdx

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