Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 11:47:24 -0400
From:      Chris Ross <cross+freebsd@distal.com>
To:        Jeremy Chadwick <jdc@koitsu.org>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: Reinstalling boot blocks on a ZFS-only system
Message-ID:  <B9B6D3F7-44F4-4F55-9172-1A7C9D32904B@distal.com>
In-Reply-To: <20130513031742.GA75801@icarus.home.lan>
References:  <A6940C2F-17B4-4ECF-85B6-BA8CB335486E@distal.com> <20130512205837.GA69605@icarus.home.lan> <28B5181C-E185-40E5-90EC-9600297BE590@distal.com> <20130513031742.GA75801@icarus.home.lan>

index | next in thread | previous in thread | raw e-mail


On May 12, 2013, at 23:17 , Jeremy Chadwick wrote:
> On Sun, May 12, 2013 at 10:20:26PM -0400, Chris Ross wrote:
>> In the past, I've found I've been unable to install all of the bootblocks if I
>> boot from the ZFS root.  When booting from a cd, the basic:
>> 
>> 	gpart bootcode -p ${bootdir}/zfsboot ${disk}
>> 	dd if=${bootdir}zfsloader of=/dev/${disk}a bs=512 oseek=1024 conv=notrunc,sync
>> 
>> works.  But, if I boot from ZFS, then I can't dd anything into the front of the 
>> drives.  Right now, the problem after booting from the CD, is trying to mount
>> a read/write filesystem (mfs, or the like) so that I can scp the bootblocks onto the
>> system and install them.  But, I eventually found the command I'd lost. so I 
>> think I'm alright.  Thanks...
> 
> What does "unable to install" mean?  What output/error do you get?  I am
> going to assume you get EPERM (Operation not permitted), which would be
> caused by GEOM's "preventive foot-shooting" (keep reading).
> 
> Is there some reason you're sticking with the MBR scheme instead of GPT?

I apologize for all of the noise on the list.  I failed to mention the important detail,
which is that I'm working on a sparc64 system, so it's all VTOC8, not MBR nor
GPT.

But as noted, I was able to mount an MBR an accomplish what I'd intended
when booting from a CD-R.  Thanks.

                  - Chris



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B9B6D3F7-44F4-4F55-9172-1A7C9D32904B>