cloning a FreeBSD HDD
Darren Pilgrim
darren.pilgrim at bitfreak.org
Tue Apr 4 17:59:23 UTC 2006
Khaled Hussain wrote:
> 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?
No. The above is the label inside a single slice. a: is the first
partition within that slice. Use fdisk to look at your slices. If you
really are getting the above from /dev/ad2 rather than /dev/ad2sN where N is
a number from 1 to 4, then it's in dedicated mode and the issue is moot,
since there's no slice table.
More information about the freebsd-hackers
mailing list