From owner-freebsd-fs@FreeBSD.ORG Tue Oct 25 18:08:20 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B7341065673 for ; Tue, 25 Oct 2011 18:08:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0BF7F8FC1B for ; Tue, 25 Oct 2011 18:08:20 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id B6E9746B09; Tue, 25 Oct 2011 14:08:19 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 4993B8A02E; Tue, 25 Oct 2011 14:08:19 -0400 (EDT) From: John Baldwin To: Alexandr Date: Tue, 25 Oct 2011 14:08:18 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p8; KDE/4.5.5; amd64; ; ) References: <4EA12EC0.2040907@shurik.kiev.ua> <201110241429.02645.jhb@freebsd.org> <4EA65150.7010709@shurik.kiev.ua> In-Reply-To: <4EA65150.7010709@shurik.kiev.ua> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201110251408.18827.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 25 Oct 2011 14:08:19 -0400 (EDT) Cc: freebsd-fs@freebsd.org Subject: Re: cannot boot from HDD X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 18:08:20 -0000 On Tuesday, October 25, 2011 2:04:00 am Alexandr wrote: > 24.10.2011 21:29, John Baldwin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Monday, October 24, 2011 12:34:57 pm Alexandr wrote: > >> 24.10.2011 16:46, John Baldwin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >>> On Friday, October 21, 2011 4:35:12 am Alexandr wrote: > >>>> Hello! > >>>> > >>>> A few weeks ago I have migrated to a new laptop Lenovo B570 and I ca= nnot > >>>> boot from my HDD. At the start of the boot process HDD led blinks so= me > >>>> times and boot continues from Network PXE. Bootloader from 8-RELEASE, > >>>> 9-STABLE, and 10-CURRENT connot solve this issue. > >>>> I am using a GPT scheme on my laptop: > >>>> > >>>> lenovo-b570# gpart show > >>>> =3D> 34 976773101 ada0 GPT (465G) > >>>> 34 128 1 freebsd-boot (64k) > >>>> 162 976772973 2 freebsd-zfs (465G) > >>>> > >>>> Now to boot my system I am using boottable usb-flash with Grub2 > >>>> installed. Choosing boot from HDD mbr starts boot my system. > >>>> I discussed this problem in our local mailing list, but no success. > >>>> The only way I see to resolve my problem at this time is to use such= scheme: > >>>> > >>>> bios-boot (with Grub2) > >>>> freebsd-boot > >>>> freebsd-zfs > >>> > >>> Hmm, sounds like your BIOS doesn't like the PMBR and doesn't try to b= oot from > >>> it as a result. Have you tried updating your BIOS? From a quick sea= rch it > >>> seems even Windows can't boot from GPT on this box, but that a BIOS u= pdate > >>> might fix that. > >>> > >> > >> Yes, I have updated BIOS to the latest version, but no success. I found > >> similar threads at freebsd forum: > > > > Hmmm, is the 0xee partition marked "active" in your MBR (if you look at= the > > disk with fdisk for example). > > >=20 > Yes, >=20 > lenovo-b570# fdisk /dev/ada0 > ******* Working on device /dev/ada0 ******* > parameters extracted from in-core disklabel are: > cylinders=3D15504336 heads=3D1 sectors/track=3D63 (63 blks/cyl) >=20 > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=3D15504336 heads=3D1 sectors/track=3D63 (63 blks/cyl) >=20 > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 238 (0xee),(EFI GPT) > start 63, size 976773105 (476939 Meg), flag 80 (active) > beg: cyl 1/ head 0/ sector 1; > end: cyl 975/ head 0/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > Hmmm, I recall certain BIOSen a long time ago that had a whitelist of valid MBR IDs. Maybe you can try changing the 0xee to another type (like one used for FAT) and patching your kernel to treat that type the same as 0xee so that GPT will still attach ok. You'd have to look in sys/geom for anything that looks for 0xee in an MBR and update it to accept either 0xee or your new test id. =2D-=20 John Baldwin