Hi all On Ubuntu Desktop 13.04 64bit the loop device partitions do not automatically get deleted when you call "losetup -d DEVICE". This causes other programs (like lvmdiskscan -l) to report Input/output errors. Here is how to reproduce the problem: LOOPDEV=/dev/loop3 IMAGEFILE=`pwd`/mydisk.img MOUNTPOINT=`pwd`/mnt # 1. Create and mount an ext4 partition from a file-based disk image dd if=/dev/zero of=$IMAGEFILE bs=1M count=80 sudo losetup $LOOPDEV $IMAGEFILE sudo parted $LOOPDEV mklabel msdos sudo parted $LOOPDEV mkpart primary 2048s 43007s sudo mkfs -t ext4 ${LOOPDEV}p1 mkdir $MOUNTPOINT sudo mount ${LOOPDEV}p1 $MOUNTPOINT # 2. Unmount again => ERROR: the partition device files are not deleted sudo umount $MOUNTPOINT sudo losetup -d $LOOPDEV rmdir $MOUNTPOINT rm $IMAGEFILE ls -l ${LOOPDEV}* The last command shows: /tmp/test[10:18]% ls -l ${LOOPDEV}* brw-rw---- 1 root disk 7, 3 Sep 24 18:18 /dev/loop3 brw-rw---- 1 root disk 259, 0 Sep 24 18:17 /dev/loop3p1 As no device is connected there is no partition 1! Isn't this a bug? Regards BB. -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html