From owner-freebsd-bugs@FreeBSD.ORG Sat Nov 5 08:30:16 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5948316A41F for ; Sat, 5 Nov 2005 08:30:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 957E343D46 for ; Sat, 5 Nov 2005 08:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA58UFC1017848 for ; Sat, 5 Nov 2005 08:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA58UFhG017840; Sat, 5 Nov 2005 08:30:15 GMT (envelope-from gnats) Resent-Date: Sat, 5 Nov 2005 08:30:15 GMT Resent-Message-Id: <200511050830.jA58UFhG017840@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Brad Huntting Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BACAA16A41F for ; Sat, 5 Nov 2005 08:22:51 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86DC243D4C for ; Sat, 5 Nov 2005 08:22:51 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jA58MnGL096280 for ; Sat, 5 Nov 2005 08:22:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id jA58MnDR096279; Sat, 5 Nov 2005 08:22:49 GMT (envelope-from nobody) Message-Id: <200511050822.jA58MnDR096279@www.freebsd.org> Date: Sat, 5 Nov 2005 08:22:49 GMT From: Brad Huntting To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/88518: cannot mount root rw at boot X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2005 08:30:16 -0000 >Number: 88518 >Category: kern >Synopsis: cannot mount root rw at boot >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 05 08:30:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Brad Huntting >Release: 6.0-RELEASE >Organization: >Environment: ? >Description: The machine in question has problems booting the 6.0-RELEASE 'boot-only' CD. But it can boot diskless over the network. The procedure listed below works when installing 5.4-RELEASE, but not on 6.0-RELEASE. The problem is that the kernel is mounting the root partition readonly even when the root partition is an 'md' pseudo-device. A hack in 5.4's kern/vfs_mount.c causes mountroot to use RW when mounting an md device. This appears to be missing in 6.0. But what's more disturbing, is that the kernel flag (was it -w ?) for 'mount the root partition readwrite' appears to be missing in 5.4 and probably 6.0. This was a very usefull flag, did it change? Why was it removed? >How-To-Repeat: Copy the 'boot-only' cd to a tftp- and nfs-exported directory and setup dhcp.conf accordingly. For example: filename "/scratch/diskless/FreeBSD/6.0R/boot/pxeboot"; option root-path "pernicious.glarp.com:/scratch/diskless/FreeBSD/6.0R"; Assuming you have permissions set correctly in /etc/exports, and tftp enabled from /etc/inetd.conf, a machine which net-boot's should get thrown into the FreeBSD install procedure. >Fix: Either restore the -w flag (or make a kernel environment switch 'boot_readwrite'), or reinstitute the hack in vfs_mount.c that causes 'md' root filesystems to be mounted readwrite initially. >Release-Note: >Audit-Trail: >Unformatted: