UNMOUNT a windows file system | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

UNMOUNT a windows file system

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-28-2008
big123456 big123456 is offline
Registered User
 
Join Date: May 2005
Last Activity: 20 March 2013, 11:06 AM EDT
Posts: 288
Thanks: 8
Thanked 0 Times in 0 Posts
UNMOUNT a windows file system

Hi,
I try to unmount :
smbumount /mnt/directory

But I receive :

Could not umount /mnt/directory: Device or resource busy

Any idea ?
Many thanks.
Sponsored Links
    #2  
Old 02-28-2008
robotronic's Avatar
robotronic robotronic is offline Forum Advisor  
Can I play with madness?
 
Join Date: Apr 2002
Last Activity: 20 December 2009, 10:56 AM EST
Location: Italy
Posts: 370
Thanks: 0
Thanked 0 Times in 0 Posts
You have to exit all processes accessing the device. You can find them with:


Code:
fuser -c /mnt/directory

Sponsored Links
    #3  
Old 02-28-2008
big123456 big123456 is offline
Registered User
 
Join Date: May 2005
Last Activity: 20 March 2013, 11:06 AM EDT
Posts: 288
Thanks: 8
Thanked 0 Times in 0 Posts
Thank you,
but :
# fuser -a /mnt/directory
/mnt/directory: Input/output error

And :

# fuser -k /mnt/directory
/mnt/directory: Input/output error


????
    #4  
Old 03-02-2008
kranny kranny is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 13 May 2008, 5:06 AM EDT
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
I suppose its fuser -c and not fuser -a
Sponsored Links
    #5  
Old 03-03-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
 
Join Date: Sep 2002
Last Activity: 4 May 2014, 6:22 AM EDT
Location: Hong Kong, China
Posts: 1,622
Thanks: 0
Thanked 9 Times in 8 Posts
The way I commonly use is to execute lsof and grep the directory in the output. Of course that is only if lsof is installed.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Asking user for input file location using a .sh file in windows system bansalpankaj88 Shell Programming and Scripting 1 02-17-2012 07:24 AM
What happens if i unmount local file system when is mounted to a different server? galuzan UNIX for Dummies Questions & Answers 2 07-26-2011 11:29 AM
How to export AIX File system NFS to Windows ? filosophizer AIX 2 03-31-2009 11:54 AM
reading unix file system from windows cneill Filesystems, Disks and Memory 0 02-06-2007 12:21 PM
Please help me, about the file sharing with windows system cloudlor Linux 1 10-06-2006 01:25 PM



All times are GMT -4. The time now is 11:33 AM.