Re: trying to umount a chroot /dev

2012-08-27 Thread T o n g
On Wed, 22 Aug 2012 09:54:09 +0100, Roger Leigh wrote: Why did you choose rbind over bind. Just curious. The advantage of using rbind is that you don't have to mount /dev/pts and /dev/shm (or just /dev/pts on wheezy since /dev/shm has been moved to /run/shm) after mounting /dev. This

Re: trying to umount a chroot /dev

2012-08-27 Thread Bob Proulx
T o n g wrote: Interesting. What is systemd? (apt-cache search systemd shows me nothing) 'systemd' is an alternative 'sysvinit' system. How can I tell if I'm using systemd or not? If you don't know then you are not using it. You are using sysvinit if you haven't manually taken action to

Re: trying to umount a chroot /dev

2012-08-22 Thread Ross Boylan
On Tue, 2012-08-21 at 23:20 -0600, Bob Proulx wrote: Try using the umount -l option for a lazy unmount. Might work. Might not work. If it doesn't then I think you need to reboot. Kind of works. umount -l /mnt/chrtest/dev no error messages. And it's no longer listed in /proc/mounts Despite

Re: trying to umount a chroot /dev

2012-08-22 Thread Tom H
On Tue, Aug 21, 2012 at 9:46 PM, Ross Boylan r...@biostat.ucsf.edu wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev I have exited the chroot and, I believe, ended the processes I started. umount /mnt/chrtest/dev gives umount:

Re: trying to umount a chroot /dev

2012-08-22 Thread Roger Leigh
On Tue, Aug 21, 2012 at 06:46:35PM -0700, Ross Boylan wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev I have exited the chroot and, I believe, ended the processes I started. umount /mnt/chrtest/dev gives umount: /mnt/chrtest/dev: device is

Re: trying to umount a chroot /dev

2012-08-22 Thread Tom H
On Tue, Aug 21, 2012 at 10:21 PM, Bob Proulx b...@proulx.com wrote: Ross Boylan wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev Why did you choose rbind over bind. Just curious. The advantage of using rbind is that you don't have to mount

Re: trying to umount a chroot /dev

2012-08-22 Thread Ross Boylan
On Wed, 2012-08-22 at 08:40 +0100, Roger Leigh wrote: On Tue, Aug 21, 2012 at 06:46:35PM -0700, Ross Boylan wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev I have exited the chroot and, I believe, ended the processes I started. umount

Re: trying to umount a chroot /dev

2012-08-22 Thread Roger Leigh
On Wed, Aug 22, 2012 at 01:00:22AM -0700, Ross Boylan wrote: On Wed, 2012-08-22 at 08:40 +0100, Roger Leigh wrote: On Tue, Aug 21, 2012 at 06:46:35PM -0700, Ross Boylan wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev I have exited

Re: trying to umount a chroot /dev

2012-08-22 Thread Roger Leigh
On Wed, Aug 22, 2012 at 03:41:50AM -0400, Tom H wrote: On Tue, Aug 21, 2012 at 10:21 PM, Bob Proulx b...@proulx.com wrote: Ross Boylan wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev Why did you choose rbind over bind. Just curious.

trying to umount a chroot /dev

2012-08-21 Thread Ross Boylan
I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev I have exited the chroot and, I believe, ended the processes I started. umount /mnt/chrtest/dev gives umount: /mnt/chrtest/dev: device is busy How can I get this to work? After reviewing the output of

Re: trying to umount a chroot /dev

2012-08-21 Thread Bob Proulx
Ross Boylan wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev Why did you choose rbind over bind. Just curious. My reply is the one I would give if you had used bind. I have never used rbind. The result may be wrong for rbind. But it would be

Re: trying to umount a chroot /dev

2012-08-21 Thread Ross Boylan
On Tue, 2012-08-21 at 20:21 -0600, Bob Proulx wrote: Ross Boylan wrote: I setup a chroot on a snapshot. Part of the setup was mount --rbind /dev /mnt/chrtest/dev Why did you choose rbind over bind. Just curious. My reply is the one I would give if you had used bind. I have never used

Re: trying to umount a chroot /dev

2012-08-21 Thread Bob Proulx
Ross Boylan wrote: Bob Proulx wrote: Why did you choose rbind over bind. Just curious. It's certainly not something to take as a model; it's just what sort of worked for me. Understood. We are all pragmatic when need be. :-) # umount /srv/chroot/sid/dev The corresponding command