Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2006 11:49:19 +0100
From:      "Khaled Hussain" <khaled@ipbill.com>
To:        "Peter Jeremy" <peterjeremy@optushome.com.au>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   RE: cloning a FreeBSD HDD
Message-ID:  <HCEOIFALKKLBLJPENPNOAENECAAA.khaled@ipbill.com>
In-Reply-To: <20060404104031.GI683@turion.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> ______________________________________________________________________
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HCEOIFALKKLBLJPENPNOAENECAAA.khaled>