LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2011, 04:07 AM   #1
ktln2003
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
CIFS mounted multiple times


Hello all,

I have a little problem with my RHEL5.5 IA64. I mounted a Windows directory with 'mount -t cifs'. After a little while someone else mounted the same windows directory in the same mountpoint. The output from 'mount -v' shows me that the same directory is mounted twice in the same mountpoints. I cannot unmount it, not even with the force option. The error is "Device or resource busy". There are no open files in the shared directory and no one using the directory or subdirectories.

Thanks
 
Old 02-10-2011, 04:45 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by ktln2003 View Post
Hello all,

I have a little problem with my RHEL5.5 IA64. I mounted a Windows directory with 'mount -t cifs'. After a little while someone else mounted the same windows directory in the same mountpoint. The output from 'mount -v' shows me that the same directory is mounted twice in the same mountpoints. I cannot unmount it, not even with the force option. The error is "Device or resource busy". There are no open files in the shared directory and no one using the directory or subdirectories.

Thanks
Rebooting the system may help.
 
Old 02-10-2011, 04:57 AM   #3
ktln2003
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
The problem is I can't do that. It's business critical...
 
Old 02-10-2011, 05:16 AM   #4
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by ktln2003 View Post
The problem is I can't do that. It's business critical...
Code:
fuser -m mounted_folder
This will tell you the PIDs of the processes which are using it. Kill those processes and then try again.
 
Old 02-10-2011, 05:24 AM   #5
ktln2003
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Sayan Acharjee View Post
Code:
fuser -m mounted_folder
This will tell you the PIDs of the processes which are using it. Kill those processes and then try again.
Already done that. There's no user using it and no open file (lsof).
 
Old 02-10-2011, 05:27 AM   #6
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by ktln2003 View Post
Already done that. There's no user using it and no open file (lsof).
Try this,
Code:
# umount -l /mnt
-l is used to unmount when the file system is not busy.

But this may take some time.
 
Old 02-10-2011, 05:55 AM   #7
ktln2003
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Sayan Acharjee View Post
Try this,
Code:
# umount -l /mnt
-l is used to unmount when the file system is not busy.

But this may take some time.
I already unmounted it with the lazy atribute. My question was what it was using the share.

Thanks
 
  


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
recursive write permission on cifs mounted file system mamunbabu2001 Linux - Newbie 2 05-18-2010 09:23 AM
How to monitor that CIFS file systems are mounted kenneho Linux - Server 6 01-17-2010 10:36 AM
Don't displaying images from a Mounted CIFS folder GSound Linux - Server 2 10-19-2007 01:17 PM
umount: it seems /mnt/cdrom is mounted multiple times computergirl Linux - Hardware 13 06-23-2003 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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