From owner-freebsd-stable Sat Nov 9 19:54:45 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB39C37B401 for ; Sat, 9 Nov 2002 19:54:43 -0800 (PST) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72E8143E42 for ; Sat, 9 Nov 2002 19:54:40 -0800 (PST) (envelope-from eugen@kuzbass.ru) Received: from kuzbass.ru (kost [213.184.65.82]) by www.svzserv.kemerovo.su (8.12.6/8.12.5) with ESMTP id gAA3sbNf015774; Sun, 10 Nov 2002 10:54:37 +0700 (KRAT) (envelope-from eugen@kuzbass.ru) Message-ID: <3DCDD873.F498DFC2@kuzbass.ru> Date: Sun, 10 Nov 2002 10:54:27 +0700 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: Phil Kernick Cc: stable@FreeBSD.ORG Subject: Re: backups of SUPERBLOCK References: <3DCDCB60.1D1A34C2@kuzbass.ru> <3DCDCD1D.6030506@Kernick.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Phil Kernick wrote: > > Eugene Grosbein wrote: > > > > Is there an official way to get list of superblock backups for existing > > filesystem, other than backup/newfs/restore ? > > > > Yes. Use newfs -N which will print out the superblock locations. My > experience also tells me to also put exactly the same parameters on the newfs > line that you used when you originally created the volume. > > From the newfs(8) manpage: > -N Cause the file system parameters to be printed out without really > creating the file system. Thank you. But how do I known parameters of existing filesystem? disklabel ad0 shows, in partcular: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 102400 524288 4.2BSD 0 0 0 # (Cyl. 32*- 39*) b: 524288 0 swap # (Cyl. 0 - 32*) c: 12594897 0 unused 0 0 # (Cyl. 0 - 783*) e: 3072000 626688 4.2BSD 1024 8192 22 # (Cyl. 39*- 230*) f: 1024000 3698688 4.2BSD 0 0 0 # (Cyl. 230*- 293*) g: 2048000 4722688 4.2BSD 0 0 0 # (Cyl. 293*- 421*) h: 5824209 6770688 4.2BSD 1024 8192 22 # (Cyl. 421*- 783*) How do I know real parameters of 'f' and 'g' partitions and why zeroes are there? Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message