How to check if device is busy without unmounting?
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.
Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTilwbCPenwuvyT0vd-zPrhv3tmLjU49hXotiqdg1@mail.gmail.com">http://lists.debian.org/AANLkTilwbCPenwuvyT0vd-zPrhv3tmLjU49hXotiqdg1@mail.gmail.com
05-16-2010, 11:46 PM
"Boyd Stephen Smith Jr."
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/ \_/
05-17-2010, 12:12 AM
Ron Johnson
How to check if device is busy without unmounting?
On 05/16/2010 06:46 PM, Boyd Stephen Smith Jr. wrote:
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.
Neither of those commands "see" NFS exports.
--
Dissent is patriotic, remember?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
On 16 May 2010 21:12, Ron Johnson<ron.l.johnson@cox.net> wrote:
On 05/16/2010 06:46 PM, Boyd Stephen Smith Jr. wrote:
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.
Neither of those commands "see" NFS exports.
--
Dissent is patriotic, remember?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.05.17.06.19.28@gmail.com">http://lists.debian.org/pan.2010.05.17.06.19.28@gmail.com
05-17-2010, 06:25 AM
Dotan Cohen
How to check if device is busy without unmounting?
On 17 May 2010 02:46, Boyd Stephen Smith Jr. <bss@iguanasuicide.net> wrote:
> 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.
Thanks, Boyd!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTikvLGp5lRSxol0PuXGMzmtbg80dLtCVPO6TmR8k@mail .gmail.com">http://lists.debian.org/AANLkTikvLGp5lRSxol0PuXGMzmtbg80dLtCVPO6TmR8k@mail .gmail.com