ZFS not usable on FreeBSD-8.1
rsmith at xs4all.nl
Tue Aug 17 16:50:34 UTC 2010
On Tue, Aug 17, 2010 at 11:06:12AM +0200, Dick Hoogendijk wrote:
> On 16-8-2010 20:14, Roland Smith wrote:
> > It could be that newfs is overwriting the partition table.
> > Can you post the output of 'gpart show<device>' and 'bsdlabel<device>s1'?
> westmark# gpart show ad8
> => 63 976773105 ad8 MBR (466G)
> 63 976773105 1 freebsd [active] (466G)
> westmark# bsdlabel ad8s1
> # /dev/ad8s1:
> 8 partitions:
> # size offset fstype [fsize bsize bps/cpg]
> a: 2097152 0 4.2BSD 0 0 0
> b: 12582912 2097152 swap
> c: 976773105 0 unused 0 0 # "raw" part,
> don't edit
> d: 16777216 14680064 4.2BSD 0 0 0
> e: 41943040 31457280 4.2BSD 0 0 0
> f: 903372785 73400320 4.2BSD 0 0 0
Ok. That looks good.
> I dumped/restored the system to ad8 yesterday and booted from it.
> The system *did* boot but (alas) the /dev/ads1a(f) slices were mounted.
> So, the system loaded the *old* root partitions (from the first drive).
> After googling and reading I think I need *boot0cfg* but I'm a bit scary
> to ruin my new boot (ad8) drive.
You can use either boot0cfg or fdisk. The first option gives you the splash
screen with the menu choice between normal booting, single user etc. You can
install this with 'boot0cfg -B ad8'. The boot block installed by 'fdisk -B
ad8' does not give you the menu, but gives you a boot prompt which defaults to
normal booting after a couple of seconds. You can still boot into single mode
with the boot prompt.
Both methods only affect the boot block, they do not change the slice table.
> So, what is the exact syntax to make my system not only boot from ad8,
> but also mount the /deb/ad8s1 slice as root slice?
* Install one of the boot blocks, as mentioned above.
* Check with 'fdisk ad8' if the first slice is active. If not, run
'fdisk -a ad8'.
* You'll need to change /etc/fstab on ad8s1a! Best do this before
rebooting. It's easier. :-)
* Make sure that /boot/ is there and populated on ad8s1a!
Then you can re-boot, and make ad8 the first device to boot from in the
BIOS. From that point on, according to boot(8), it should work.
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100817/c5174611/attachment.pgp
More information about the freebsd-questions