NetBSD Problem Report #39510

From www@NetBSD.org  Wed Sep 10 10:59:32 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 17CE463B92A
	for <gnats-bugs@gnats.netbsd.org>; Wed, 10 Sep 2008 10:59:32 +0000 (UTC)
Message-Id: <20080910105931.A8DF863B853@narn.NetBSD.org>
Date: Wed, 10 Sep 2008 10:59:31 +0000 (UTC)
From: jonathan@perkin.org.uk
Reply-To: jonathan@perkin.org.uk
To: gnats-bugs@NetBSD.org
Subject: NetBSD/amd64 won't install on MacBook (GPT)
X-Send-Pr-Version: www-1.0

>Number:         39510
>Category:       install
>Synopsis:       NetBSD/amd64 won't install on MacBook (GPT)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 10 11:00:00 +0000 2008
>Last-Modified:  Wed Sep 10 15:05:01 +0000 2008
>Originator:     Jonathan Perkin
>Release:        4.99.72 (20080818 snapshot)
>Organization:
>Environment:
>Description:
(c+p by hand)

wd0 at atabus2 drive 1: <FUJITSU MHW2160BHPL>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: GPT GUID: 000071e0-0e0a-0000-6465-00007b710000
dk0 at wd0: EFI system partition
dk0: 409600 blocks at 40, type: msdos
wd0: skipping entry 1 (7e9db2c5-cbf0-4c3a-8067-14861e04bb33), type 48465300-0000-11aa-aa11-00306543ecac
wd0: skipping entry 2 (e0175749-2bb3-470b-a1c4-f19aa62bbd2c), type ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide1:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)

During install, NetBSD picks up the partition table ok:

    Start( MB)  Size( MB) Flg Kind
    ---------- --------- --- ----
 a:          0        200     Unknown (238)
 b:        200     146304     Unknown (175)
 c:     146504       6123     NetBSD

but when trying to newfs, fails with

  Setting up DOS partition table
  newfs: /dev/rwd0a: open for read: Device busy

According to

  http://mail-index.netbsd.org/current-users/2008/06/29/msg003277.html

disabling GPT support fixes this, although I've not yet verified this myself.


>How-To-Repeat:
Install NetBSD/amd64 snapshot on a MacBook, possibly other machines with GPT/EFI.
>Fix:
Disable GPT support.

>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, install-manager@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: install/39510: NetBSD/amd64 won't install on MacBook (GPT)
Date: Wed, 10 Sep 2008 11:01:49 -0400

 On Sep 10, 11:00am, jonathan@perkin.org.uk (jonathan@perkin.org.uk) wrote:
 -- Subject: install/39510: NetBSD/amd64 won't install on MacBook (GPT)

 | >Number:         39510
 | >Category:       install
 | >Synopsis:       NetBSD/amd64 won't install on MacBook (GPT)
 | >Confidential:   no
 | >Severity:       critical
 | >Priority:       high
 | >Responsible:    install-manager
 | >State:          open
 | >Class:          sw-bug
 | >Submitter-Id:   net
 | >Arrival-Date:   Wed Sep 10 11:00:00 +0000 2008
 | >Originator:     Jonathan Perkin
 | >Release:        4.99.72 (20080818 snapshot)
 | >Organization:
 | >Environment:
 | >Description:
 | (c+p by hand)
 | 
 | wd0 at atabus2 drive 1: <FUJITSU MHW2160BHPL>
 | wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 | wd0: 149GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
 | wd0: GPT GUID: 000071e0-0e0a-0000-6465-00007b710000
 | dk0 at wd0: EFI system partition
 | dk0: 409600 blocks at 40, type: msdos
 | wd0: skipping entry 1 (7e9db2c5-cbf0-4c3a-8067-14861e04bb33), type 48465300-0000-11aa-aa11-00306543ecac
 | wd0: skipping entry 2 (e0175749-2bb3-470b-a1c4-f19aa62bbd2c), type ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
 | wd0: 32-bit data port
 | wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 | wd0(piixide1:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
 | 
 | During install, NetBSD picks up the partition table ok:
 | 
 |     Start( MB)  Size( MB) Flg Kind
 |     ---------- --------- --- ----
 |  a:          0        200     Unknown (238)
 |  b:        200     146304     Unknown (175)
 |  c:     146504       6123     NetBSD
 | 
 | but when trying to newfs, fails with
 | 
 |   Setting up DOS partition table
 |   newfs: /dev/rwd0a: open for read: Device busy
 | 
 | According to
 | 
 |   http://mail-index.netbsd.org/current-users/2008/06/29/msg003277.html
 | 
 | disabling GPT support fixes this, although I've not yet verified this myself.
 | 
 | 
 | >How-To-Repeat:
 | Install NetBSD/amd64 snapshot on a MacBook, possibly other machines with GPT/EFI.
 | >Fix:
 | Disable GPT support.

 You should be able to install on dk devices. Once wedges are active on wd0,
 you can only access wd0 from /dev/dk*; accessing it from /dev/wd* returns
 EBUSY as expected. The installed does not know about wedges so you lose.

 christos

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.