LinuxQuestions.org
Help answer threads with 0 replies.
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 05-24-2011, 04:38 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
A question about mounten


Hi,

I want to delete a directory '/mnt/me' but got error message like:
Code:
rm: cannot remove `/mnt/me//ASendke/Listen/Status_Mtext.xls': Text file busy
I know this is because this directory is mounted.

How can I unmount this dir so I can delete it?

Thomas
 
Old 05-24-2011, 04:51 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you unmount a directory you can't delete a file in it. This error message means that the file you want to delete is opened by a program. You can find out which program has the file open with th lsof command.
 
Old 05-24-2011, 06:35 AM   #3
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
try
Code:
fuser /mnt/me//ASendke/Listen/Status_Mtext.xls
then run this to know the command name (replace xxxxxx with the process number given above):
Code:
ps -edf|grep xxxxxx
it will tell you which process is using that file. I bet it's OpenOffice.
close that file in that program, then you can delete it if you want

Last edited by 16pide; 05-24-2011 at 06:37 AM.
 
Old 05-24-2011, 08:39 AM   #4
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Original Poster
Rep: Reputation: 33
Hi,

Sorry for the late reply.

The problem is solved. I have to unmount the mounted directory first.

Thomas.
 
Old 05-24-2011, 09:33 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by thomas2004ch View Post
How can I unmount this dir so I can delete it?
Quote:
Originally Posted by thomas2004ch View Post
The problem is solved. I have to unmount the mounted directory first.
?????????

Anyway, mark the thread as 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
dvd mounten x bit is missing RGummi Linux - General 1 11-02-2006 08:41 PM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Where can I find the file over mounten file system Wallace740 Linux - Newbie 2 03-30-2005 02:46 AM
vfat mounten snu *BSD 1 07-06-2003 05:09 AM
Windows 2000 share mounten Sylhouette Linux - Networking 2 11-15-2001 02:40 AM

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

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