Cool Kernel and Filesystems
5 - unmounting drives, especially CDROMs ...
Often I try to
[root@fulmination cdrom]# umount /mnt/cdrom/
umount: /mnt/cdrom: device is busy
to discover what nasty process is using the drive
[root@fulmination cdrom]# lsof | grep /mnt/cdrom
bash 1234 root cwd DIR 3,64 2048 45056 /mnt/cdrom
lsof 1275 root cwd DIR 3,64 2048 45056 /mnt/cdrom
grep 1276 root cwd DIR 3,64 2048 45056 /mnt/cdrom
lsof 1277 root cwd DIR 3,64 2048 45056 /mnt/cdrom
...
[Next] [Contents]