Re: kpartx can not detach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




On 03/07/2018 04:48 AM, Leon Fauster wrote:
> OS: EL6 - sometimes I use 
> 
> kpartx -a /mnt/.../lvdisk.img 
> 
> to map the partitions and mount them via 
> 
> /dev/mapper/loop0pX
> 
> After using the disk (unmounting it) I noticed that 
> detaching such mapping via kpartx -d does not result 
> in freeing up the loop devices. Results: System reboots 
> shows that the filesystem where lvdisk.img is located 
> can't be unmounted. 
> 
> lsof, fuser, ps does not show any usage. Even removing the 
> device node via 
> 
> dmsetup remove /dev/mapper/loop0pX
> 
> does not help. Trying to unmount the underlying filesystem 
> still shows /mnt: device is busy.
> 
> Any other suggestions would be greatly appreciated!


Do you have an open shell/terminal session hanging out in the /mnt
directory you used?


-- 
Jim Perrin
The CentOS Project | http://www.centos.org
twitter: @BitIntegrity | GPG Key: FA09AD77
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux