From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-182015-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0EF90138330 for <garchives@archives.gentoo.org>; Sat, 13 Jan 2018 21:16:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C64FE096E; Sat, 13 Jan 2018 21:16:06 +0000 (UTC) Received: from smarthost01d.mail.zen.net.uk (smarthost01d.mail.zen.net.uk [212.23.1.7]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4572E094E for <gentoo-user@lists.gentoo.org>; Sat, 13 Jan 2018 21:16:05 +0000 (UTC) Received: from [81.108.251.46] (helo=mail.digimed.co.uk) by smarthost01d.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <neil@digimed.co.uk>) id 1eaT9n-0004PG-Sz for gentoo-user@lists.gentoo.org; Sat, 13 Jan 2018 21:16:03 +0000 Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id 6449D67045 for <gentoo-user@lists.gentoo.org>; Sat, 13 Jan 2018 21:16:03 +0000 (GMT) Date: Sat, 13 Jan 2018 21:16:02 +0000 From: Neil Bothwick <neil@digimed.co.uk> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot Message-ID: <20180113211602.5a4b22d5@digimed.co.uk> In-Reply-To: <CAMtWw9x+_zkKeQBcj+XFtF6BriJOTAMNH_1PkmYSJedKa9jpRg@mail.gmail.com> References: <1515841123.569865.1234053704.79666D14@webmail.messagingengine.com> <20180113172932.GA22136@31c0.net> <1515871850.730519.1234341488.39240761@webmail.messagingengine.com> <f93f4690-2480-b2e0-0fb6-41cbb6d416e7@gmail.com> <20180113205411.3bab9ace@digimed.co.uk> <CAMtWw9x+_zkKeQBcj+XFtF6BriJOTAMNH_1PkmYSJedKa9jpRg@mail.gmail.com> Organization: Digital Media Production X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/7YiWWgEsbJHnffyDI2OHO4C"; protocol="application/pgp-signature" X-Originating-smarthost01d-IP: [81.108.251.46] Feedback-ID: 81.108.251.46 X-Archives-Salt: 22f530fe-7529-4090-b7c0-97f3ef995e70 X-Archives-Hash: 135987068a7b7871490fd39b5d482cf7 --Sig_/7YiWWgEsbJHnffyDI2OHO4C Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote: > Shouldn't that be taken care of by the "/etc/fstab" entries? Those say whether the filesystem should be checked, not when. > Obviously, if "/usr" is on a separate partition, it needs to be mounted > at the time when "/usr/sbin/fsck" is expected to be present. fsck is in /sbin, but that's not the point. If you have an initramfs, fsck should be in it and run before /usr is mounted rw, which means it has to be done by the initramfs. It's too late to do it when control has been handed over because then /usr is already mounted rw. =20 >=20 > On Sat, Jan 13, 2018 at 2:54 PM, Neil Bothwick <neil@digimed.co.uk> > wrote: >=20 > > On Sat, 13 Jan 2018 21:29:12 +0200, Alan McKinnon wrote: > > =20 > > > fwiw, fsck here runs automagically at startup whenever the fs is > > > dirty, and I do not use an initramfs at all. Not sure exactly what > > > code does this, I assume it's something in OpenRC. =20 > > > > It is, and the reason it works is that you do not use an initramfs > > that mounts /usr before openrc gets a look in. If you use an > > initramfs, that should take care of running fsck when needed. > > > > > > -- > > Neil Bothwick > > > > Puns are bad, but poetry is verse... > > =20 --=20 Neil Bothwick If a book about failures doesn't sell, is it a success? --Sig_/7YiWWgEsbJHnffyDI2OHO4C Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAlpadxIACgkQ92eFu0QS MJg4uBAAnbWlHjAsYp/Ac/IHqOtrdqH11C15vXrUPZzeqXLr3G0rElF8mBZIRO8X 2CaHD9S3CNaFqmgfwwKjsuYG1FaPdjxiH5SeDRh0063/GNL0RHjmNAleNnwZmjaI GnCY0kKo3/DeSZ7JQde9GQ65ny3fDEcAFjmo/+Xg4OlqxidJmatCI5oNTpUqGG8o tzhEoHAj+GcWGupHj3LcLBl29IwBPfrK9BVeyD4XB8F5wLib5Imel+gnj7PFK4UG 95SETxnOMZvH7drWGBtYKZdOlhk5AEqeCqKK3Z9T3mUQWjiXa630ne4I9Dpn1Ugf Gc3ZnEoVSZGn7Ssg6jDWpZXJJ9P6G81NMLoTsqHhf0AV8+tHiZiV4soWvEYNYHrC 9WJxX/y45dTac+a30Xx8QypzRVfF8z9fiZ2btR+BmCNPp3vlqxhfUVTEvZm/jAeK BDwzJlRiruKJ8JLDotymBi3ByhAOs+h1rpqAhyb8NvFpvYVJdSW7h7e4SsSHADFQ w7Cc9fUuW61UjmeLV2SiKn6JS3buSITIsDIOl7X8wHv8n6bYxmjJAsGYs1CmmONR E9P4EyuDvpUaHRzNdNB2ZEcC3eJ+sI+d74KJoDsp9PCW3Wt7ycNDKwh5YIjBQmG+ cD0aVS23Ua5S987fda4YEcEKX7WMUiHhhyE5SP14Q/lcbI+ULfw= =NE4S -----END PGP SIGNATURE----- --Sig_/7YiWWgEsbJHnffyDI2OHO4C--