NetBSD Problem Report #51503

From gson@gson.org  Sat Sep 24 08:54:38 2016
Return-Path: <gson@gson.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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 061327A2A7
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 24 Sep 2016 08:54:38 +0000 (UTC)
Message-Id: <20160924085432.A0EA97449CD@guava.gson.org>
Date: Sat, 24 Sep 2016 11:54:32 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: 7.0.1/amd64 USB install image root mount fails when sd present
X-Send-Pr-Version: 3.95

>Number:         51503
>Category:       install
>Synopsis:       7.0.1/amd64 USB install image root mount fails when sd present
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    install-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 24 08:55:00 +0000 2016
>Closed-Date:    Sat Dec 15 21:42:41 +0000 2018
>Last-Modified:  Sat Dec 15 21:42:41 +0000 2018
>Originator:     Andreas Gustafsson
>Release:        NetBSD 7.0.1
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

I recently installed NetBSD 7.0.1/amd64 on a HP DL360 G7 server.
Since the server lacks an optical drive, I tried a USB install as
documented at

  http://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0.1/amd64/INSTALL.html#Quick%20install%20notes%20for%20the%20impatient

When the kernel booted from the USB stick, the following messages
appeared on the console:

  boot device: sd1
  root on sd1a dumps on sd1b
  root file system type: ffs
  mount_ffs: /dev/sd0a on /: specified device does not match mounted device
  cp: /etc/gettytab: Read-only file system

Then, instead of sysinst starting automatically, I got a login prompt.
When I logged in as root and ran sysinst manually, it reported errors
at the point when it tried to write the network configuration to disk.

Running dmesg showed a logical volume of the server's RAID controller
as sd0, and the USB stick as sd1.

I was ultimately able to work around the problem and complete the
installation, but I'm reporting it so that it can be fixed for the
benefit of future NetBSD users.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/51503: 7.0.1/amd64 USB install image root mount fails when sd present
Date: Mon, 6 Mar 2017 19:12:22 +0200

 I just had a user contact me saying he is suffering from this same
 issue.  I'll bump the priority to "high" since there is now more than
 one affected user.

 For the benefit of third persons running into this, the following
 seems to be an effective work-around:

   login: root
   # mount -u /dev/sd1a /
   # sysinst

 -- 
 Andreas Gustafsson, gson@gson.org

From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/51503: 7.0.1/amd64 USB install image root mount fails when sd present
Date: Mon, 10 Dec 2018 17:00:21 +0200

 I re-tested with an 8.99.25 install image and the behavior had changed
 such that sysinst now started automatically.  However, I am still
 getting the console error messages about a read-only root file system,
 and attempting to configure the network from sysinst still fails.

 I am able to complete an installation using sysinst as long as it
 doesn't require configuring the network.
 -- 
 Andreas Gustafsson, gson@gson.org

From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/51503: 7.0.1/amd64 USB install image root mount fails when sd present
Date: Tue, 11 Dec 2018 17:00:06 +0200

 The following patch fixes the problem:

 Index: fstab.install.in
 ===================================================================
 RCS file: /bracket/repo/src/distrib/common/bootimage/fstab.install.in,v
 retrieving revision 1.2
 diff -u -r1.2 fstab.install.in
 --- fstab.install.in    20 Nov 2012 20:16:03 -0000      1.2
 +++ fstab.install.in    11 Dec 2018 12:55:05 -0000
 @@ -1,2 +1,2 @@
 -/dev/@@BOOTDISK@@a     /               ffs     rw              1 1
 +ROOT.a                 /               ffs     rw              1 1
  tmpfs                  /tmp            tmpfs   rw              0 0

 but I won't commit that right away as it raises some follow-up
 questions; I will ask on tech-userlevel.
 -- 
 Andreas Gustafsson, gson@gson.org

State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Sat, 15 Dec 2018 21:42:41 +0000
State-Changed-Why:
Fix committed, for live images too.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.