NetBSD Problem Report #54871
From www@netbsd.org Sat Jan 18 15:07:13 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 C12817A15F
for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 Jan 2020 15:07:12 +0000 (UTC)
Message-Id: <20200118150711.E85B37A1AE@mollari.NetBSD.org>
Date: Sat, 18 Jan 2020 15:07:12 +0000 (UTC)
From: guest01@vp.pl
Reply-To: guest01@vp.pl
To: gnats-bugs@NetBSD.org
Subject: No oportunity to edit MBR partitions table for USB stick on system installation
X-Send-Pr-Version: www-1.0
>Number: 54871
>Category: install
>Synopsis: No oportunity to edit MBR partitions table for USB stick on system installation
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 18 15:10:00 +0000 2020
>Last-Modified: Sat Jan 18 22:30:01 +0000 2020
>Originator: guest01
>Release: http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/202001160600Z/images/NetBSD-9.0_RC1-amd64-install.img.gz
>Organization:
-
>Environment:
NetBSD 9.0_RC1 NetBSD 9.0_RC1 (GENERIC) #0: Thu Jan 9 17:18:43 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
When you install NetBSD 9.0_RC1 on USB stick and you have set geometry there is no oportunity to edit MBR partiton table. Sysinst goes to setup NetBSD partitions.
NetBSD 8.0 allows edit MBR partion table for USB stick.
>How-To-Repeat:
Boot computer with NetBSD 9.0_RC1 installation image and then select:
1. Install NetBSD to hard disk
2. Shall we continue? Yes
3. On which disk do you want to install NetBSD?
b: sd0 (929M)
4. Sysinst could not automatically determine the BIOS geoemtry of the disk.
The phisical geometry is 471 cylinders 16 sectors 63 heads.
You will be prompted for the geometry. Please enter the number of sectors per track (maximum 63) and the number of heads (maximum 256) that the BIOS uses to access the disk. The number of cylinders will be calculated from the disk size.
sectors [63]: enter
heads [16]: enter
There is not oportunity to edit MBR partition table here which was in NetBSD 8.0. Next screen will be about NetBSD partitions.
>Fix:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: install/54871: No oportunity to edit MBR partitions table for
USB stick on system installation
Date: Sat, 18 Jan 2020 16:25:19 +0100
I guess this means the stick had a disklabel already, can you please
verify? The output of
fdisk sd0
disklabel -r sd0
give the needed hints.
Martin
From: guest01@vp.pl
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: Re: install/54871: No oportunity to edit MBR partitions table for
USB stick on system installation
Date: Sat, 18 Jan 2020 16:49:47 +0100
Result of fdisk and disklabel the same as for #54870. The same USB stick.
When I try install NebBSD 8.0 I do "Use the entire disk" option and then "W=
hole disk" is 929. It is equal to 929M what is see when I select on which d=
isk installation I want.
guest01
W dniu 2020-01-18 16:30:07 u=C5=BCytkownik Martin Husemann <martin@duskware=
.de> napisa=C5=82:
> The following reply was made to PR install/54871; it has been noted by GN=
ATS.
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: =
Subject: Re: install/54871: No oportunity to edit MBR partitions table for
USB stick on system installation
Date: Sat, 18 Jan 2020 16:25:19 +0100
I guess this means the stick had a disklabel already, can you please
verify? The output of
=
fdisk sd0
disklabel -r sd0
=
give the needed hints.
=
Martin
=
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: Re: install/54871: No oportunity to edit MBR partitions table
for USB stick on system installation
Date: Sat, 18 Jan 2020 20:16:38 +0100
On Sat, Jan 18, 2020 at 05:15:01PM +0000, guest01@vp.pl wrote:
> Result of fdisk and disklabel the same as for #54870. The same USB stick.
> When I try install NebBSD 8.0 I do "Use the entire disk" option and then "W=
> hole disk" is 929. It is equal to 929M what is see when I select on which d=
> isk installation I want.
I get the same options as with the 8.0 installer when I try to reproduce it;
must be something specific to this usb stick that confuses it.
Martin
From: guest01@vp.pl
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: Re: Re: install/54871: No oportunity to edit MBR partitions table
for USB stick on system installation
Date: Sat, 18 Jan 2020 23:26:13 +0100
Second test
I did procedure "Initializing and using USB flash drives" from NetBSD Guide=
to create MSDOS partition on USB stick.
Then I started NetBSD 8.0 installation but the installation finished with m=
essage "Rewrite of MBR failed. I can't continue."
Then I started NetBSD 9.0_RC1 installation but there still is size of USB s=
tick 232 MB and there are no screens to set MBR partitions.
Results of fdisk and disklabel at the end.
Details bellow:
Initializing and using USB flash drives
1. dd if=3D/dev/zero of=3D/dev/rsd0d bs=3D1m count=3D1
2. fdisk -au sd0
Do you want to change our idea of what BIOS thinks? [n]
Which partition do you want to change?: [none]0
sysid: [0..255 default: 169]11
Do you want to change the active partition? [n]y
active partition: [0..4 default: 4]0
Are you happy with this choice? [n]y
Should we write new partition table? [n]y
3. newfs_msdos /dev/rsd0e
Installation of NetBSD 8.0
1. Install NetBSD to hard disk
2. Shall we continue? Yes
3. sd0 (929M, SONY WALKMAN)
4. The phisical geometry is 471 cylinders 16 sectors 63 heads
sectors [63]:Enter
heads [16]:Enter
5. Use the entire disk
6. Do you want to install the NetBSD bootcode? Yes
7. Set sizes of NetBSD partitions
8. a:
Size for / in MB?[33+]:800
b:
Size for swap in MB? [893]:0+
x: Accept partition sizes
9. Partition sizes ok
10. Please enter a name for your NetBSD disk [WALKMAN ]:Enter
11. Shall we continue? Yes
Rewrite of MBR failed. I can't continue.
Hit enter to continue
Installatin of NetBSD 9.0_RC1
1. Install NetBSD to hard disk
2. Shall we continue? Yes
3. On which disk do you want to install NetBSD?
b: sd0 (929M)
4. The phisical geometry is 471 cylinders 16 sectors 63 heads
sectors [63]:Enter
heads [16]:Enter
5. Set sizes of NetBSD partitions
i: Change input units (sectors/cylinders/MB/GB)
b: Megabytes
a:
Would you like to delete this partition and continue ?
a: Yes
Size for / in MB?[0]:200
b:
Size for in MB?[232]:0+
8. x: Go on.
9. Partition sizes ok
10. Shall we continue? Yes
11. Selected bootblock: BIOS console
x: Continue
12. x: Abandon installation
Result of fdisk sd0
Disk: /dev/rsd0
NetBSD disklabel disk geometry:
cylinders: 471, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 475648, bytes/sector: 2048
BIOS disk geometry:
cylinders: 472, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 475648
Partitions aligned to 1008 sector boundaries, offset 63
Partition table:
0: Primary DOS with 32 bit FAT (sysid 11)
start 63, size 475585 (929 MB, Cyls 0-471/13/61), Active
PBR is not bootable: Bad magic number (0x0000)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
First active partition: 0
Result of disklabel sd0
# /dev/rsd0:
type: unknown
disk: WALKMAN =
label: fictitious
flags:
bytes/sector: 2048
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 471
total sectors: 475648
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0 =
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 409600 0 4.2BSD 0 0 0 # (Cyl. 0 - =
406*)
c: 475648 0 unused 0 0 # (Cyl. 0 - =
471*)
d: 475648 0 unused 0 0 # (Cyl. 0 - =
471*)
(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.