LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-21-2009, 10:44 AM   #1
manojg
Member
 
Registered: May 2004
Posts: 77

Rep: Reputation: 15
unable to unmount


Hi,

I have two questions:

1)
I have RAID 5 active array which is mounted to, say /myMount . I tried to unmount it
Code:
umount /myMount
But it says device is busy. So, I checked disk use by
Code:
fuser -mv /myMount
But it does not say any thing, i. e., the disk is not in use. Why could not I unmount it?

2)
I checked my RAID array with fsck -f /dev/md0 and after few correction it became clean. I checked it twice to make sure. Then I copied some good files from other disk to RAID. Everything is fine except few files (2 files) are corrupted because I could not open it, I could not change their previllage. I happend before also on the same RAID array. What is the reason for this?

I tried to do fsck but now I have unmount problem that I have mentioned above (question 1).

Thanks for your help.

Last edited by manojg; 11-21-2009 at 10:55 AM.
 
Old 11-21-2009, 12:09 PM   #2
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
One thing I should mention: Linux umount has a "-l" option:

Quote:
-l
Lazy unmount. Detach the filesystem from the filesystem hierarchy
now, and cleanup all references to the filesystem as soon as
it is not busy anymore. (Requires kernel 2.4.11 or later.)
Second - on some systems, you need to use "fuser /dev/whateveritsmountedon", not "fuser /Mymount"


Finally, you could use "lsof" instead of fuser, though it gives you more than you need.

Last edited by pcunix; 11-21-2009 at 12:12 PM. Reason: Formatting
 
Old 11-21-2009, 01:23 PM   #3
manojg
Member
 
Registered: May 2004
Posts: 77

Original Poster
Rep: Reputation: 15
Hi pcunix,

Thanks a lot for information. I will try your suggestions. However, I have used both
Code:
fuser /myMount and
fuser /dev/md0
and I did not get any output in both cases.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to unmount HAL-mounted device dunric Slackware 4 08-24-2006 08:21 AM
Unable to unmount USB device gsathya MEPIS 3 07-27-2006 12:07 AM
unable to unmount samba meenaxi Linux - Networking 2 12-03-2004 02:48 AM
Unable to unmount SMB shares reyemarr Linux - General 5 03-29-2004 02:25 AM
unable to auto unmount after accessing dir with Konqueror infodoc Linux - Software 2 11-12-2003 10:22 PM


All times are GMT -5. The time now is 04:32 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration