From owner-freebsd-stable@FreeBSD.ORG Tue Jan 19 21:09:11 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63B6D106566C; Tue, 19 Jan 2010 21:09:11 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from mail-yw0-f172.google.com (mail-yw0-f172.google.com [209.85.211.172]) by mx1.freebsd.org (Postfix) with ESMTP id 89F668FC15; Tue, 19 Jan 2010 21:09:10 +0000 (UTC) Received: by ywh2 with SMTP id 2so1986552ywh.27 for ; Tue, 19 Jan 2010 13:09:10 -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=NQEgV5NARJzpbaq9Uooon9S7qJyclIgxOnbfJP3IpMs=; b=F8WCyt3oK8dZ8wbfI4HZ8ZdFGhgwN+qD+17LHZZdDAA+I25948AYsOsVff/2TRpcpd LxaiOvV0Kc1tbsFZOWwUEmrB8EAnUfc5F5IwdrR9HrXUy9tDTBmdfD3tDM7r/UuIrqlq k1ltgbQhDzgJ8scou3E9b0Hjo4T3k9ufjmMSM= 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=LubdlYVCncBjC82b2WVd58pw9mnGJFfHSeX2WrVPx4jb2GMxD0sEEHEZSGoqxlqz11 X/IUeItsN7v1ZGQv5h9rnlYYAN9fGkuRCh9+4LDMx/ht3r/i0nmVj94TRt02YJhoi4NB 4edXJ9/ThbcKtb14OLk5OAI8FnSz0pz0XiWeQ= MIME-Version: 1.0 Received: by 10.101.3.18 with SMTP id f18mr12157921ani.180.1263935349705; Tue, 19 Jan 2010 13:09:09 -0800 (PST) In-Reply-To: <4B55FF44.4040308@icyb.net.ua> References: <4B55FF44.4040308@icyb.net.ua> Date: Tue, 19 Jan 2010 23:09:09 +0200 Message-ID: From: Dan Naumov To: Andriy Gapon , mandrews@bit0.com Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD-STABLE Mailing List , freebsd-questions@freebsd.org, rnoland@freebsd.org, freebsd-geom@freebsd.org Subject: Re: 8.0-RELEASE / gpart / GPT / marking a partition as "active" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 21:09:11 -0000 On 1/19/2010 12:11 PM, Dan Naumov wrote: > It seems that quite a few BIOSes have serious issues booting off disks > using GPT partitioning when no partition present is marked as > "active". See http://www.freebsd.org/cgi/query-pr.cgi?pr=115406&cat=bin > for a prime example. > > In 8.0-RELEASE, using gpart, setting a slice as "active" in MBR > partitioning mode is trivial, ie: > > gpart set -a active -i 1 DISKNAME > > However, trying to do the same thing with GPT partitioning yields no results: > > gpart set -a active -i 1 DISKNAME > gpart: attrib 'active': Device not configured > > As a result of this issue, I can configure and make a succesfull > install using GPT in 8.0, but I cannot boot off it using my Intel > D945GCLF2 board. > > I have found this discussion from about a month ago: > http://www.mail-archive.com/freebsd-stable@freebsd.org/msg106918.html > where Robert mentions that "gpart set -a active -i 1" is no longer > needed in 8-STABLE, because the pmbr will be marked as active during > the installation of the bootcode. Is there anything I can do to > archieve the same result in 8.0-RELEASE or is installing from a > snapshop of 8-STABLE my only option? > After using gpart to create the GPT (and thus the PMBR and its > bootcode), why not simply use "fdisk -a -1 DISKNAME" to set the PMBR > partition active? According to the fdisk output, the partition flag did change from 0 to 80. Can the "fdisk: Class not found" error showing up at the very end of the procedure of doing "fdisk -a -1 DISKNAME" be safely ignored? - Dan Naumov