Re: trying to umount a chroot /dev
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 /mnt/chrtest/dev
> > gives umount: /mnt/chrtest/dev: device is busy
> >
> > How can I get this to work?
>
> All the answers have been good ones.
>
> I just wanted to mention that if you want to do this regularly,
> the schroot program can automatically snapshot your chroot with
> LVM and mount the /dev (and other) filesystems. It then
> subsequently umounts the filesystems and deletes the snapshot.
>
That sounds a lot like what I'm trying to do, including the snapshot.
Does schroot do any special tricks to umount dev?
Ross
Reply to: