Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I am having problem understanding how to use the above command. Whenever I try to umount a partition which is presently busy , the fuser command is supposed to come in handy. I have read from a book that
Code:
fuser -v mount_point
Provides the necessary information about who is using the mounted point.
Now where I get the problem : I login as a normal user( vickey in this case) in /home directory ( also a partition as per my fstab), on some other terminal as root I try to unmount /home and get the device is busy ( Ok no problem as expected) . Now the command
Code:
fuser -v /home
must tell me that /home is currently used by user vickey. But it doesn't show me anything but on the other hand when I issue this command
Code:
fuser -v /home/vickey
It shows the activity of user vickey on the /home partition . But the whole point is , fuser by default should show me that vickey is doing some thing on /home , when "/home" is passed as an argument to the fuser command and not when "/home/vickey" is passed.
Thanks in advance for replying.
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
going throught the man pages I uderstood that specifying the lazy option with umont will only umoun the partition when there is no activity going on it( If I m not wrong) . But I what I wanna know is who are working on the partition right now (lsof porved to be useful ) But "fuser -v" is supposed to do the same task?
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
Figured it out. You need to also use the -m option with fuser. From the manpage:
Quote:
-m name specifies a file on a mounted file system or a block
device that is mounted. All processes accessing files on that
file system are listed. If a directory file is specified, it
is automatically changed to name/. to use any file system that
might be mounted on that directory.
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe