From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 02:52:11 2003 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 278F237B401 for ; Wed, 16 Apr 2003 02:52:11 -0700 (PDT) Received: from mail.rz.uni-ulm.de (gemini.rz.uni-ulm.de [134.60.246.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 048F443F75 for ; Wed, 16 Apr 2003 02:52:10 -0700 (PDT) (envelope-from Siegbert.Baude@gmx.de) Received: from gmx.de (lyra.rz.uni-ulm.de [134.60.246.140]) (authenticated bits=0) by mail.rz.uni-ulm.de (8.12.9/8.12.9) with ESMTP id h3G9q81d028489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 16 Apr 2003 11:52:08 +0200 (MEST) Message-ID: <3E9D27C8.7060803@gmx.de> Date: Wed, 16 Apr 2003 11:52:08 +0200 From: Siegbert Baude User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3) Gecko/20030323 X-Accept-Language: de-de, de, en-us, en MIME-Version: 1.0 To: David David References: <20030416010121.GB61362@webserver.get-linux.org> <20030416011940.27587.qmail@web11307.mail.yahoo.com> <20030416012736.GA62320@webserver.get-linux.org> In-Reply-To: <20030416012736.GA62320@webserver.get-linux.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: MBR, Partition File recover X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 09:52:11 -0000 Hi David, Josh explained the gpart method perfectly, this tool once did a great job for my friend's disk, too. :-) To make things less complicated in cases of future disaster, just keep a printout of your partition table in a safe place. > Before i do this, is there a way of making a complete copy of the > drive first? I can store it on another drive in the system. I've been > going through dd man page, and searching on the net, but have not yet > found a way of doing. dd if=/dev/ad0 of=/dev/ad1 bs=128k To backup your first hard disk to your second hard disk. The second one of course must be at least as big as your first one. Short annotation: bs=128k speeds up backup significantly for IDE disks. For SCSI the best value with standard settings is bs=64k IIRC. To be sure, search the archives, I'm sure that it was posted by Greg Lehey. Ciao Siegbert