On Fri, Jul 27, 2012 at 12:40:37PM +0200, Bernhard Voelker wrote: > Hi *, > > shouldn't umount also work for a deleted backing file? > > # rm -v /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img > removed `/media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img' > > $ mount | grep regfile > /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img (deleted) on > /media/sdb5/berny/git/util-linux/tests/output/mount/regfile-mnt type ext3 > (rw,relatime,errors=continue,barrier=1,data=ordered) > > $ ../umount -v /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img try: umount /media/sdb5/berny/git/util-linux/tests/output/mount/regfile-mnt man umount: A file system is specified by giving the directory where it has been mounted. Giving the special device on which the file system lives may also work, but is obsolete... ... just in this case it's for umount difficult to translate a file which does not exist to mountpoint (it's possible but not too robust). Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- 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