On Wed, May 16, 2012 at 02:48:56PM -0400, Gary Dale wrote: > On 16/05/12 12:49 PM, lina wrote: > >Hi, > > > >Today I made some mistake, > > > >I mount the remote server my home directory into local laptop. > > > >when I tried to umount it, I justed type the rm -r remote_mount_dir > > > >after I realize it, seems some directoy under ~/home has removed, > > > >one is .ssh, obviously. > > > >others I couldn't tell, like: > > > >-bash-3.2$ firefox > >Error: no display specified > >-bash-3.2$ xterm > >xterm Xt error: Can't open display: > >xterm: DISPLAY is not set > > > >what's the sequence of rm-ing do? I mean, based on which order it > >removes file. > >are there some history records those romove process. > > > >Thanks, > > > >Best regards, > > > > > What the F! are you doing using rm -r to umount it with rm -r? > > The correct sequence of actions if you want to mount point to be > deleted after you're done with it is: > > umount ~/<mount_point> > rmdir <mount_point> >
I was kind of thinking the same thing...rm to umount a remote dir? But, shouldn't it be fusermount -u <mount_point> ?? This is what I use if mounting remote dirs with sshfs, anyway. Tony -- http://www.tonybaldwin.me all tony, all the time! 3F330C6E
signature.asc
Description: Digital signature