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 Wri
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
On Sunday 08 April 2001 18:48, Mark Phillips wrote:
http://www.qsl.net/ke6sls ICQ: 12741145
If it's stupid, but works, it ain't stupid. SHOUT JUST FOR FUN.
Free software, in a free world, for a free spirit. Please Support freedom!
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
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 day
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...
>
> Indeed, this is basically the approach other people have recently
> suggested for implementing my own und
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 le
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
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
> - 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" fi
> 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 reg
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
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 a
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-jac
> 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 nu
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
>
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 _ve
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 wh
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
on every pac
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 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
T
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 part
22 matches
Mail list logo