diff options
author | Karel Zak | 2008-01-28 12:52:04 +0100 |
---|---|---|
committer | Karel Zak | 2008-01-28 12:52:04 +0100 |
commit | ff83f99ef6b8adc10a729ac86d4cbf1179166776 (patch) | |
tree | 4a9d2b722b310c502fd524ebe02df15ddcfc784e /mount | |
parent | cal: fix weekday alignment for certain locales (diff) | |
download | kernel-qcow2-util-linux-ff83f99ef6b8adc10a729ac86d4cbf1179166776.tar.gz kernel-qcow2-util-linux-ff83f99ef6b8adc10a729ac86d4cbf1179166776.tar.xz kernel-qcow2-util-linux-ff83f99ef6b8adc10a729ac86d4cbf1179166776.zip |
umount: add hint about lsof & fuser
This patch adds a hint about lsof and fuser to the "device is busy"
error message.
Addresses-Red-Hat-Bugzilla: #145844
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount')
-rw-r--r-- | mount/umount.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mount/umount.c b/mount/umount.c index 9690f2ac0..5b9398793 100644 --- a/mount/umount.c +++ b/mount/umount.c @@ -152,7 +152,10 @@ static void complain(int err, const char *dev) { case EBUSY: /* Let us hope fstab has a line "proc /proc ..." and not "none /proc ..."*/ - error (_("umount: %s: device is busy"), dev); break; + error (_("umount: %s: device is busy.\n" + " (In some cases useful info about processes that use\n" + " the device is found by lsof(8) or fuser(1))"), dev); + break; case ENOENT: error (_("umount: %s: not found"), dev); break; case EPERM: |