From owner-freebsd-questions Mon Jan 28 7:38:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id 015AD37B42F for ; Mon, 28 Jan 2002 07:38:45 -0800 (PST) Received: from dialup-65.56.132.239.dial1.chicago1.level3.net ([65.56.132.239] helo=pegasus) by harrier.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16VDrZ-0004Bk-00; Mon, 28 Jan 2002 07:38:30 -0800 Message-ID: <006401c1a811$d57660e0$ef843841@pegasus> From: "Bob Giesen" To: "Matthew D. Fuller" , "Marko Cuk" Cc: References: <20020126234617.C267@idefix.local> <5.1.0.14.0.20020127002514.01d56978@mail.drwilco.net> <20020127100745.A267@idefix.local> <00c401c1a743$2f8f9170$1200a8c0@gsicomp.on.ca> <20020127214638.A267@idefix.local> <002901c1a77a$a7027790$1200a8c0@gsicomp.on.ca> <3C54735D.5E2B3763@cuk.nu> <20020127154343.G75216@over-yonder.net> Subject: Re: file system undelete Date: Mon, 28 Jan 2002 09:38:27 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You might want to consider writing a "trashcan" script that will move files to a dedicated directory. Then, create an alias called "rm" that calls this script. (You can always type "/bin/rm" if you're sure you don't want to save something -- and you'll want to use "/bin/rm" in your scripts, if you don't want files saved.) Then, just take out the trash occasionally... maybe on the same night you put the hard cans out at the curb. :-) ----- Original Message ----- From: "Matthew D. Fuller" To: "Marko Cuk" Cc: Sent: Sunday, January 27, 2002 3:43 PM Subject: Re: file system undelete > On Sun, Jan 27, 2002 at 10:38:37PM +0100 I heard the voice of > Marko Cuk, and lo! it spake thus: > > Is there any way to undelete file under FreeBSD ? The file is on this partition > > : /dev/da0s1f on /usr (ufs, local, soft-updates) > > > > I have read the man undelete, but I don't understand, how to do that. > > You don't. > > From undelete(2): > ---- > Currently, this works only when the named object is a whiteout in a union > filesystem. The system call removes the whiteout causing any objects in > a lower layer of the union stack to become visible once more. > ---- > > Since you're not using a unionfs, undelete(2) doesn't do anything for > you. Also, note that it's in man section 2, which means it's a system > call (and not a program you can directly invoke) anyway. > > FreeBSD's FFS has no support for undeleting. Deleted means deleted. > > > > -- > Matthew Fuller (MF4839) | fullermd@over-yonder.net > Unix Systems Administrator | fullermd@futuresouth.com > Specializing in FreeBSD | http://www.over-yonder.net/ > > "The only reason I'm burning my candle at both ends, is because I > haven't figured out how to light the middle yet" > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message