From owner-freebsd-sparc64@FreeBSD.ORG Fri May 24 19:22:25 2013 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C89765DE for ; Fri, 24 May 2013 19:22:25 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [IPv6:2a01:170:1047::9]) by mx1.freebsd.org (Postfix) with ESMTP id 8B3AAB08 for ; Fri, 24 May 2013 19:22:25 +0000 (UTC) Received: by uriah.heep.sax.de (Postfix, from userid 107) id 4BEE7468; Fri, 24 May 2013 21:22:23 +0200 (MET DST) Date: Fri, 24 May 2013 21:22:23 +0200 From: Joerg Wunsch To: freebsd-sparc64@freebsd.org Subject: Re: disk block failing on root disk on sun blade 1000 Message-ID: <20130524192223.GJ25595@uriah.heep.sax.de> References: <519F2090.9070000@gmx.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <519F2090.9070000@gmx.it> X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Joerg Wunsch List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2013 19:22:25 -0000 As fddi wrote: > so my question is how can I backup the rootfs and restore it with its > boot block when I replace the root disk partition with a brand new disk ? sunlabel da0 > /tmp/label sunlabel -Bw da1 /tmp/label should work, IMHO. Afterwards, create and mount the filesystem, and dump | restore. -- cheers, Joerg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)