Sponsored Content
Operating Systems Solaris zfs cannot unmount (cannot unshare) Post 302552509 by incredible on Sunday 4th of September 2011 03:23:56 AM
Old 09-04-2011
Can you try with Solaris 11 pre-release Beta versions?
Solaris 11 Express is not in use now, I guess.
Codes have been stabled from Solaris 11 builds 160 onwards.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

[FreeBSD] Unable to unmount

I have mounted an ISO-file to do a network install of Red Hat. Afterwards, I removed the ISO and forgot about the mount. Now, I am unable to unmount this mount, because the target no longer exists... Here's the error I get when I try to unmount: Even if I put all the files back and... (6 Replies)
Discussion started by: indo1144
6 Replies

2. AIX

how do i unmount ?

hi all, I am new to AIX as well as UNIX also ,i have a question One of my program has created a new filesystem on the system..... df shows : /dev/fslv04 2031616 2030648 1% 3 1% /replicas/source when i tried to umount the above filesystem by umount... (3 Replies)
Discussion started by: vamshi_k
3 Replies

3. HP-UX

Cannot unmount mount points??

When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted. How can I find out what process(es) is/are latching on the these mount points? Thank you for your time. (1 Reply)
Discussion started by: genzbeat
1 Replies

4. AIX

Unmount strongly command

Dear Guy's I'm making script to easier my work to mount and unmount some file systems I'm executing this command umount -f /file_system To unmount the file system but some times is not allow the un mounting it's giving me device is busy ... I want to know is there any another... (2 Replies)
Discussion started by: ITHelper
2 Replies

5. Filesystems, Disks and Memory

Can we unmount device?

Hi, I know that if we need to unmount a device, we use the command umount mount-point, example 'umount /tmp/mount1' But We can also unmount the device with device name example 'umount /dev/hda6'. NOTE: I think in RHEL3 we cannot unmount with device name. Correct me if I am wrong. What... (1 Reply)
Discussion started by: praveen_b744
1 Replies

6. Shell Programming and Scripting

Unmount USB disk

Hi, How can I unmount an usb disk using the command umount? (3 Replies)
Discussion started by: Guccio
3 Replies

7. Solaris

NFS: Cannot unshare directory.

Hi, I'm currently having a problem unsharing a directory. When I specify the command. Below is an example of the problem. Any ideas? # share - /test/dir1 rw "" - /test/dir2 root=10.0.0.1,root=10.0.0.1 "" - /test/dir3 root=10.11.1.1,root=10.11.1.1 "" - /test/dir4... (6 Replies)
Discussion started by: sparcman
6 Replies

8. UNIX for Dummies Questions & Answers

unmount the partition

Dear all, I have a two hard drive.On the second (/dev/sdb1 and /dev/sdb2) hard drive i have two partitions. The /dev/sdb2 has been mounted on the /home2 directory.I want to unmount that /dev/sdb2.I have no idea to how to do it.Can anybody give me the details about that?. Regards, Prakashkumar.S (2 Replies)
Discussion started by: prakashkumar41
2 Replies

9. Shell Programming and Scripting

Unmount files via script

Hi all, I have a requirement to do an upgrade. As part of that upgrade I have to unmounts files in the fstab (there could be 100's), is there a way I can do this via script? The problem is, is that the mount points on every server will be different.... For example: /u001/oradata/T865 ... (4 Replies)
Discussion started by: gartie
4 Replies

10. AIX

Filesystem unable unmount

Hi all , I have issue oracle filesystem name /oracle/SID unable to unmount even though no any process are running mentioned fs .would appreciate anyone assist further high level .my system running aix 6.1 (7 Replies)
Discussion started by: Arulji
7 Replies
UNSHARE(2)						     Linux Programmer's Manual							UNSHARE(2)

NAME
unshare - disassociate parts of the process execution context SYNOPSIS
define _GNU_SOURCE /* See feature_test_macros(7) */ #include <sched.h> int unshare(int flags); DESCRIPTION
unshare() allows a process to disassociate parts of its execution context that are currently being shared with other processes. Part of the execution context, such as the mount namespace, is shared implicitly when a new process is created using fork(2) or vfork(2), while other parts, such as virtual memory, may be shared by explicit request when creating a process using clone(2). The main use of unshare() is to allow a process to control its shared execution context without creating a new process. The flags argument is a bit mask that specifies which parts of the execution context should be unshared. This argument is specified by ORing together zero or more of the following constants: CLONE_FILES Reverse the effect of the clone(2) CLONE_FILES flag. Unshare the file descriptor table, so that the calling process no longer shares its file descriptors with any other process. CLONE_FS Reverse the effect of the clone(2) CLONE_FS flag. Unshare file system attributes, so that the calling process no longer shares its root directory, current directory, or umask attributes with any other process. chroot(2), chdir(2), or umask(2) CLONE_NEWNS This flag has the same effect as the clone(2) CLONE_NEWNS flag. Unshare the mount namespace, so that the calling process has a pri- vate copy of its namespace which is not shared with any other process. Specifying this flag automatically implies CLONE_FS as well. If flags is specified as zero, then unshare() is a no-op; no changes are made to the calling process's execution context. RETURN VALUE
On success, zero returned. On failure, -1 is returned and errno is set to indicate the error. ERRORS
EINVAL An invalid bit was specified in flags. ENOMEM Cannot allocate sufficient memory to copy parts of caller's context that need to be unshared. EPERM flags specified CLONE_NEWNS but the calling process was not privileged (did not have the CAP_SYS_ADMIN capability). VERSIONS
The unshare() system call was added to Linux in kernel 2.6.16. CONFORMING TO
The unshare() system call is Linux-specific. NOTES
Not all of the process attributes that can be shared when a new process is created using clone(2) can be unshared using unshare(). In par- ticular, as at kernel 2.6.16, unshare() does not implement flags that reverse the effects of CLONE_SIGHAND, CLONE_SYSVSEM, CLONE_THREAD, or CLONE_VM. Such functionality may be added in the future, if required. SEE ALSO
clone(2), fork(2), vfork(2), Documentation/unshare.txt COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2010-09-10 UNSHARE(2)
All times are GMT -4. The time now is 05:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy