www.LinuxHowtos.org

edit this article

Find process that block unmounting a partition or CDROM

You want to unmount a CDROM or a partition and get

umount: /boot: device is busy?

Just follow these steps to find out who blocks the partition:

# lsof /boot 
COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME 
tail    8022 Sash    3r   REG    3,1 1183 2022 /boot/grub/grub.conf

This output shows us that we got a tail command accessing /boot/grub/grub.conf.

You can either kill the given process with its PID or search through your consoles and shut down the programm using the file.


rate this article:
current rating: average rating: 1.2 (93 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back