From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751246AbaCVTYJ (ORCPT ); Sat, 22 Mar 2014 15:24:09 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:53462 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831AbaCVTYG (ORCPT ); Sat, 22 Mar 2014 15:24:06 -0400 Date: Sat, 22 Mar 2014 19:24:04 +0000 From: Al Viro To: Francis Moreau Cc: LKML Subject: Re: Can't umount /mnt/dev after calling dd(1) and with /mnt/dev is a bind mount Message-ID: <20140322192404.GG18016@ZenIV.linux.org.uk> References: <532DBFC8.4020202@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <532DBFC8.4020202@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 22, 2014 at 05:52:24PM +0100, Francis Moreau wrote: > I'm posting here because it might be a behaviour related to the kernel > internals that I can't explain from my user point of view :) > > Basically I'm doing this: > > mount -o bind /dev/ /mnt/dev && > chroot /mnt dd bs=440 conv=notrunc count=1 if=gptmbr.bin of=/dev/loop0 > umount /mnt/dev > > but umount gives the following error: "umount: /mnt/dev: target is busy" What do you have in /proc/self/mountinfo before all that?