From owner-freebsd-current@FreeBSD.ORG Sat Oct 20 15:37:58 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47B4D9C0 for ; Sat, 20 Oct 2012 15:37:58 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id C34388FC16 for ; Sat, 20 Oct 2012 15:37:57 +0000 (UTC) Received: by mail-ea0-f182.google.com with SMTP id c10so512103eaa.13 for ; Sat, 20 Oct 2012 08:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PtyzPcPk56JEkgsS3SSEkbZjB5twxNLF0ZegkypY6OU=; b=TXnxftJ7WWtgJA+G8wx0pTvZEbot2cPr4We66tFFGqZnZ7ywuKHXSgBl+AaqMBpGYO tcxzgx/cjeNnRRrW94rUkLoZSA8zq1v6olWqENtaAWdPai2tTGya7Pb3mHyJUKRXGnWP vbFqIOGVbszv95zWgLaGrMjCskivPenHVWWg5VMZ8MWBBARCNC2qnIQG0N61TKkQyLVl eUpWZmJ/n1RFr/CUTFj26AHzORaUR0xghL5aBt7FIrL/7ulf6sMjlMugUv8b9iBUH/Hy 2Rjs+hO2TPGsIKlqNnHBc0vgYjy2gt/O8OR89N77ih+GQJcR2LhJZ89idWDh2kuJWH7r SS6w== MIME-Version: 1.0 Received: by 10.14.172.137 with SMTP id t9mr5965464eel.2.1350747471020; Sat, 20 Oct 2012 08:37:51 -0700 (PDT) Received: by 10.14.188.136 with HTTP; Sat, 20 Oct 2012 08:37:50 -0700 (PDT) In-Reply-To: References: Date: Sat, 20 Oct 2012 10:37:50 -0500 Message-ID: Subject: Re: A little question about safe mode From: Scot Hetzel To: Alexander Yerenkow Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 15:37:58 -0000 On Thu, Oct 18, 2012 at 2:35 AM, Alexander Yerenkow wrote: > Hello there. > I have problem here, and don't know if it's bug or "feature" :) > If I prerare boot media (hdd, sd card,usb, etc) with FreeBSD, and NOT > create there fstab, I see such behavior: > > 1. I need enter manually where from mount root (e.g. ufs:ada0s1a or > ufs:ada0s1a rw) > 2. If I enter ufs:ada0s1a rw - I have / mounted in read-only anyway. <== Is > this bug?... Looks to be a feature in sys/kern/vfs_mountroot.c: 997 parse_mountroot_options(struct mntarg *ma, const char *options) : 1021 if( strcmp(name, "rw") == 0 || 1022 strcmp(name, "noro") == 0) { 1023 /* 1024 * The first time we mount the root file system, 1025 * we need to mount 'ro', so We need to ignore 1026 * 'rw' and 'noro' mount options. 1027 */ 1028 continue; 1029 } Scot