Sometimes, I would like to umount a usb device, but I get a drive is busy error.How do I find out which processes or programs are accessing the device?
How do I find out which processes are preventing unmounting of a device?
process;open files;unmounting
Use lsof | grep /media/whatever to find out what is using the mount.Also, consider umount -l (lazy umount) to prevent new processes from using the drive while you clean up.