Jeff Vian wrote:
On Wed, 2005-11-30 at 13:26 -0400, Trevor TeC Christian wrote:
On Wed, November 30, 2005 12:55 pm, Jack Tanner said:
On an FC4 client, I'm mounting an smbfs filesystem over the network. In
/etc/fstab, I have
//server/share /mount/point smbfs
credentials=/home/user/.smbcreds,noauto,user 0 0
The user's .bash_profile contains the actual mount command, which goes off
without a hitch. Consequently, the user can issue
$ umount /mount/point
when necessary.
It's all well and good, until the user connects to the FC4 client twice,
and
runs two xterms which both source .bash_profile.
Now the mount command has been issued twice, so here's what happens:
Should script such that the share isn't mounted unless it isn't already
mounted.
$ umount /mount/point
umount: it seems /mount/point is mounted multiple times
Well, yes, it has been mounted multiple times; but how can the user
unmount
it now?
One should be able to use ps to find the PID of the mounts and kill them
directly i believe.
ps ax | grep mount
then kill -9 the corresponding PID's
Mount does not leave an active process running. Thus this would have no
affect. Did you test your idea?
Yea... I've done it in the past mostly when accidentally mounting a
samba share that was already mounted. I killed the mounts and it worked.
Tried it today on my current machine and had no effect. I posted the
solution that worked for me.
Hope this helps.
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
*Trevor "TeC" Christian*
Cell #: (767) 225 4472
IM
MSN: trevorc98@xxxxxxxxxxx / trevor@xxxxxxxxxxxxxxxxx
YM : trevorc01
AIM: DoubleOTeC
GoogleTalk: doubleOTeC@xxxxxxxxx
------------------------------------------------------------------------
Home Page <http://trevor.bouyon.dalive.com//>
Curriculum Vitae <http://bouyon.dalive.com/cv/>
Dalive Market <http://www.dalivemarket.com/>
--
*Trevor "TeC" Christian*
/TeC Productions Studios/
Cell #: (767) 225 4472
IM
MSN: trevorc98@xxxxxxxxxxx / trevor@xxxxxxxxxxxxxxxxx
YM : trevorc01@xxxxxxxxx
AIM: DoubleOTeC
GoogleTalk: doubleOTeC@xxxxxxxxx
------------------------------------------------------------------------
Home Page <http://trevor.bouyon.dalive.com/>
Curriculum Vitae <http://bouyon.dalive.com/cv/>
Dalive Market <http://www.dalivemarket.com/>