Re: mounted multiple times

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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/>
> 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux