united states of america usa  linkedinfacebookgoogle

Unmount a drive when it is busy

There are some circumstances where you have to unmount a drive, but it is not letting you. Giving an error, similar to this:

umount: /mnt/backup: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

Generally, it is a bad idea to unmount it while it is being used, but there are circumstances when a process has crashed and you need to unmount. In those instances you can use something called "lazy" umount:

umount -l /mnt/backup

and the disk is now safe to remove.

ALT – your Linux experts in Miami!

 

Tel: (786) 646-6461   |   Toll-Free: (877) 454-0758
18350 NW 2nd Ave, Ste 406E | Miami, FL33169