From owner-freebsd-questions@FreeBSD.ORG Mon Aug 9 18:34:00 2004 Return-Path: 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 C4A7216A4CE for ; Mon, 9 Aug 2004 18:34:00 +0000 (GMT) Received: from lilzmailso01.liwest.at (lilzmailso01.liwest.at [212.33.55.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CFA143D1D for ; Mon, 9 Aug 2004 18:34:00 +0000 (GMT) (envelope-from dgw@liwest.at) Received: from cm248-230.liwest.at ([81.10.248.230]) by lilzmailso01.liwest.at with esmtp (Exim 4.24) id 1BuEy2-0000eJ-Rc for questions@freebsd.org; Mon, 09 Aug 2004 20:33:54 +0200 From: Daniela To: questions@freebsd.org Date: Mon, 9 Aug 2004 19:28:20 +0000 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408091928.20307.dgw@liwest.at> Subject: Accidentally truncated crontab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dgw@liwest.at List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 18:34:00 -0000 Hi all! I just emptied the system crontab, and don't know how I can recover it. I know that the contents are still somewhere on the drive, as I didn't write anything on that partition. The size of the file must be stored somewhere in the inode, or maybe in the directory, so I could just load the raw partition into my hexeditor and change that field to the original length. But I thought I'd better not touch it without consulting the experts first, because I don't have much experience with file systems. In the ports I couldn't find an undelete utility, and the -w option to rm doesn't work here. Please help me, or at least tell me that there's nothing else I can do, so I can use the method mentioned above. Regards, Daniela