04-05-2007
Try to see the locks with:
fuser -c /mounteddir
Or if you have solaris 8 or later you can type:
umount -f /mounteddir
This will unmount the dir with force.
/Tony
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused: Twofold question for you unix "guru's"
1) When attempting to use the umount command I get a message stating that the partition that I want to unmount is busy. Is there another command that I need to use prior to the umount command to clear the partition of activity????? ... (2 Replies)
Discussion started by: rod23
2 Replies
2. UNIX for Dummies Questions & Answers
the program as follow:
mount /dev/fd0135ds18 /mnt
cd /mnt
touch file1
cat /file2 >/mnt/file1
umount /dev/fd135ds18
when error
tell device busy
could you tell me the reason? (1 Reply)
Discussion started by: fresh
1 Replies
3. UNIX for Advanced & Expert Users
hi all,
I inherit a Solaris7 system with /home mounted via a share from the NFS server. When I look at mnttab, there are two entries mounted under /home. Let's say they are server:/home/a and server:/home/b. I would like to maintain /home/a but not /home/b. However, I just don't know where... (4 Replies)
Discussion started by: andrec
4 Replies
4. HP-UX
Anyone have any idea why I cannot umount a directory even though fuser shows no process attached to it?
fuser -cu /data/oracle/GMPSHRDM/export
/data/oracle/GMPSHRDM/export:
umount /data/oracle/GMPSHRDM/export
umount: cannot unmount /data/oracle/GMPSHRDM/export : Device busy
umount:... (2 Replies)
Discussion started by: keelba
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am writing a multi-cd spanning installer for a particular software in Linux (Redhat 4 or greater / Suse )
My Program is in Java. A Shell Script is used to fork the java process. I found out that when the Installer tries to go to the next disc when prompted so, by the installer, the eject... (1 Reply)
Discussion started by: jiju.jacob
1 Replies
6. HP-UX
sorry, wrong section, mod please close thread (0 Replies)
Discussion started by: robertngo
0 Replies
7. HP-UX
Hello,
yeah... here my question :
Exist some way to force umount on HP other than reboot?
Thanks
gb (12 Replies)
Discussion started by: gogol_bordello
12 Replies
8. Linux
I had a umount busy issue, that the usual fuser -mk did not solve, I did a umount -l and was able to unmount the device, I then got in trouble by the storage team staff:
Here was a snippet of their response:
Using "umount -l" is a potentially dangerous act.
The command combination for a lazy... (8 Replies)
Discussion started by: pastajet
8 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I accidentally unmounted filesystems using umount -a command.
How to recover from this. Please help. Thanks in advance!
when i try to use mount -a i got the following output.
# mount -a
mount: /dev/vg00/lvol05 already mounted or /opt busy
mount: /dev/vg00/lvol07 already... (4 Replies)
Discussion started by: lramsb4u
4 Replies
10. UNIX for Dummies Questions & Answers
hi guys
I have to umount a CIFS from a Windows machine...but it's been imposible
there is one special task
/sbin/umount.cifs /mondobackup
that task cannot be kill...so I cannot umount the unit
any idea how to kill this and umount this CIFS share?
by the way I've tried
umount... (5 Replies)
Discussion started by: kopper
5 Replies
umount(3) Library Functions Manual umount(3)
NAME
umount - Unmounts a file system
LIBRARY
System V Compatibility Library (libsys5.a)
SYNOPSIS
#include <sys/mount.h>
int umount(
char *spec );
PARAMETERS
spec Points to the pathname of the special file or file system to be unmounted.
DESCRIPTION
The umount() function unmounts a previously-mounted file system contained on the block special file pointed to by the spec parameter. When
the file system is unmounted, the directory mount point where the file system was mounted returns to its normal interpretation.
The umount() function can only be invoked by the superuser.
NOTES
Two umount() functions are supported by the Tru64 UNIX operating system: the BSD umount() and the System V umount(). The default umount()
function is the BSD umount(). To use the version of umount() documented on this reference page, you must link with the libsys5 library
before you link with libc.
RETURN VALUE
The umount() function returns 0 (zero) if the file system was successfully unmounted. Otherwise, -1 is returned and errno is set to indi-
cate the error.
ERRORS
If the umount() function fails, errno may be set to one of the following values:
[EPERM] The effective user ID of the calling process is not root.
[ENOENT] The spec parameter points to a pathname that does not exist.
[ENOTDIR] A component of the path prefix of spec is not a directory.
[ENOTBLK] The device identified by spec is not a block-special device.
[ENXIO] The device identified by spec does not exist.
[EBUSY] A file on the device pointed to by the spec parameter is busy.
[EINVAL] The device pointed to by the spec parameter is not mounted.
RELATED INFORMATION
Commands: mount(8) delim off
umount(3)