Re: Help! Accidentally started deleting /usr

2001-04-10 Thread omicron
hi one trick is touch -- -i in all the key directories, beginning wtih /. then rm -fr / makes it look as though it is rm -rf -i , which makes it interactive again. or else touch .NODEL /usr/ chattr +i /usr/.NODEL hope this helps regards omicron On Mon, 9 Apr 2001, David

Re: Help! Accidentally started deleting /usr

2001-04-09 Thread Rob Mahurin
On Mon, Apr 09, 2001 at 11:18:10AM +0930, Mark Phillips wrote: All that an undelete would involve (as I currently see it) is: 1. Have rm move files to a waste basket instead of deleting them outright. 2. After files have been in the waste basket a certain length of time, say 5 days,

Re: Help! Accidentally started deleting /usr

2001-04-09 Thread will trillich
I've seen folks deride the use of alias rm 'rm -i' because it encourages sloppy thinking, and that one time when you're logged in from somewhere unusual and you don't actually have that alias available POOF you'll zap more than you expect (because there'll actually be no '-i' supplied to

Re: Help! Accidentally started deleting /usr

2001-04-09 Thread Jaye Inabnit ke6sls
On Sunday 08 April 2001 18:48, Mark Phillips wrote: Large text msg removed. Hey, I have been in the OOPS directory too. I was a little luckier depending on how you look at it, since I first do my routine stuff as user THEN move to root for those tasks that are required then back. After

Re: Help! Accidentally started deleting /usr

2001-04-09 Thread David Wright
Quoting will trillich ([EMAIL PROTECTED]): I've seen folks deride the use of alias rm 'rm -i' Absolutely. Just train yourself to type -i for rm, mv, cp... If that is the case, then why not mv /bin/rm /bin/e-rad-i-cate and break all the scripts. OTOH there's nothing to

Re: Help! Accidentally started deleting /usr

2001-04-08 Thread Karsten M. Self
on Sat, Apr 07, 2001 at 11:56:26AM -0600, Joe 'Zonker' Brockmeier ([EMAIL PROTECTED]) wrote: Hey all, By the way, is there any way of setting up an undelete for averting this kind of disaster? My Dad mentioned that Novell Netware has an undelete which basically puts off really deleting

Re: Help! Accidentally started deleting /usr

2001-04-08 Thread Mark Phillips
Well it sounds like this might get to the stage where we should just agree to disagree, but for now I'll throw in a few more thoughts... Joe 'Zonker' Brockmeier [EMAIL PROTECTED] wrote: Good lord, please NO. Having an undelete, IMHO, leads to very sloppy practices - better to learn to

Re: Help! Accidentally started deleting /usr

2001-04-08 Thread Daniel Freedman
On Mon, Apr 09, 2001, Mark Phillips wrote: Well it sounds like this might get to the stage where we should just agree to disagree, but for now I'll throw in a few more thoughts... snip Indeed, this is basically the approach other people have recently suggested for implementing my own

Help! Accidentally started deleting /usr

2001-04-07 Thread Mark Phillips
I created a directory /opt/tmp and later wanted to delete it, but I accidentally typed rm -r usr instead (within the /opt directory). I realized my mistake fairly quickly and ctrl-C-ed it, but some files have been deleted. In particular I've deleted dpkg and apt-get!!! I think I've got a

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Gavin Hamill
I created a directory /opt/tmp and later wanted to delete it, but I accidentally typed rm -r usr instead (within the /opt directory). What is the best way to restore my system to health? I suggest you read the recent archives of this list, as some poor guy did much the same as you The

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Mark Phillips
On Sat, 7 Apr 2001, Gavin Hamill wrote: The short answer is: restore from your backups :) No backups? Copy all important stuff to your other machine, reinstall from scratch, and learn from the experience :) No backups. This machine needs to be working by tomorrow (if at all possible) so I

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Mark Phillips
Thanks Gavin for your help! I managed to restore my system!! What I did, was use dpkg --get-selections to find out what packages were installed on my system. I redirected this to a file and then edited it. I turned it into a script which ran apt-get --reinstall install list of

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Daniel Freedman
On Sun, Apr 08, 2001, Mark Phillips wrote: Thanks Gavin for your help! I managed to restore my system!! What I did, was use dpkg --get-selections to find out what packages were installed on my system. I redirected this to a file and then edited it. I turned it into a script which ran

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Joe 'Zonker' Brockmeier
Hey all, By the way, is there any way of setting up an undelete for averting this kind of disaster? My Dad mentioned that Novell Netware has an undelete which basically puts off really deleting stuff for about 5 days --- unless it has to because of lack of space. This sounds like a _very_

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Mark Phillips
Joe 'Zonker' Brockmeier [EMAIL PROTECTED] wrote: Hey all, By the way, is there any way of setting up an undelete for averting this kind of disaster? My Dad mentioned that Novell Netware has an undelete which basically puts off really deleting stuff for about 5 days --- unless it has to

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Roberto Diaz
I don't have the luxury of a CD burner. I backup to the hard drive of another machine. I don't have room to do a full backup, but a backup of the important bits should be enough to recover --- just that it might take a little longer. An undelete feature would mean a reduction in the number

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Joe 'Zonker' Brockmeier
On Sun, 8 Apr 2001, Mark Phillips wrote: Good lord, please NO. Having an undelete, IMHO, leads to very sloppy practices - better to learn to make backups of important data - and to use the root account with care. That kind of argument is like saying you shouldn't bring life-jackets

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Roberto Diaz
And of course a good impovement for this would be to gzip first your file then add it using tar to a backup file an finally remove it.. Just play with it.. #!/bin/bash backup_dir=/usr/local/share/secure/backup for i in $* do # fix: comprobe first if the file exist in the backup and

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Alvin Oga
hi ya mv will NOT move stuff across filesystems ( partitions ) so the myrm shown below will NOT work properly... - it'd make things worst ... half is still stuck in /usr and the files that were moved is ins $backup_dir - - dont use rm - force rm to ask if its okay (

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Roberto Diaz
mv will NOT move stuff across filesystems ( partitions ) What do you mean? take a look of info mv: -- `mv' can move any type of file from one filesystem to another. Prior to version `4.0' of the fileutils, `mv' could move only

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread Roberto Diaz
- it'd make things worst ... half is still stuck in /usr and the files that were moved is ins $backup_dir And remember it was pseudocode.. using a little bit of time it is possible to implement a complete functional undelete (of course always using a file to save your deleted

Re: Help! Accidentally started deleting /usr

2001-04-07 Thread John Patton
It is possible, although not particularly easy, to genuinely recover deleted files. Check out the following link... especially the article Bring out your dead: http://www.fish.com/forensics/ It's a pretty cool site regarless. -- John Patton [EMAIL PROTECTED] Get my GnuPG