LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   umount problem (this time it's a weird one) (https://www.linuxquestions.org/questions/linux-general-1/umount-problem-this-time-it%27s-a-weird-one-223674/)

holst 08-28-2004 06:42 PM

umount problem (this time it's a weird one)
 
I have a "bind" mount from a place on my harddrive (from inside "/opt") to a "/stuff" directory. Now I want to unmount it but I am not allowed. This is what I get:
Code:

# sudo umount -f /stuff
umount2: Device or resource busy
umount: /opt/glftpd/site/stuff: not mounted
umount: /stuff: Illegal seek
umount2: Device or resource busy
umount: /stuff: device is busy

# sudo fuser -v -k /stuff

                    USER        PID ACCESS COMMAND
/stuff              root    kernel mount  /stuff
No automatic removal. Please use  umount /stuff

Any ideas how I can unmount w/o having to reboot my computer? Yes a reboot will work but I first want to know *WHY* I must reboot and my problem can't be solved in normal way (i..e close pid accessing /stuff dir and then umount...)

Tinkster 08-28-2004 06:50 PM

What distro are you using, have you got FAM
or supermount or something silly like that going?


Cheers,
Tink

holst 08-28-2004 07:06 PM

I don't got supermount installed and as "FAM" goes I must ask.. what is that? :-)

My distribution is Gentoo w/ some "old-and-borked-but-it's-mine-and-i-like-it" patches -- no mount patches duh :-)

Tinkster 08-28-2004 07:09 PM

FAM is a daemon that monitors file-access and
fill-status of partitions.


Cheers,
Tink

holst 08-28-2004 07:11 PM

Nope.. No FAM installed either then.

Tinkster 08-28-2004 07:48 PM

How is it being mounted?

holst 08-28-2004 08:17 PM

From a Bash script that I execute after boot.
Code:

mount --bind /opt/glftpd/site/stuff /stuff
I *might* have used "rbind" instead of "bind" in the statement above since I know I have had rbind instead of bind in that script before. I don't know if I changed back to "bind" this time after boot or if it was earlier... It's been a while since the last reboot so I really can't say. (Should keep change-logs even for simple scripts i assume...) The switch between rbind and bind was for me not noticable so I reverted back to using just "bind".
Code:

# mount
...
/stuff on /opt/glftpd/site/stuff type none (rw,bind)
...



All times are GMT -5. The time now is 10:38 PM.