From owner-freebsd-questions@FreeBSD.ORG Fri Jan 22 04:49:40 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47A7B106566B; Fri, 22 Jan 2010 04:49:40 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from mail-gx0-f214.google.com (mail-gx0-f214.google.com [209.85.217.214]) by mx1.freebsd.org (Postfix) with ESMTP id E52D68FC1A; Fri, 22 Jan 2010 04:49:39 +0000 (UTC) Received: by gxk6 with SMTP id 6so770609gxk.13 for ; Thu, 21 Jan 2010 20:49:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=+C20RlyeKWN9L9zforGnj2NIKCtrfi5b9oXjzXlykRk=; b=AjQuVEjejnEgRhyyyUX3OtfUWBFG2IbO38CtBafmuPYzQHxznY14uOqxnMfjs13tuc 5A9HZob5xMKB5gJO00eFZzMGJ2AxL4e2FwSsAUrSbUgCtcxFIwLRrgbpD4X3/4VuDG8h QFBCOO5fu33cGSX8QxECy9xR2ujP+b+drwbRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=MBme+mMvKHgQEGb/8ARcjD3km+0xcoQy+TtLDHteghMYPzx14BCdDmAjzVJ7w+jFh/ il4kaN55CgM58MmLD0bXlhN3mWWsKcUBd836nk45BGOzgqNVQjIB4IjufRlEBdE8B9pc aIjys+MztlU690lD9EjF/LnkACQoUgv0T6e34= MIME-Version: 1.0 Received: by 10.101.6.22 with SMTP id j22mr3159040ani.224.1264135778989; Thu, 21 Jan 2010 20:49:38 -0800 (PST) In-Reply-To: <20100122041237.GA22312@gothschlampen.com> References: <20100122041237.GA22312@gothschlampen.com> Date: Fri, 22 Jan 2010 06:49:38 +0200 Message-ID: From: Dan Naumov To: "Thomas K." Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD-STABLE Mailing List , freebsd-questions@freebsd.org Subject: Re: Loader, MBR and the boot process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 04:49:40 -0000 On Fri, Jan 22, 2010 at 6:12 AM, Thomas K. wrote: > On Fri, Jan 22, 2010 at 05:57:23AM +0200, Dan Naumov wrote: > > Hi, > >> I recently found a nifty "FreeBSD ZFS root installation script" and >> been reworking it a bit to suit my needs better, including changing it >> from GPT to MBR partitioning. However, I was stumped, even though I >> had done everything right (or so I thought), the system would get >> stuck at Loader and refuse to go anywhere. After trying over a dozen > > probably this line is the cause: > > dd if=/mnt2/boot/zfsboot of=/dev/"${TARGETDISK}"s1a skip=1 seek=1024 > > Unless by "swap first" you meant the on-disk location, and not the > partition letter. If swap is partition "a", you're writing the loader > into swapspace. > > > Regards, > Thomas At first you made me feel silly, but then I decided to double-check, I uncommented the swap line in the partitioning part again, ensured I was writing the bootloader to "${TARGETDISK}"s1b and ran the script. Same problem, hangs at loader. Again, if I comment out the swap, giving the entire slice to ZFS and then write the bootloader to "${TARGETDISK}"s1a, run the script, everything works. - Sincerely, Dan Naumov