Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2002 09:38:27 -0600
From:      "Bob Giesen" <BobGiesen@earthlink.net>
To:        "Matthew D. Fuller" <fullermd@over-yonder.net>, "Marko Cuk" <cuk@cuk.nu>
Cc:        <questions@FreeBSD.ORG>
Subject:   Re: file system undelete
Message-ID:  <006401c1a811$d57660e0$ef843841@pegasus>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
   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" <fullermd@over-yonder.net>
To: "Marko Cuk" <cuk@cuk.nu>
Cc: <questions@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006401c1a811$d57660e0$ef843841>