LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2009, 06:52 PM   #1
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 180

Rep: Reputation: 19
gam_server and mounting


I have usb devices that I mount into the system by placing the item
Code:
/dev/sdb1     /mnt/usb      auto      defaults
into my /etc/fstab file.

Then I mount the drive and look at the files or pictures within it with kde4 (slackware-current), possibly gwenview or whatever file viewer I have there.

Then I want to take the usb drive out, and type

Code:
umount /mnt/usb/
and the computer tells me the drive is busy, and to check lsof. So I

lsof | grep /mnt/usb

and find out that gam_server has taken control of my /mnt/usb directory, and I can no longer unmount my drive manually. I then

Code:
ps aux | grep gam_server
and kill the gam_server so I can manually unmount my usb drive. I shouldn't need to do this.

There are two solutions I can see about:

Not using any KDE program to browse the directory

or

Somehow turning the gam_server off (Whatever the gam_server is)

What can anyone tell me about the gam_server?
 
Old 08-11-2009, 06:58 PM   #2
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64 Current
Posts: 1,058

Rep: Reputation: 143Reputation: 143
Maybe this can help:

http://www.gnome.org/~veillard/gamin/config.html
 
Old 08-11-2009, 11:59 PM   #3
shotwellj
Member
 
Registered: Jul 2005
Location: Tempe, AZ
Distribution: Slackware
Posts: 66

Rep: Reputation: 15
Is it even necessary, in your situation, to use fstab? I think hal would handle something like a usb drive. This is probably not related to your gam_server issue; just pointing it out.

It took me a little bit of time before I realized hal was working as intended and I was doing a lot of unnecessary work.

Regards,
Jacob
 
Old 08-12-2009, 12:52 AM   #4
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 180

Original Poster
Rep: Reputation: 19
hal creates the device node /dev/sdb1 which contains the filesystem. But it doesn't know how or where to actually connect the filesystem to my root. (Maybe I could look into that). But more importantly, it CANNOT know that it needs to unmount my filesystem just before I take out the usb drive without me telling it that I would like it to do so. I MUST issue a command of some sort to unmount it, and the fstab/mount/unmount command seems easiest to me. I just type 'umount /mnt/usb' (When it works of course).


And thanks for the link, I'll see if a configuration file will help me on this.

[edit] or maybe that's udev (not hal) I'm a bit unsure of the difference really [/edit]

Last edited by rigelan; 08-12-2009 at 01:10 AM.
 
Old 08-12-2009, 06:51 PM   #5
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 180

Original Poster
Rep: Reputation: 19
I created a file /etc/gamin/gaminrc

and in it I placed the commands

Code:
notify /mnt/local*
poll /mnt/local*
to overwrite the default of /mnt and /media (/mnt/local* doesn't correspond to any actual directory)

just merely writing the file with

Code:
notify
poll
did not overwrite the default.

AND > > >

It was successful, and I was able to open kde up in the /mnt/usb directory, close down kde and unmount the usb drive using the simple 'umount /mnt/usb' command. Thanks
 
Old 08-12-2009, 07:48 PM   #6
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64 Current
Posts: 1,058

Rep: Reputation: 143Reputation: 143
^^ Great ^^
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gam_server? k3nn0n Linux - Networking 19 06-18-2008 05:20 PM
What is causing gam_server to start? rkelsen Slackware 3 07-11-2007 06:01 AM
gam_server: CPU Obese jonursenbach Ubuntu 0 08-09-2006 04:12 PM
gam_server gamin crxssi Linux - General 3 04-30-2005 08:05 AM
gam_server? k3nn0n Fedora 1 09-23-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration