Symptoms:
When checking for bad blocks, following error is displayed:# badblocks -nvs /dev/sdb
/dev/sdb is apparently in use by the system; it's not safe to run badblocks!
Solution:
- Check the mounts (/etc/mtab), unmount with umount
- Check the swaps (/proc/swaps), unmount with swapoff
- Check volume groups (/dev/mapper/...), deactivate with vgchange -a n