NetBSD Problem Report #54934

From www@netbsd.org  Tue Feb  4 16:31: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 256471A9213
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  4 Feb 2020 16:31:18 +0000 (UTC)
Message-Id: <20200204163116.BB4621A9248@mollari.NetBSD.org>
Date: Tue,  4 Feb 2020 16:31:16 +0000 (UTC)
From: i@-.-
Reply-To: i@-.-
To: gnats-bugs@NetBSD.org
Subject: Command fail in sysinst on computer with MS Windows 10 and NTFS partitions
X-Send-Pr-Version: www-1.0

>Number:         54934
>Category:       install
>Synopsis:       Command fail in sysinst on computer with MS Windows 10 and NTFS partitions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    martin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 04 16:35:00 +0000 2020
>Closed-Date:    Thu Feb 06 10:48:19 +0000 2020
>Last-Modified:  Mon Feb 10 21:40:02 +0000 2020
>Originator:     guest01
>Release:        9.0_RC2
>Organization:
-
>Environment:
amd64
>Description:
When you try to install NetBSD on computer with Windows 10 and NTFS partitions, the procedure is stopped with command fail and installation can not be continued.
After that, when you try to repeat procedure you will see that FFSv2 partition is created but the procedure will stop the same way.

Sorry, I don't answer emails. You can close the report if it is useless.
>How-To-Repeat:
1	 Boot computer with system installation disk
2	 Select Install NetBSD
3	 Keyboard type: US-English
4	 Install NetBSD to hard disk
5	 Shall we continue ? Yes
6	 On which disk do you want to install NetBSD ? wd0 (149G)
7	 This is the correct geometry
8	 Use the entire disk
9	 Shall we continue ? Yes
10	 Use default partition sizes
11	 Partition sizes ok
12	 Shall we continue ? Yes
13	 Selected bootblock: BIOS console
    	 Continue
14	 Status: Command failed
	 Command: /usr/sbin/installboot -o console=pc,speed=9600
                  /dev/rwd0a /usr/mdec/bootxx_ffsv2
	 Hit enter to continue
	 installboot: Old BPB to big, use -f (may invalidate filesystem)
	 installboot: Set bootstrap operation failed
15	 Warning: disk is probably not bootable
	 >Hit enter to continue
16	 You are back at screen with:
	 a: Install NetBSD to hard disk

After that, you can try to repeat the procedure and you will see that FFSv2 partition is created but procedure will stop the same way.

Then you can see:
1    e: Utility menu
2    d: Partition a disk
     You have displayed:
     a: wd0 (149G)				UNCHANGED
     b:     wd0a on / (FFSv2) (unused)		147G
     c:	    wd0b (swap)	      			2038M
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Tue, 04 Feb 2020 17:10:19 +0000
Responsible-Changed-Why:
take


State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Thu, 06 Feb 2020 10:48:19 +0000
State-Changed-Why:
Should be fixed, thanks for the report.


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54934 CVS commit: src/usr.sbin/sysinst/arch/i386
Date: Thu, 6 Feb 2020 10:47:33 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Thu Feb  6 10:47:33 UTC 2020

 Modified Files:
 	src/usr.sbin/sysinst/arch/i386: md.c

 Log Message:
 PR install/54934: always use -f on the installboot invocation. We come
 here post-newfs (and maybe should have dd'd zeros to the start of the
 disk before newfs instead).


 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 src/usr.sbin/sysinst/arch/i386/md.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Manuel Bouyer" <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54934 CVS commit: [netbsd-9] src/usr.sbin/sysinst
