From owner-freebsd-questions@freebsd.org Mon Dec 31 07:24:52 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 948F614298B6 for ; Mon, 31 Dec 2018 07:24:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 83A0C8D7CB for ; Mon, 31 Dec 2018 07:24:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.55.180]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1Mi2Bb-1hH4ZX3Fcv-00e7kg; Mon, 31 Dec 2018 08:24:18 +0100 Date: Mon, 31 Dec 2018 08:24:16 +0100 From: Polytropon To: The Doctor Cc: The Doctor via freebsd-questions Subject: Re: Read Only Single Mode Message-Id: <20181231082416.6a12e12b.freebsd@edvax.de> In-Reply-To: <20181231070023.GA80127@doctor.nl2k.ab.ca> References: <20181230191513.GB15230@doctor.nl2k.ab.ca> <20181231041609.aa9924c1.freebsd@edvax.de> <20181231070023.GA80127@doctor.nl2k.ab.ca> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:f/mPaF7/sIYaCy1qqVFvl4CNYBAOCdDpnKRSOEWwHxyXcqb+1jO GWJm7kw4r20BHyb84/uuF04sHlXpwb/BOot5U+lCVHPJY7mEqdtMbEM8X1+lrMo3RtbQOn2 cJ1MFfE6BrWSTLPl7DIMhqwgPs0+PoIowVnjAZUgvIx8m+ApgeyotWisSh/wRFt+ezm82/f 4jW1xsyC5pl2zPZrcsuDw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:8LHheG9HPj4=:Qk7+M7+34vFiK0OM78/3BJ lwxIPYoJLooXyDgf1PVrmLRNASSjEXC8+KmNYEsCs0XeLVDjUvk6KtJBF4EEBg4Z3v55i29a4 vrZt2rf3nIxCQkrjd+r0n7hmQcbSt+RgbpopuBKz4SGtu+U7yjBuKuDMjBRTyskzIxSL3uK4e 17KSzbsNxrUh/m+cxRlWOoFnRHgCoVdGLTn1d65TjtEbEzNyMpjBkuz6OKw/BWej1CstKzEdE 4ObjfYiHgEG4X/DCT0Q0orSqDIuWcY/4rxwD4CI7SogD7pMhU7wlNADDv0EJv7tjb+IGdkPDJ RZWLpFMS8NYchU1WI0i651PrYG24kY6CxOf6xp9IKenAAOyFalyKGwt5aBHakBpa3sqrFO2k1 0CF5eA191niWqpcyLFgdwZP9LYb3pJX52UCIeE+QIZg61rdCrliTUlip0CvuMy/VlglcfzJwb KUM4SiZIg8InJfLLrnHz/yj2fdzaz3q7bBr7ZAErmg6X5mWJUh0SsGUauojMwWCOjExMGgZHJ y+DOYAYu7HK2ShcbHdqwHBoy78dP4upRz037seNtFBaR4p0a6peOtuV9WQ+VWfZaZefoo49/H rTWZeu8Ivws4Exs56tFWcvznyG2Hn9oGhaVDoq8Ej7cHuGsLL5em7cpyRnbed3lmumi5EAWDn Z/qlLOMnKPLeJuozElM6BI+gG3kdRuEtxjc83s8Ym98pjypLJzN9qDZjPwloVDLGEnrTWZxHl miASzD+AK8N0nNsEEofvkuMB0i0nEhnfOjGZhW62NfU2sDg46TLzuOQpilQ= X-Rspamd-Queue-Id: 83A0C8D7CB X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mx01.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[180.55.195.92.zen.spamhaus.org : 127.0.0.10]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.83)[0.826,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.19)[0.189,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.61)[0.611,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[10.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.05)[ipnet: 212.227.0.0/16(-0.35), asn: 8560(0.63), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2018 07:24:52 -0000 On Mon, 31 Dec 2018 00:00:23 -0700, The Doctor wrote: > On Mon, Dec 31, 2018 at 04:16:09AM +0100, Polytropon wrote: > > On Sun, 30 Dec 2018 12:15:13 -0700, The Doctor via freebsd-questions wrote: > > > How do you correct read only devices in single mode? > > > > What do you mean with "to correct"? If you are refering to > > disk devices to be checked and repaired by fsck, this only > > works on unmounted or read-only devices (while unmounted is > > the preferred state). But if "to correct" means how to mount > > a read-only device in read/write mode, i. e., re-mount, then > > the command "mount -uw " (-u = update, -w = write) > > is to be used. > > > > Did I understand your question correctly? ;-) > > > > > More than likely. > > What is happening is a ufs file system oince in single user mode > is not wanting to mount when I type in > mount -a and that is not usually the case. There is a reason for this specific behaviour, and the reason is intended: If the filesystem is in an inconsistent state, it cannot be mounted. Often you can force a read-only mount, but you should run fsck first in such a case (usually on the unmounted device). When you receive the message that the filesystem has been marked clean, a normal r/w mount should be possible again. This is what "mount -a" usually does in SUM, according to the options set in /etc/fstab - as long as the filesystems in question are clean. That's why a common procedure is "fsck && mount -u / && mount -a". :-) See "man 8 mount" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...