From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 4 10:51:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E423616A424 for ; Tue, 4 Apr 2006 10:51:42 +0000 (UTC) (envelope-from khaled@ipbill.com) Received: from mail.ipbill.com (mail.ipbill.com [217.73.64.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35F8243D45 for ; Tue, 4 Apr 2006 10:51:42 +0000 (GMT) (envelope-from khaled@ipbill.com) Received: (qmail 93499 invoked from network); 4 Apr 2006 10:51:41 -0000 Received: from unknown (HELO elzidpc) (192.168.129.50) by mail.ipbill.com with SMTP; 4 Apr 2006 10:51:41 -0000 From: "Khaled Hussain" To: "Peter Jeremy" Date: Tue, 4 Apr 2006 11:49:19 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20060404104031.GI683@turion.vk2pj.dyndns.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: FreeBSD Hackers Subject: RE: cloning a FreeBSD HDD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 10:51:43 -0000 Hi Jeremy, Thanks for the clarification...at the moment I am trying to set a boot manager on my disk but am unsure which slice to set as the default boot selection when using the boot0cfg command. boot0cfg -Bv -s? ad2 disklabel -r ad0 (on a different bsd system) gives: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 204800 0 4.2BSD 0 0 0 # (Cyl. 0 - 12*) b: 2104640 204800 swap # (Cyl. 12*- 143*) c: 117258372 0 unused 0 0 # (Cyl. 0 - 7298*) e: 40960 2309440 4.2BSD 0 0 0 # (Cyl. 143*- 146*) f: 114907972 2350400 4.2BSD 0 0 0 # (Cyl. 146*- 7298*) Am I correct in assuming that a: is slice 1, b: is slice 2, etc? If so then the slice to make bootable would be slice 3 in the following setup (which is my disk): 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 2048642 310528000 swap # (Cyl. 19329*- 19456*) c: 312576642 0 unused 0 0 # (Cyl. 0 - 19456*) e: 310528000 0 4.2BSD 0 0 0 # (Cyl. 0 - 19329*) Kind Regards Khaled > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org > [mailto:owner-freebsd-hackers@freebsd.org]On Behalf Of Peter Jeremy > Sent: 04 April 2006 11:41 > To: Khaled Hussain > Cc: FreeBSD Hackers > Subject: Re: cloning a FreeBSD HDD > > > On Tue, 2006-Apr-04 11:12:03 +0100, Khaled Hussain wrote: > >Why does everyone talk about dump+restore as a pair? I thought it was > >possible just to dump a filesystem to a different hard disk i.e. > >dump -0a -f /dev/ad2 / > > It is. But /dev/ad2 will have a dumpfile on it, not a filesystem. > The only thing that can then read /dev/ad2 is restore. > > >Also, how can I find out which /boot/boot# file a freebsd system > is using by > >default? > > None of the ones in the filesystem - these files are embedded into the > beginning of the hard disk. > > One of boot0, boot0sio or mbr is located in absolute sector 0 of the disk. > boot1 is located in sector 0 of the bootable slice > boot2 is located in the (I think) sectors 1-15 of partition a. > > -- > Peter Jeremy > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ >