Sponsored Content
Operating Systems Linux Gentoo automating chroot and mount/unmount Post 302199480 by sysgate on Tuesday 27th of May 2008 03:15:22 AM
Old 05-27-2008
No, proc is separate file space, and usually lots of information is being written there. Why do you need to un-mount it ? Try < -f > flag, for force.
 

10 More Discussions You Might Find Interesting

1. Linux

chroot?

If i were to create a new user for my ftp would chroot be the proper command to set there root directory as the file i've put all my FTP stuff in? Also would that jail them, or would they beable to get out of the set directory? (0 Replies)
Discussion started by: byblyk
0 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. Red Hat

Unbale ot mount chroot /sys/image

Hi frds i need ur help on this..! I am using redhat 9.0 recently someone has messed with mine filesystem and anyhow managed to hide mine linux partition both hd0,0 and hd0,1 ..!This is sick..i got mine Xp partition also hidden by this. I tried booting with linux rescue disk..but fail to mount to... (2 Replies)
Discussion started by: nicknihal
2 Replies

4. 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

5. HP-UX

/usr out of disk space need to unmount/ expand volume /mount

Greetings, I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space. I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Discussion started by: Dirk_
5 Replies

6. OS X (Apple)

Can't Mount Disk / Image after bad unmount

I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that... (1 Reply)
Discussion started by: Cranie
1 Replies

7. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

8. Shell Programming and Scripting

Cygwin bash script to unmount and mount an XP partition

As stated, I am looking into keeping my backup drive unmounted in normal windows use. Partly this is to address threats like cryptolocker. Since one of my backup drives is an internal drive, it will not likely afford any protection from such a threat. I am thinking of adding code to my rsync script... (5 Replies)
Discussion started by: LMHmedchem
5 Replies

9. Shell Programming and Scripting

Script to unmount and mount by UUID

Hi, Need a bit of help on this one as I am a scripting noob. I have a linux based NAS that mounts USB hard drives in an inconsistent location and to make matters worse, seems to lose the mount for an unknown reason and doesn't remount automatically unless the drive is removed and re-inserted.... (4 Replies)
Discussion started by: gtr33m
4 Replies

10. UNIX for Beginners Questions & Answers

AIX - SAN Mount and Unmount on LPAR

We have 2 LPAR. LPAR #1 have a Application, Database Server process (ctree Server) and SAN+Physical Table. LPAR#2 has only Application. Both Application process are connected to Database via C-tree Server Process (Running on LPAR #1.. We want to keep one Active C-tree Server and one Backup... (1 Reply)
Discussion started by: gabhanes
1 Replies
NSENTER(1)							   User Commands							NSENTER(1)

NAME
nsenter - run program with namespaces of other processes SYNOPSIS
nsenter [options] [program] [arguments] DESCRIPTION
Enters the namespaces of one or more other processes and then executes the specified program. Enterable namespaces are: mount namespace mounting and unmounting filesystems will not affect rest of the system (CLONE_NEWNS flag), except for filesystems which are explic- itly marked as shared (by mount --make-shared). See /proc/self/mountinfo for the shared flag. UTS namespace setting hostname, domainname will not affect rest of the system (CLONE_NEWUTS flag). IPC namespace process will have independent namespace for System V message queues, semaphore sets and shared memory segments (CLONE_NEWIPC flag). network namespace process will have independent IPv4 and IPv6 stacks, IP routing tables, firewall rules, the /proc/net and /sys/class/net directory trees, sockets etc. (CLONE_NEWNET flag). PID namespace children will have a set of PID to process mappings separate from the nsenter process (CLONE_NEWPID flag). nsenter will fork by default if changing the PID namespace, so that the new program and its children share the same PID namespace and are visible to each other. If --no-fork is used, the new program will be exec'ed without forking. See the clone(2) for exact semantics of the flags. If program is not given, run ``${SHELL}'' (default: /bin/sh). OPTIONS
Argument with square brakets, such as [file], means optional argument. Command line syntax to specify optional argument --mount=/path/to /file. Please notice the equals sign. -t, --target pid Specify a target process to get contexts from. The paths to the contexts specified by pid are: /proc/pid/ns/mnt the mount namespace /proc/pid/ns/uts the UTS namespace /proc/pid/ns/ipc the IPC namespace /proc/pid/ns/net the network namespace /proc/pid/ns/pid the PID namespace /proc/pid/root the root directory /proc/pid/cwd the working directory respectively -m, --mount [file] Enter the mount namespace. If no file is specified enter the mount namespace of the target process. If file is specified enter the mount namespace specified by file. -u, --uts [file] Enter the UTS namespace. If no file is specified enter the UTS namespace of the target process. If file is specified enter the UTS namespace specified by file. -i, --ipc [file] Enter the IPC namespace. If no file is specified enter the IPC namespace of the target process. If file is specified enter the IPC namespace specified by file. -n, --net [file] Enter the network namespace. If no file is specified enter the network namespace of the target process. If file is specified enter the network namespace specified by file. -p, --pid [file] Enter the PID namespace. If no file is specified enter the PID namespace of the target process. If file is specified enter the PID namespace specified by file. -r, --root [directory] Set the root directory. If no directory is specified set the root directory to the root directory of the target process. If direc- tory is specified set the root directory to the specified directory. -w, --wd [directory] Set the working directory. If no directory is specified set the working directory to the working directory of the target process. If directory is specified set the working directory to the specified directory. -F, --no-fork Do not fork before exec'ing the specified program. By default when entering a pid namespace enter calls fork before calling exec so that the children will be in the newly entered pid namespace. -V, --version Display version information and exit. -h, --help Print a help message. SEE ALSO
setns(2), clone(2) AUTHOR
Eric Biederman <ebiederm@xmission.com> AVAILABILITY
The nsenter command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils /util-linux/>. util-linux January 2013 NSENTER(1)
All times are GMT -4. The time now is 10:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy