device detection for chroot mount method