Date: Mon, 10 Feb 2020 21:39:38 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon Feb 10 21:39:38 UTC 2020

 Modified Files:
 	src/usr.sbin/sysinst [netbsd-9]: bsddisklabel.c defs.h disklabel.c
 	    disks.c mbr.c msg.mi.de msg.mi.en msg.mi.es msg.mi.fr msg.mi.pl
 	    partman.c target.c txtwalk.c upgrade.c
 	src/usr.sbin/sysinst/arch/hp300 [netbsd-9]: md.c
 	src/usr.sbin/sysinst/arch/i386 [netbsd-9]: md.c
 	src/usr.sbin/sysinst/arch/mac68k [netbsd-9]: md.c
 	src/usr.sbin/sysinst/arch/mvme68k [netbsd-9]: md.c msg.md.de msg.md.en
 	    msg.md.es msg.md.fr msg.md.pl
 	src/usr.sbin/sysinst/arch/x68k [netbsd-9]: md.c msg.md.en

 Log Message:
 Pull up following revision(s) (requested by martin in ticket #693):
 	usr.sbin/sysinst/arch/x68k/msg.md.en: revision 1.2
 	usr.sbin/sysinst/arch/x68k/md.c: revision 1.10
 	usr.sbin/sysinst/arch/mvme68k/msg.md.fr: revision 1.2
 	usr.sbin/sysinst/arch/x68k/msg.md.en: revision 1.3
 	usr.sbin/sysinst/arch/mvme68k/msg.md.fr: revision 1.3
 	usr.sbin/sysinst/msg.mi.en: revision 1.28
 	usr.sbin/sysinst/arch/hp300/md.c: revision 1.10
 	usr.sbin/sysinst/msg.mi.es: revision 1.22
 	usr.sbin/sysinst/target.c: revision 1.12
 	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.10
 	usr.sbin/sysinst/arch/i386/md.c: revision 1.30
 	usr.sbin/sysinst/arch/mvme68k/msg.md.pl: revision 1.2
 	usr.sbin/sysinst/arch/mvme68k/msg.md.pl: revision 1.3
 	usr.sbin/sysinst/bsddisklabel.c: revision 1.39
 	usr.sbin/sysinst/arch/mvme68k/msg.md.de: revision 1.2
 	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.9
 	usr.sbin/sysinst/disklabel.c: revision 1.35
 	usr.sbin/sysinst/arch/mvme68k/msg.md.de: revision 1.3
 	usr.sbin/sysinst/defs.h: revision 1.55
 	usr.sbin/sysinst/disks.c: revision 1.63
 	usr.sbin/sysinst/disks.c: revision 1.64
 	usr.sbin/sysinst/mbr.c: revision 1.31
 	usr.sbin/sysinst/disks.c: revision 1.65
 	usr.sbin/sysinst/txtwalk.c: revision 1.3
 	usr.sbin/sysinst/txtwalk.c: revision 1.4
 	usr.sbin/sysinst/arch/mvme68k/msg.md.en: revision 1.2
 	usr.sbin/sysinst/arch/mvme68k/msg.md.en: revision 1.3
 	usr.sbin/sysinst/msg.mi.fr: revision 1.26
 	usr.sbin/sysinst/msg.mi.pl: revision 1.29
 	usr.sbin/sysinst/arch/mvme68k/msg.md.es: revision 1.2
 	usr.sbin/sysinst/upgrade.c: revision 1.15
 	usr.sbin/sysinst/arch/mvme68k/msg.md.es: revision 1.3
 	usr.sbin/sysinst/upgrade.c: revision 1.16
 	usr.sbin/sysinst/partman.c: revision 1.50
 	usr.sbin/sysinst/msg.mi.de: revision 1.21
 remove unused "emptypart" message (or moved to ifdef notyet area)
 PR install/54921: message "ordering" takes a %s argument.
 PR install/54921: skip non-user partitions when checking for overlaps
 bootxx_name() - fix oversight in previous change (do not assume first
 partition is the root partition)
 PR install/54934: always use -f on the installboot invocation. We come
 here post-newfs (and maybe should have dd'd zeros to the start of the
 disk before newfs instead).
 Remove a bogus assert: when reading disklabel partitions and the outer
 (MBR) partitioning has changed, but the changes have not yet been written
 back to disk, we need to ignore the kernels idea of the disklabel and
 instead continue with an empty one.
 Deal with partitioning schemes having no inner counterpart.
 Avoid NULL derefs.
 Do not assum a partitioning scheme that supports innner partitions always
 needs to actually have such partitions defined.
 PR bin/54944: deal with escaped spaces in NAME= syntax in /etc/fstab.
 PR bin/54944: explicitly reject GPT protective MBRs.
 PR bin/54944: make the "explicit single wedge" selection also work for
 upgrades.
 Reformat a query to add an automatically detected swap partition
 so it fits on narrow screens.
 Make re-install sets also work for an explicit selected root wedge
 Fix copy&pasto in previous - from kre.
 Only a single partition can ever have the "extend" flag (grow to available
 size).
 Do not use -P for tar extractions - the in tree tar has been fixed.
 Finish conversion to generic partitioning backend


 To generate a diff of this commit:
 cvs rdiff -u -r1.23.2.9 -r1.23.2.10 src/usr.sbin/sysinst/bsddisklabel.c
 cvs rdiff -u -r1.42.2.6 -r1.42.2.7 src/usr.sbin/sysinst/defs.h
 cvs rdiff -u -r1.10.2.8 -r1.10.2.9 src/usr.sbin/sysinst/disklabel.c
 cvs rdiff -u -r1.44.2.13 -r1.44.2.14 src/usr.sbin/sysinst/disks.c
 cvs rdiff -u -r1.19.2.5 -r1.19.2.6 src/usr.sbin/sysinst/mbr.c
 cvs rdiff -u -r1.13.2.6 -r1.13.2.7 src/usr.sbin/sysinst/msg.mi.de
 cvs rdiff -u -r1.19.2.7 -r1.19.2.8 src/usr.sbin/sysinst/msg.mi.en
 cvs rdiff -u -r1.14.2.6 -r1.14.2.7 src/usr.sbin/sysinst/msg.mi.es
 cvs rdiff -u -r1.17.2.7 -r1.17.2.8 src/usr.sbin/sysinst/msg.mi.fr
 cvs rdiff -u -r1.20.2.7 -r1.20.2.8 src/usr.sbin/sysinst/msg.mi.pl
 cvs rdiff -u -r1.41.2.4 -r1.41.2.5 src/usr.sbin/sysinst/partman.c
 cvs rdiff -u -r1.8.2.3 -r1.8.2.4 src/usr.sbin/sysinst/target.c
 cvs rdiff -u -r1.1.30.1 -r1.1.30.2 src/usr.sbin/sysinst/txtwalk.c
 cvs rdiff -u -r1.12.2.2 -r1.12.2.3 src/usr.sbin/sysinst/upgrade.c
 cvs rdiff -u -r1.8.2.1 -r1.8.2.2 src/usr.sbin/sysinst/arch/hp300/md.c
 cvs rdiff -u -r1.20.2.5 -r1.20.2.6 src/usr.sbin/sysinst/arch/i386/md.c
 cvs rdiff -u -r1.8 -r1.8.2.1 src/usr.sbin/sysinst/arch/mac68k/md.c
 cvs rdiff -u -r1.8.2.1 -r1.8.2.2 src/usr.sbin/sysinst/arch/mvme68k/md.c
 cvs rdiff -u -r1.1 -r1.1.30.1 src/usr.sbin/sysinst/arch/mvme68k/msg.md.de \
     src/usr.sbin/sysinst/arch/mvme68k/msg.md.en \
     src/usr.sbin/sysinst/arch/mvme68k/msg.md.es \
     src/usr.sbin/sysinst/arch/mvme68k/msg.md.fr \
     src/usr.sbin/sysinst/arch/mvme68k/msg.md.pl
 cvs rdiff -u -r1.8.2.1 -r1.8.2.2 src/usr.sbin/sysinst/arch/x68k/md.c
 cvs rdiff -u -r1.1 -r1.1.30.1 src/usr.sbin/sysinst/arch/x68k/msg.md.en

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>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.