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

Re: something about rm



On 17/05/2012 06:20 πμ, Gary Dale wrote:
> On 16/05/12 08:50 PM, Tony Baldwin wrote:
>> 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
> Excellent point, if he was using sshfs. I found it hard to figure out
> exactly what he was doing. :)
>
> I suspect that file recovery is his current priority.
>
>
It's a "she". :-)


Reply to: