From owner-freebsd-questions Thu Jan 30 18:51:49 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B88737B401 for ; Thu, 30 Jan 2003 18:51:47 -0800 (PST) Received: from lightning.adam.com.au (lightning.adam.com.au [203.2.124.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6387D43E4A for ; Thu, 30 Jan 2003 18:51:46 -0800 (PST) (envelope-from bastill@adam.com.au) Received: (qmail 9373 invoked by uid 65534); 31 Jan 2003 02:51:44 -0000 Received: from 202.6.144.106 ( [202.6.144.106]) as user bastill@mail.adam.com.au by webmail.adam.com.au with HTTP; Fri, 31 Jan 2003 13:21:44 +1030 Message-ID: <1043981504.3e39e4c0b6e66@webmail.adam.com.au> Date: Fri, 31 Jan 2003 13:21:44 +1030 From: bastill@adam.com.au To: Grant Peel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Ooops. References: <005601c2c8c5$47735b10$6501a8c0@grant> In-Reply-To: <005601c2c8c5$47735b10$6501a8c0@grant> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 202.6.144.106 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 Quoting Grant Peel : > Hi all, > > Two hard drives. > > da0s1 > da1s1 > > da0 is primary boot and OS drive. > > da1 is a mirror drive. > > da1's filesystems are mounted on /mnt. > > Silly me runs a rm -rf * while in /mnt . > > Next thing I know EVERYTHING is gone. > > What did I miss here? Been there - done that! :-( rm will, unless specifically denied (I THINK you can do that), also follow symlinks. In my case I was copying files from one HD to another, put one in the wrong place, and deleted it using rm -rf , only to find that it deleted the original as well! :-( I'm looking at two possible undelete options. ffsrecov (in ports) and recover ftp://gatekeeper.dec.com/pub/sysadm/recover.tar.Z One of them might work for you. PS I think rm needs looking at so it defaults to NOT deleting copy AND source by default. -- Brian > > -Grant > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > ----------------------------------------------- This message sent through Adam Internet Webmail http://www.adam.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message