From owner-freebsd-current@FreeBSD.ORG Thu Oct 18 09:11:34 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 CF10BF89; Thu, 18 Oct 2012 09:11:34 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 817368FC0C; Thu, 18 Oct 2012 09:11:34 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so17459538iea.13 for ; Thu, 18 Oct 2012 02:11:33 -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=oImP3+Tdr7ath0FHhTMlROB0WxTe1W+PsQELRC7B70k=; b=owLsrDrdTpedIExep8HtOoYFpFJw40TBdyuph+WBAIgG7HTH0VRbKMH06CgcZYs3Ko 4azmT05+FP7gfTmbTrzZoHN00bvoNrSNVPNAHayV5mXqA5+jjhaRhN2/aiS3hE8g1P4+ KPYEobppvc0ZSo/lURp6woL3bXGFZ35eFeXSJuHJtL6txDpLWDVqdDKObaWgY8JG93sA jmP27PhfSad7/iLBexbhUzLqWih/aIvgw0jQ9qU3MC7UlQQNeEVCEl8KawPSCSjyJflW sPzXZj7/8F8QcpY5fpyqYlQn2t7MB74KbkxAdZnE2HneoDRBBoZH1POoInjbSg/3yHAh qvFg== MIME-Version: 1.0 Received: by 10.42.52.5 with SMTP id h5mr2887653icg.50.1350551493738; Thu, 18 Oct 2012 02:11:33 -0700 (PDT) Received: by 10.64.32.10 with HTTP; Thu, 18 Oct 2012 02:11:33 -0700 (PDT) In-Reply-To: <507FB6C7.50402@FreeBSD.org> References: <507FB6C7.50402@FreeBSD.org> Date: Thu, 18 Oct 2012 12:11:33 +0300 Message-ID: Subject: Re: A little question about safe mode From: Alexander Yerenkow To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Thu, 18 Oct 2012 09:11:35 -0000 2012/10/18 Andriy Gapon > > First, I see "safe mode" mentioned in the subject, but nowhere in the body > of > the message? So, what's up with the safe mode? :-) > The single mode of course, which is forced :) Mistype, sorry. > on 18/10/2012 10:35 Alexander Yerenkow said the following: > > 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) > > This is a feature. > You might want consider using options ROOTDEVNAME in your kernel. > Okay, then why little help there mentioning "rw" as an option? It's of bug in help there, or in parsing mount options (rw is ignored). If I'm not fully clear - I can provide some screenshots. > > > 2. If I enter ufs:ada0s1a rw - I have / mounted in read-only anyway. <== > Is > > this bug?... > > It looks like a feature. The low-level mountroot code always mounts / as > r/o. It's supposed to be later remounted as r/w by rc.d/root script. > Yes, it's feature when it mounting with default parameters (e.g. with none). But what about rw? > > > 3. If I try to make it rw, with commands > > mount -o rw -u /dev/ada0s1a / > > there is no errors, but root is still RO. > > This sounds like a bug. > Is there anything on the system console? > Nope, I'm already on console in single mode. > > 4. I can't umount / remount some elsewhere this disk, just to create > fstab > > (it's already mounted and can't be updated). > > > > So, is this as-by-design, that you need "any other" media to boot, just > to > > create fstab, or there is "rw" mode broken, or I just missed something? > > > > It's very disappointing to be able boot interactively into system, but > have > > no way to "fix" fstab to make it non-interactively bootable :) > > You can try to create an md-based filesystem, mount it under /mnt and then > unionfs-mount it over /etc. > That's not solve problem that on my rootfs no fstab exists, so next boot will bring me to same situation. If someone willing to help/debug with this thing - get any bootable media (like live FreeBSD), and just rename/move/delete fstab file, and simply boot. > > -- > Andriy Gapon > -- Regards, Alexander Yerenkow