How do you unmount a device is busy in Linux?

Pham Quỳnh

New member
How do you unmount a device is busy in Linux?
Answer
If possible, let us locate/identify the busy process, kill that process and then unmount the samba share/ drive to minimize damage:
  1. lsof | grep ‘<mountpoint of /dev/sda1>’ (or whatever the mounted device is)
  2. pkill target_process (kills busy proc. …
  3. umount /dev/sda1 (or whatever the mounted device is)
24 окт. 2011 г.
 

Tìm kiếm

Back
Top