From owner-freebsd-chat Sat Jun 3 17:21:27 2000 Delivered-To: freebsd-chat@freebsd.org Received: from theory1.physics.iisc.ernet.in (theory1.physics.iisc.ernet.in [144.16.71.20]) by hub.freebsd.org (Postfix) with SMTP id C7B8537BD40 for ; Sat, 3 Jun 2000 17:21:19 -0700 (PDT) (envelope-from rsidd@physics.iisc.ernet.in) Received: (qmail 24582 invoked from network); 4 Jun 2000 00:21:07 -0000 Received: from theory7.physics.iisc.ernet.in (qmailr@144.16.71.127) by theory1.physics.iisc.ernet.in with SMTP; 4 Jun 2000 00:21:07 -0000 Received: (qmail 25182 invoked by uid 211); 4 Jun 2000 00:21:00 -0000 Date: Sun, 4 Jun 2000 05:51:00 +0530 From: Rahul Siddharthan To: gh Cc: chat@freebsd.org Subject: Re: Why encourage stupid people to use *BSD WAS:Re: IE Message-ID: <20000604055100.A25126@physics.iisc.ernet.in> References: <200006021842.LAA24897@usr09.primenet.com> <393855D9.F5F0E5F0@mail.ptd.net> <20000603095822.A13686@physics.iisc.ernet.in> <011b01bfcd75$3706e650$2969a0d0@leviathan> <20000603225029.A13363@physics.iisc.ernet.in> <001301bfcd89$467130a0$2969a0d0@leviathan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <001301bfcd89$467130a0$2969a0d0@leviathan>; from grasshacker@linkfast.net on Sat, Jun 03, 2000 at 01:26:46PM -0500 X-Operating-System: Linux 2.2.14 alpha X-Question: Do you enjoy reading pointless headers? Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org gh said on Jun 3, 2000 at 13:26:46: > > gh said on Jun 3, 2000 at 11:03:10: > > > > > > > > What's wrong with having an undelete command, if someone can implement > > > > one? > > > > > > What a silly question. > > > For an operating system to have an ``undelete'' option, the OS must > maintain > > > a copy of the deleted files...which defeats the purpose of deleting the > damn > > > files. > > > > man 2 undelete > > > > Basically, a delete/rm command doesn't physically erase data from the > > disk, it only removes the file entry. The data may still be there if > > you're lucky. I don't know what the issues are with ufs, however. > > With an msdos filesystem it's pretty straightforward to get the data > > back if that hard disk space hasn't been written over in the meantime. > > > > True, but in order to have a *guaranteed*(mostly) recovery of the file, a > journaling file system or something similar would be necessary. We're not talking about guaranteed recovery -- that's not possible on MSDOS either. (Incidentally, the undelete command on MSDOS wasn't originated by Microsoft -- I think it was Peter Norton. Microsoft didn't include it with their OS for several years.) There's an undeletion how-to for linux ext2 filesystems, http://www.linuxdoc.org/HOWTO/mini/Ext2fs-Undeletion.html those aren't journalled either. The procedure requires unmounting and stuff like that, definitely not for ordinary users. Still, undeleting is not impossible in principle, and if it can be implemented in a better way I don't see what's wrong with that. > > > Everybody makes mistakes; it is *NOT* the job of the operating system > > > to pick up the poopoo left after the mistake. > > > > But it helps... > > > > ...so does learning from mistakes. So a text editor shouldn't have an undo command either, because then people would learn to type without mistakes? Nobody deletes an important file because they're confident of undeleting it later, not even windows users. It's always an accident and it can happen to the best people. R. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message