[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to check if device is busy without unmounting?



On Sunday 16 May 2010 18:05:01 Dotan Cohen wrote:
> How can one check if a device can be safely unmounted at the moment.
> Sometimes umount fails as the device is busy. Is there a way to check
> if the device is busy, without unmounting? The umount manpage does not
> discuss this situation.

(fuser -mv /$mnt_point) is relatively standard.

lsof is quite a bit more powerful and complete, and available for Debian.
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: