If you want to remove a dm device forcibly, replace it with an 'error' target that will return I/O errors. (dmsetup remove -f) (But devices should be removed from the top down, obviously, and if it's your main filesystem, you could e.g. set up a ramdisk do do this from.) Alasdair