NetBSD Problem Report #54926

From www@netbsd.org  Mon Feb  3 18:39:18 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8F36B1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  3 Feb 2020 18:39:18 +0000 (UTC)
Message-Id: <20200203183917.A86A91A9217@mollari.NetBSD.org>
Date: Mon,  3 Feb 2020 18:39:17 +0000 (UTC)
From: bpfoley@gmail.com
Reply-To: bpfoley@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysinst for NetBSD/mac68k 9.0_RC2 doesn't partition or newfs discs
X-Send-Pr-Version: www-1.0

>Number:         54926
>Category:       port-mac68k
>Synopsis:       sysinst for NetBSD/mac68k 9.0_RC2 doesn't partition or newfs discs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    martin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 03 18:40:00 +0000 2020
>Closed-Date:    Tue Feb 11 08:48:29 +0000 2020
>Last-Modified:  Tue Feb 11 08:48:29 +0000 2020
>Originator:     Brian Foley
>Release:        NetBSD 9.0RC2
>Organization:
>Environment:
>Description:
I've attempted to install various versions of NetBSD/mac68k on my Quadra 650 with a SCSI2SD hard disc. Each time, I install using the NetBSD INSTALLSBC image using the BSD/mac68k booter.

NetBSD 8.1 successfully installed using sysinst by this method. The disc partitioning detected an 2GB SCSI disc with an Apple partition map with an 80MB HFS partition and the rest of the disc a free partition. It allowed me to create new swap and root&usr partitions and correctly newfs-ed the root&usr partition.

To install 9.0, I wrote /dev/zero to the entire disc, and recreated the 80MB partition.

NetBSD 9.0 RC1 and RC2 shows the same partitioning interface, but when I provide the same settings, it fails to re-partition the disc, and doesn't run newfs.
>How-To-Repeat:
1. Boot sysinst on a disk with no NetBSD root/usr partition.
2. Create swap and root/usr partitions
3. OK the partition creation step in the user interface.
4. newfs step doesn't occur, and package installation fails with an out of space error.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-mac68k-maintainer->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Mon, 03 Feb 2020 19:16:08 +0000
Responsible-Changed-Why:
I broke it


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-mac68k/54926: sysinst for NetBSD/mac68k 9.0_RC2 doesn't
 partition or newfs discs
Date: Mon, 3 Feb 2020 20:15:17 +0100

 On Mon, Feb 03, 2020 at 06:40:00PM +0000, bpfoley@gmail.com wrote:
 > To install 9.0, I wrote /dev/zero to the entire disc, and recreated the 80MB partition.

 Can you show the exact partitioning details it has after that?

 > NetBSD 9.0 RC1 and RC2 shows the same partitioning interface, but when I provide the same settings, it fails to re-partition the disc, and doesn't run newfs.
 > >How-To-Repeat:
 > 1. Boot sysinst on a disk with no NetBSD root/usr partition.
 > 2. Create swap and root/usr partitions

 How exactly do you create them? The defaults will depend on the ammount of
 RAM you have installed and the disk size, so please switch to "sectors" as
 size unit and note the start / size of each partition.

 > 3. OK the partition creation step in the user interface.
 > 4. newfs step doesn't occur, and package installation fails with an out of space error.

 This usually means the editing frontend did accept partition data that
 the  backend then fails to represent (due to a bug). The failure mode
 should probably be more verbose.

 Martin

From: Brian Foley <bpfoley@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-mac68k/54926: sysinst for NetBSD/mac68k 9.0_RC2 doesn't
 partition or newfs discs
