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)
Check Out this Related Man Page
UMOUNT(8) BSD System Manager's Manual UMOUNT(8)NAME
umount -- unmount filesystems
SYNOPSIS
umount [-fv] special | node
umount -a | -A [-fv] [-h host] [-t type]
DESCRIPTION
The umount command calls the unmount(2) system call to remove a special device or the remote node (rhost:path) from the filesystem tree at
the point node. If either special or node are not provided, the appropriate information is taken from the fstab(5) file.
The options are as follows:
-a All the filesystems described in fstab(5) are unmounted.
-A All the currently mounted filesystems except the root are unmounted.
-f The filesystem is forcibly unmounted. Active special devices continue to work, but all other files return errors if further accesses
are attempted. The root filesystem cannot be forcibly unmounted.
-h host
Only filesystems mounted from the specified host will be unmounted. This option is implies the -A option and, unless otherwise spec-
ified with the -t option, will only unmount NFS filesystems.
-t type
Is used to indicate the actions should only be taken on filesystems of the specified type. More than one type may be specified in a
comma separated list. The list of filesystem types can be prefixed with ``no'' to specify the filesystem types for which action
should not be taken. For example, the umount command:
umount -a -t nfs,hfs
umounts all filesystems of the type NFS and HFS.
-v Verbose, additional information is printed out as each filesystem is unmounted.
FILES
/etc/fstab filesystem table
SEE ALSO unmount(2), fstab(5), mount(8)HISTORY
A umount command appeared in Version 6 AT&T UNIX.
4th Berkeley Distribution May 8, 1995 4th Berkeley Distribution
I'm trying to unmount a file system, but umount says the device is busy. A fuser -c /myfs tells me that nothing on this fs is in use. Any idea?
Oh, and btw, why isn't my signature beeing displayed? Show user's signature is enabled and I have entered one :/ (10 Replies)
I am trying to umount a NFS share.
When I do the following:
# umount syrupg21
umount: /oebs/syrupg21: device is busy
device bussy so I like to check what is working on the system....
# fuser -muv /oebs/syrupg21/
#
So no locks should be there... any clue?
Regards,
Johan... (3 Replies)
hi guys,
I've got a strange issue, may be one of you has experienced this.
SunOS 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V440
everything is mirrored.
My issue is that I have a umpty directory but seems to have data on. Let me show you
# df -h /data
Filesystem size used... (10 Replies)
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)
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)
Dears,
I have two question about using ufsdump
1) i read in all documents that the first recommended thing before using the ufsdump
umount file system
i don't how to umount the file system?
if my server work for 24 in 7 how to take backup is this case
2) if i want to make... (13 Replies)
Hi all
Is it ok to umount the / (root) file system?
Because recently i had extend the swap space by add the cylinders,
now only found that the cylinders is overlap with the root. Is it ok for future server operation?
partition> print
Current partition table (original):
Total disk... (6 Replies)
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)
I wish to umount in a bash script a specific device (/dev/sdb for example) that has multiple mounted file systems. how will I go about doing this?
Also is there a way to get a list of removable devices currently connected and offer the user a selection of them? (The devices themself not their... (2 Replies)
Hi.,
I need transfer as parameter into shell script some spec. characters, for example " or ' or & or \ at the end of second parameter. (this parameter used as changed password).
How I can transfer it into shell script.
Thanks Staas,. (5 Replies)
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)
I have some questions:
1, I successfully mounted my usb drive with "sudo mount /dev/sdb1 /mnt", but I can't wirte, It says "read-only file system". But I can write it in windows.
2, After I umounted the usb drive the led of it still on, but not blinking. Is it safe to unplug it? How to let it's... (17 Replies)
Hi Folks,
Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX.
Thanks in advance,
Vaishey (5 Replies)
Hi Guys,
I am having below file which holds data like this
file.txt
name,id,flag
apple,1,Y
apple,2,N
mango,1,Y
mango,2,Y
I need to read the above file and frame a query like this
hive -s -e "create apple_view as select 1 from main_table;"
hive -s -e "create mango_view as select... (11 Replies)