LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-06-2005, 05:20 PM   #1
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Konqueror keeps mount points locked


Every time I leave a Konqueror window open with a mount point (of Samba) I can't umount (as user) it without closing the Konqueror window first. Is there a trick to stop Konqueror from locking mount points?
 
Old 08-06-2005, 05:28 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The mount point is considered 'in use' by the kernel at this point. Konq doesn't lock anything, it just runs in the directory you asked it to go to.
 
Old 08-06-2005, 06:29 PM   #3
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
It's not the kernel, it's Konqueror. Only when an instance of Konqueror is running I can't umount. I already had to prevent KDE from running a hidden background process of Konqueror to be able to umount Samba shares. This behaviour doesn't happen with Krusader, but I like to use both.

Anyone?

Last edited by Moloko; 08-06-2005 at 06:30 PM.
 
Old 08-06-2005, 06:47 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I believe Konquerer keeps its working directory in the directory being viewed, which causes the kernel to keep it locked.
 
Old 08-07-2005, 11:16 AM   #5
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
I guess so. Is there a fix?

Last edited by Moloko; 08-07-2005 at 11:32 AM.
 
Old 08-07-2005, 01:07 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Define "a fix". This is the intended/designed behavior. I think the only way around it would be major source code changes.
 
Old 08-07-2005, 04:41 PM   #7
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
I appreciate your efforts, but we're not talking about the same thing. It doens't happen with Krusader, so it must be a Konqueror thingy. Krusader is a file browser as well. It can't be the kernel.
 
Old 08-07-2005, 05:06 PM   #8
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by Matir
This is the intended/designed behavior. I think the only way around it would be major source code changes.
I honestly don't know if it's intended design but it is most certainly bad design. Very bad design. In Mac OS when you unmount a removable volume all the finder windows that access that volume are automatically closed. Now _that's _ good design.

Moloko, I have the same problem which eventually prompted me to not use KDE any more (gnome had the same problem btw). I noticed though, that whenever a konqueror window was open it was not the konqueror process that locked the device but the fam daemon (file alteration monitor). Maybe there's a way to install konqueror without famd (might not be possible without breaking dependencies, though).
You can check which process is acessing the volume with lsof. If it indeed is famd try uninstalling/disabling that.

I have yet to find a solution for this. Cause fam is a nice idea: It let's gui apps (or any apps for that matter) display changes on the filesystem in real time. If only it worked... At the moment I've got more important things to fix so I'm just waiting for a major fam upgrade to go back to KDE (if at all).
 
Old 08-07-2005, 05:42 PM   #9
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
demian > thx, clear answer. I'll look into famd soon and try the lsof tool. Although KDE isn't perfect I like it for the other 99% good parts , but I hardly use KDE apps. It's just the interface for me.

I do work on a Mac occasionally and it rocks Still I prefer Linux and will always have a console running on one of the virtual desktops.
 
Old 08-07-2005, 10:30 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I suppose you could consider it a bad design, but the flipside is this: if I am working on a file and accidentally unmount the wrong volume, I don't want it to close my editor. Same sort of thing applies. I personally like the "you're still using this volume" checking. Also, I believe you can override it with umount -f, though I'll admit I haven't tested that.
 
  


Reply



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
help with mount points rmanocha Linux - Software 12 10-26-2003 01:32 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM
locked mount points PrimaryDataLoop Linux - General 9 05-06-2003 12:11 PM
Mount Points? Mr_Floppy4 Linux - General 2 10-14-2002 10:03 PM
mount points... Jeffrey Linux - General 6 02-24-2001 12:09 PM

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

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

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