Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46474 - umount -f doesn't work in some cases
Summary: umount -f doesn't work in some cases
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 05:13 UTC by Aaron Peterson
Modified: 2004-04-01 17:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Peterson 2004-04-01 05:13:37 UTC
Hi, I've had this problem on other distros too.. but, I just got bitten by it again.

umount -f does not work in lots of cases.
like when I'm in that directory..

It gives very stupid errors like:

umount2: Device or resource busy
umount: /dev/cdroms/cdrom0: not mounted
umount: /mnt/dvd: Illegal seek

the -f flag should force it... and there is no

Reproducible: Always
Steps to Reproduce:
1.mount /mnt/dvd (or other removable device
2.cd /mnt/dvd
3.umount /mnt/dvd


Actual Results:  
bash-2.05b# umount -f /mnt/dvd
umount2: Device or resource busy
umount: /dev/cdroms/cdrom0: not mounted
umount: /mnt/dvd: Illegal seek
umount2: Device or resource busy
umount: /mnt/dvd: device is busy
bash-2.05b#

Expected Results:  
user USERNAME has PATH open in TERMCONNECTION TYPE
Some programs are programmed so cruddily that they can't handel their disk going
way..
are you sure you want to unmount the disk? y/(n)
y
unmount of DEVICE forced.

Either that or annother command.
I know this isn't our package that did it, but if we can fix it that would be
super great.  I know that this has been a major headache to all of the newbies..
and old timers.. who are used to the "incorrect" MS Windows behavior that
somehow manages to deal with this problem.



       -f     Force  unmount  (in  case  of  an  unreachable  NFS   system).
              (Requires kernel 2.1.116 or later.)

       -l     Lazy  unmount. Detach the filesystem from the filesystem hier-
              archy now, and cleanup all references  to  the  filesystem  as
              soon  as  it  is not busy anymore.  (Requires kernel 2.4.11 or
              later.)
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-04-01 15:13:59 UTC
not sure we can or that we should. spanky, thoughts?
Comment 2 SpanKY gentoo-dev 2004-04-01 17:54:48 UTC
we could add it but like seemant said, it'd be changing the standard behavior

`umount -lf` to get it to go ... talk to upstream if you really want to see this happen