From owner-freebsd-questions@FreeBSD.ORG Thu May 10 17:21:57 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03537106566B for ; Thu, 10 May 2012 17:21:57 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id B80298FC17 for ; Thu, 10 May 2012 17:21:56 +0000 (UTC) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.42]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id DDA413C818C for ; Thu, 10 May 2012 13:21:55 -0400 (EDT) Received: (qmail 4293 invoked from network); 10 May 2012 17:21:55 -0000 Received: by simscan 1.4.0 ppid: 22982, pid: 5658, t: 0.1775s scanners: clamav: 0.88.2/m:52/d:10739 spam: 3.0.4 Received: from 24-113-107-31.wavecable.com (HELO [192.168.2.3]) (tomdean@[24.113.107.31]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 10 May 2012 17:21:55 -0000 Message-ID: <4FABF938.7000706@speakeasy.org> Date: Thu, 10 May 2012 10:22:00 -0700 From: tomdean User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail3.sea5 X-Spam-Level: X-Spam-Status: No, score=0.8 required=8.0 tests=RATWARE_GECKO_BUILD autolearn=disabled version=3.0.4 Subject: Lost Boot Sector 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: Thu, 10 May 2012 17:21:57 -0000 FreeBSD AMD64 9-stable up-to-data as of a week ago. ASUS P9X79 motherboard. (OC 4.2GHz) I have 4 SATA disks. (disk 0)500G windows 7 plus a (disk 1)windows mirror, (disk 2)500G FreeBSD, (disk 3)160G backup. I need windows for .NET, Gadgeteer, and uM-FPU. (otherwise, ... hot rock) Windows stabbed a disk, I think. After using windows, the next AM, I found the system with a US cursor on a black background. When I booted with BIOS selector, I saw a windows update message go by. The windows 7 disk, (disk 0) is not recognized by windows 7 after booting disk 1 via BIOS and selecting 'windows 7 secondary plex'. So, either disk 0 died or windows stabbed it (not unheard of). I was using grub from an old linux installation. Disk 2 is not bootable from BIOS - it tries but I get a running '#', forever. I booted the FreeBSD 9.0 RC2 live CD. FreeBSD (disk 2) is still there (whew!) and looks intact. disk 2 GPT: 0 GPT (456G) 1 linux-data (93G) debian??? 2 linux-swap (29G) 3 FreeBSD-boot (64k) 4 FreeBSD-ufs (338G) 5 FreeBSD-swap (4G) <== I need to increase this to 16G (== RAM) - free (847M) I plan to use BIOS boot, with FreeBSD as the default - no more auto boot windows! disconnect all disks except (disk 2) - it will appear in BIOS as P0. boot the 9.0 RC2 live CD if pmbr and gptboot are on (disk 2) use those files, else use the live CD files # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 3 /dev/ada0 I think this puts pmbr on (disk 2) boot sector and gptboot on partition 3. Will this make the disk bootable? And boot FreeBSD when selected from BIOS? With only the windows 7 secondary plex disk connected, it boots. Tom Dean