Date: Mon, 3 Feb 2020 19:31:30 -0800

 --000000000000a36315059db7ad29
 Content-Type: text/plain; charset="UTF-8"

 I have 132MB of RAM on my machine.

 I went through the sysinst install wizard.
 "a: Install NetBSD to hard disk"
 "a: sd0 2.0GB"
 "a: Use only part of the disk"

 It displayed a partition table of
 sd0a 96 163840 HFS MacOS (80MBtled)
 sd0b 163936 4030368 Free

 I modified this to be
 sd0d 96 163840 HFS MacOS (80MBtled)
 sd0b 163936 500000 swap
 sd0a 663936 3530368 4.2BSD Root&Usr /

 I confirmed the modification, and immediately after, it went to the NetBSD
 distribution phase.

 Dropping to /bin/sh

 disklabel /dev/sd0

 shows

 3 partitions:
 # size offset fstype
 a: 163840 96 HFS
 b: 4030368 163936 unknown
 c: 4194304 0 unused

 In other words the partitioning didn't happen.

 /tmp/sysinst.log shows

 executing: disklabel -r sd0
 executing: /bin/mkdir -p /targetroot/etc
 Making /targetroot/etc/fstab (sd0).
 executing: /bin/mkdir -p /targetroot/etc
 executing: /bin/mkdir -p /targetroot/kern
 executing: /bin/mkdir -p /targetroot/pro
 executing: /bin/mkdir -p /targetroot/dev/pts
 executing: /bin/mkdir -p /targetroot/cdrom
 executing: /bin/mkdir -p /targetroot/var/shm/



 On Mon, 3 Feb 2020 at 11:20, Martin Husemann <martin@duskware.de> wrote:

 > The following reply was made to PR port-mac68k/54926; it has been noted by
 > GNATS.
 >
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: port-mac68k/54926: sysinst for NetBSD/mac68k 9.0_RC2 doesn't
 >  partition or newfs discs
 > Date: Mon, 3 Feb 2020 20:15:17 +0100
 >
 >  On Mon, Feb 03, 2020 at 06:40:00PM +0000, bpfoley@gmail.com wrote:
 >  > To install 9.0, I wrote /dev/zero to the entire disc, and recreated the
 > 80MB partition.
 >
 >  Can you show the exact partitioning details it has after that?
 >
 >  > NetBSD 9.0 RC1 and RC2 shows the same partitioning interface, but when
 > I provide the same settings, it fails to re-partition the disc, and doesn't
 > run newfs.
 >  > >How-To-Repeat:
 >  > 1. Boot sysinst on a disk with no NetBSD root/usr partition.
 >  > 2. Create swap and root/usr partitions
 >
 >  How exactly do you create them? The defaults will depend on the ammount of
 >  RAM you have installed and the disk size, so please switch to "sectors" as
 >  size unit and note the start / size of each partition.
 >
 >  > 3. OK the partition creation step in the user interface.
 >  > 4. newfs step doesn't occur, and package installation fails with an out
 > of space error.
 >
 >  This usually means the editing frontend did accept partition data that
 >  the  backend then fails to represent (due to a bug). The failure mode
 >  should probably be more verbose.
 >
 >  Martin
 >
 >

 --000000000000a36315059db7ad29
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
 r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"lt=
 r">I have 132MB of RAM on my machine.<div><br></div><div>I went through the=
  sysinst install wizard.=C2=A0</div><div>&quot;a: Install NetBSD to hard di=
 sk&quot;</div><div>&quot;a: sd0 2.0GB&quot;<br></div><div>&quot;a: Use only=
  part of the disk&quot;</div><div><br></div><div>It displayed a partition t=
 able of</div><div>sd0a 96 163840 HFS MacOS (80MBtled)</div><div>sd0b 163936=
  4030368 Free</div><div><br></div><div>I modified this to be</div><div><div=
  style=3D"color:rgb(0,0,0)">sd0d 96 163840 HFS MacOS (80MBtled)</div><div s=
 tyle=3D"color:rgb(0,0,0)">sd0b 163936 500000 swap</div></div><div><div styl=
 e=3D"color:rgb(0,0,0)">sd0a 663936 3530368 4.2BSD Root&amp;Usr /</div></div=
 ><div style=3D"color:rgb(0,0,0)"><br></div><div style=3D"color:rgb(0,0,0)">=
 I confirmed the modification, and immediately after, it went to the NetBSD =
 distribution phase.</div><div style=3D"color:rgb(0,0,0)"><br></div><div sty=
 le=3D"color:rgb(0,0,0)">Dropping to /bin/sh</div><div style=3D"color:rgb(0,=
 0,0)"><br></div><div style=3D"color:rgb(0,0,0)">disklabel /dev/sd0</div><di=
 v style=3D"color:rgb(0,0,0)"><br></div><div style=3D"color:rgb(0,0,0)">show=
 s</div><div style=3D"color:rgb(0,0,0)"><br></div><div style=3D"color:rgb(0,=
 0,0)">3 partitions:</div><div style=3D"color:rgb(0,0,0)"># size offset fsty=
 pe</div><div style=3D"color:rgb(0,0,0)">a: 163840 96 HFS</div><div style=3D=
 "color:rgb(0,0,0)">b: 4030368 163936 unknown</div><div style=3D"color:rgb(0=
 ,0,0)">c: 4194304 0 unused</div><div style=3D"color:rgb(0,0,0)"><br></div><=
 div style=3D"color:rgb(0,0,0)">In other words the partitioning didn&#39;t h=
 appen.</div><div style=3D"color:rgb(0,0,0)"><br></div><div style=3D"color:r=
 gb(0,0,0)">/tmp/sysinst.log shows</div><div style=3D"color:rgb(0,0,0)"><br>=
 </div><div style=3D"color:rgb(0,0,0)">executing: disklabel -r sd0</div><div=
  style=3D"color:rgb(0,0,0)">executing: /bin/mkdir -p /targetroot/etc</div><=
 div style=3D"color:rgb(0,0,0)">Making /targetroot/etc/fstab (sd0).</div><di=
 v style=3D"color:rgb(0,0,0)">executing: /bin/mkdir -p /targetroot/etc<br></=
 div>executing: /bin/mkdir -p /targetroot/kern<br>executing: /bin/mkdir -p /=
 targetroot/pro<br>executing: /bin/mkdir -p /targetroot/dev/pts<br>executing=
 : /bin/mkdir -p /targetroot/cdrom<br>executing: /bin/mkdir -p /targetroot/v=
 ar/shm/</div><div dir=3D"ltr"><br></div><div dir=3D"ltr"><div style=3D"colo=
 r:rgb(0,0,0)"><br></div></div></div></div></div></div></div></div></div></d=
 iv><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On =
 Mon, 3 Feb 2020 at 11:20, Martin Husemann &lt;<a href=3D"mailto:martin@dusk=
 ware.de">martin@duskware.de</a>&gt; wrote:<br></div><blockquote class=3D"gm=
 ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-l=
 eft-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">The fo=
 llowing reply was made to PR port-mac68k/54926; it has been noted by GNATS.=
 <br>
 <br>
 From: Martin Husemann &lt;<a href=3D"mailto:martin@duskware.de" target=3D"_=
 blank">martin@duskware.de</a>&gt;<br>
 To: <a href=3D"mailto:gnats-bugs@netbsd.org" target=3D"_blank">gnats-bugs@n=
 etbsd.org</a><br>
 Cc: <br>
 Subject: Re: port-mac68k/54926: sysinst for NetBSD/mac68k 9.0_RC2 doesn&#39=
 ;t<br>
 =C2=A0partition or newfs discs<br>
 Date: Mon, 3 Feb 2020 20:15:17 +0100<br>
 <br>
 =C2=A0On Mon, Feb 03, 2020 at 06:40:00PM +0000, <a href=3D"mailto:bpfoley@g=
 mail.com" target=3D"_blank">bpfoley@gmail.com</a> wrote:<br>
 =C2=A0&gt; To install 9.0, I wrote /dev/zero to the entire disc, and recrea=
 ted the 80MB partition.<br>
 <br>
 =C2=A0Can you show the exact partitioning details it has after that?<br>
 <br>
 =C2=A0&gt; NetBSD 9.0 RC1 and RC2 shows the same partitioning interface, bu=
 t when I provide the same settings, it fails to re-partition the disc, and =
 doesn&#39;t run newfs.<br>
 =C2=A0&gt; &gt;How-To-Repeat:<br>
 =C2=A0&gt; 1. Boot sysinst on a disk with no NetBSD root/usr partition.<br>
 =C2=A0&gt; 2. Create swap and root/usr partitions<br>
 <br>
 =C2=A0How exactly do you create them? The defaults will depend on the ammou=
 nt of<br>
 =C2=A0RAM you have installed and the disk size, so please switch to &quot;s=
 ectors&quot; as<br>
 =C2=A0size unit and note the start / size of each partition.<br>
 <br>
 =C2=A0&gt; 3. OK the partition creation step in the user interface.<br>
 =C2=A0&gt; 4. newfs step doesn&#39;t occur, and package installation fails =
 with an out of space error.<br>
 <br>
 =C2=A0This usually means the editing frontend did accept partition data tha=
 t<br>
 =C2=A0the=C2=A0 backend then fails to represent (due to a bug). The failure=
  mode<br>
 =C2=A0should probably be more verbose.<br>
 <br>
 =C2=A0Martin<br>
 <br>
 </blockquote></div>

 --000000000000a36315059db7ad29--

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Tue, 11 Feb 2020 08:48:29 +0000
State-Changed-Why:
Fixed and pulled up to netbsd-9
Thanks for the report!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.