Josef Karthauser joe at
Thu Sep 20 11:50:42 BST 2001

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 20, 2001 at 02:08:29AM +0100, Brian Somers wrote:
> > On Wed, Sep 19, 2001 at 05:56:21PM +0100, Thomas Beauchamp wrote:
> > > Hi!
> > >=3D20
> > > On my FreeBSD  4.2 server, logged as 'root', I type by mistake follow=
> > > command:
> > >=3D20
> > > rm -R / *.eml
> > >=3D20
> > > What is the extent of the damage, please.
> > >=3D20
> > > It looks as if almost everything is erased.
> >=20
> > Whoops.  It's not going to be easy to fix.  Will almost definitely
> > require a reinstall.
> >=20
> > It _may_ be possible to recover some of the data, but I don't know
> > off the top of my head whether there are any tools around for that.
> Indeed.  This is the electronic equivalent to blowing your foot off=20
> with a sawn-off shotgun and asking if there's any way of walking=20
> again.
> The answer is yes, but you'll need to get yourself a new foot (or=20
> restore your foot from a backup).

For the benefit of the list, this is what I sent him privately;

Shut the machine down.
Bring up FreeBSD on a new drive.
Plug this drive in on another drive channel, but don't install anything
on it.
Install the following ports on the new machine:
    Port:   ffsrecov-0.5
    Path:   /usr/ports/sysutils/ffsrecov
    Info:   Recover files from a corrupt FFS
    Maint:  ports at
    Index:  sysutils
    Port:   gpart-0.1h
    Path:   /usr/ports/sysutils/gpart
    Info:   Tries to recover lost partition tables and file systems
    Maint:  andrew at
    Index:  sysutils
    B-deps: gettext-0.10.35 gmake-3.79.1
You _may_ find them helpful in recovering the data, although I've got no
experience of them.

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see



More information about the Ukfreebsd mailing list