LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2007, 07:42 AM   #1
xanax
Member
 
Registered: Mar 2006
Distribution: Debian
Posts: 34

Rep: Reputation: 15
umount


How to umount partition when someone or something is using it ?? How do i know what proccess or whitch user is using it ?? Is option -f good for this ??
What will happen when some program is writing to /mnt/drive and i'll umount it with -f option. Will it write to /mnt/drive still but in the root drive ??
 
Old 04-27-2007, 08:44 AM   #2
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
You can't really unmount directories if they're in use. You need to end or kill the processes using files in those directories. Use the lsof command to find what processes are using a particular file.
 
Old 04-27-2007, 10:04 AM   #3
mma8x
Member
 
Registered: Jul 2004
Posts: 164

Rep: Reputation: 30
fuser is another command that will tell you what's using the drive.
 
Old 04-27-2007, 10:59 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
And to kill the process you'd use fuser -k [directory].
 
Old 04-29-2007, 02:38 AM   #5
xanax
Member
 
Registered: Mar 2006
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
lsof and fuser were just what i was looking for. Thanks guys problem solved.
 
  


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
cant umount binary_0011 Linux - Newbie 6 04-24-2006 03:20 AM
how to umount / taiwf Linux - General 13 08-05-2005 12:40 AM
umount cd in use provkitir Linux - Newbie 3 01-29-2005 07:09 PM
is it ok to use umount -l ? ewto Linux - General 5 10-21-2003 01:57 AM
cannot umount... ??? spyghost Linux - Software 9 09-06-2003 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 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