From owner-freebsd-current@FreeBSD.ORG Wed Aug 31 00:22:01 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 261D5106564A for ; Wed, 31 Aug 2011 00:22:01 +0000 (UTC) (envelope-from jason.lee.campbell@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id E0C948FC0C for ; Wed, 31 Aug 2011 00:22:00 +0000 (UTC) Received: by gwb15 with SMTP id 15so165779gwb.13 for ; Tue, 30 Aug 2011 17:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=aQsAwFstcZbsKFedoll1IJptfr/tiIHCE/jTwcnD8YI=; b=NEIomF+uR0lZzUyCGcb8ieTSY4nyJC2wBfA6T0ZtdPdQ4CJoEXUWCK8BMvBeGOkdd0 fLh9kVXdTnibK4CTuk3h06/QXhfRnET2Rh9osE8VdutbDCq4KJpM4g8B4uGpp82WD+Og 8zT/of8XvY9ws/hzsKxCTq6c0XHPooIBhhaXI= MIME-Version: 1.0 Received: by 10.43.50.72 with SMTP id vd8mr1303296icb.433.1314748678259; Tue, 30 Aug 2011 16:57:58 -0700 (PDT) Received: by 10.42.141.201 with HTTP; Tue, 30 Aug 2011 16:57:58 -0700 (PDT) Date: Tue, 30 Aug 2011 19:57:58 -0400 Message-ID: From: Jason Campbell To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Wed, 31 Aug 2011 02:03:55 +0000 Subject: Problems booting 9.0-BETA1 memstick X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 00:22:01 -0000 Downloaded FreeBSD-9.0-BETA1-amd64-memstick.img and verified the image with md5sum. I wrote the image (from Linux): dd if=FreeBSD.img of=/dev/sde bs=512 Rebooted and get "gptboot: Invalid backup GPT header" Ran linux gdisk on usb stick to clear out old GPT info and found in old FreeBSD -release announcements showing bs=10240 conv=sync, so tried: dd if=FreeBSD.img of=/dev/sde bs=10240 conv=sync Rebooted and same gptboot error. Completely cleared the usb stick with: dd if=/dev/zero of=/dev/sde bs=512 dd if=FreeBSD.img of=/dev/sde bs=10240 conv=sync Rebooted and same gptboot error. I've booted FreeBSD via memstick images numerous times, so not sure what the problem is. There a possible bug somewhere and what steps would I take to help locate any bugs related to this? Jason Other info which may help: Copied the image to my FreeBSD laptop, rechecked md5, and plugged in the usb stick. dmesg had: GEOM: da0: the secondary GPT header is not in the last LBA. and ran: [syskill@jupiter ~]$ sudo gpart show da0 Password: => 34 1333293 da0 GPT (7.7G) [CORRUPT] 34 128 1 freebsd-boot (64k) 162 1333165 2 freebsd-ufs (651M) Zeroed the stick again, from FreeBSD, and wrote the image from FreeBSD. At this point, I have an idea if it fails booting again. I could gpart the stick using the sizes shown in the "gpart show da0" above, then write the image. This should force the backup header into the last LBA. Sure enough, booting (before running gpart to force backup header into the last LBA) failed. Then I found the recover option in gpart, so ran "sudo gpart recover da0" and the gptboot error message is gone, however, it auto reboots in about 5 secs from the time the spinning characters start ( \ -- | -- /). Guessing this reboot is unrelated to the gpt problem, but just in case, there something else I'm missing?