mounted multiple times

Jeff Vian jvian10 at charter.net
Thu Dec 1 01:41:16 UTC 2005


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?

> Hope this helps.
> 
> >
> > --
> > fedora-list mailing list
> > fedora-list at redhat.com
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> >
> 
> 
> -- 
> *Trevor "TeC" Christian*
> Cell #: (767) 225 4472
> IM
>    MSN: trevorc98 at hotmail.com / trevor at bouyon.dalive.com
>    YM : trevorc01
>    AIM: DoubleOTeC
>    GoogleTalk: doubleOTeC at gmail.com
> ------------------------------------------------------------------------
> Home Page <http://trevor.bouyon.dalive.com//>
> Curriculum Vitae <http://bouyon.dalive.com/cv/>
> Dalive Market <http://www.dalivemarket.com/>
> 




More information about the users mailing list