FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-17-2012, 05:38 PM
Panayiotis Karabassis
 
Default something about rm

On 17/05/2012 04:05 μμ, Gary Dale wrote:
> On 17/05/12 03:48 AM, Panayiotis Karabassis wrote:
>> 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". :-)
>>
> "It's"? Shouldn't that be "He's a she"?
>
:-D :-D :-D


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FB537A0.3090908@gmail.com">http://lists.debian.org/4FB537A0.3090908@gmail.com
 
Old 05-18-2012, 01:55 PM
Arnt Karlsen
 
Default something about rm

On Thu, 17 May 2012 20:38:40 +0300, Panayiotis wrote in message
<4FB537A0.3090908@gmail.com>:

> >>> I suspect that file recovery is his current priority.
> >>>
> >>>
> >> It's a "she". :-)
> >>
> > "It's"? Shouldn't that be "He's a she"?
> >
> :-D :-D :-D

..that I gather would depend on the exact timing of the chain
of events in this, er, operation (or accident?), even "She's
a she?" might be wrong in a few conceivable scenarios in this
post-9/11 era. ;o)

--
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120518155534.787db3d2@celsius.lan">http://lists.debian.org/20120518155534.787db3d2@celsius.lan
 

Thread Tools




All times are GMT. The time now is 09:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org