From owner-freebsd-security Wed Aug 25 3:25:20 1999 Delivered-To: freebsd-security@freebsd.org Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (Postfix) with ESMTP id 0CBD714EEB for ; Wed, 25 Aug 1999 03:25:16 -0700 (PDT) (envelope-from nick.hibma@jrc.it) Received: from elect8 (elect8.jrc.it [139.191.71.152]) by mrelay.jrc.it (LMC5692) with SMTP id MAA25957; Wed, 25 Aug 1999 12:24:02 +0200 (MET DST) Date: Wed, 25 Aug 1999 12:23:42 +0200 (MET DST) From: Nick Hibma X-Sender: n_hibma@elect8 Reply-To: Nick Hibma To: Andrew Kenneth Milton Cc: uldisk@kb.lkb.bkc.lv, freebsd-security@FreeBSD.ORG Subject: Re: undelete In-Reply-To: <199908251012.UAA83465@mail.theinternet.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Pretty sure that ufs does _not_ have undelete. The undelete feature in FAT is based on taking the name of the file you want to undelete, replace the first character with 0x2d and try whether the clusters are allocated or not. In Windows it is simply based on moving the file out of the way instead of deleting it, and keeping track of where the file went. In ext2fs I guess it must be something similar. I know of know such mechanism in ufs. Also the words 'undelete' and 'recover' do not appear in the source of ufs, ffs, mfs. So, you might be out of luck. Below the list of directories on that partition that you should have. Nick /var /var/tmp /var/tmp/vi.recover /var/account /var/at /var/at/jobs /var/at/spool /var/backups /var/crash /var/cron /var/cron/tabs /var/db /var/db/pkg /var/log /var/mail /var/msgs /var/preserve /var/run /var/rwho /var/spool /var/spool/lock /var/spool/lpd /var/spool/mqueue /var/spool/output /var/spool/output/lpd /var/spool/uucp /var/spool/uucp/.Preserve /var/spool/uucp/.Sequence /var/spool/uucp/.Status /var/spool/uucp/.Temp /var/spool/uucp/.Xqtdir /var/spool/uucppublic /var/spool/opielocks /var/yp /var/games /var/games/hackdir /var/games/hackdir/save /var/games/larn /var/games/phantasia /var/adm /var/adm/tcheck /var/adm/tcheck/databases > | Good joke :) > | Because this system have no tapes. > | I was admin for this sys only 2 days. > | Needs to undelete only /var .. > | > | Linux has MC. That can undelete files from ext2fs. > | May be FreeBSD also has MC with this feature? > > Midnight Commander is available from the ports tree: > > /usr/ports/misc/mc > > I dunno if it can undelete though. > > You should really have backups though (and better staff as well it seems) > even if you have to backup across the network. > > -- > Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew > The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | Milton > ACN: 082 081 472 | M:+61 416 022 411 |72 Col .Sig > PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|Specialist > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message > -- ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message