From: Karel Zak Date: Mon, 28 Jan 2008 11:52:04 +0000 (+0100) Subject: umount: add hint about lsof & fuser X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff83f99ef6b8adc10a729ac86d4cbf1179166776;p=util-linux 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 --- diff --git a/mount/umount.c b/mount/umount.c index 9690f2ac..5b939879 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: