From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1STPw1-0001ur-RX for garchives@archives.gentoo.org; Sun, 13 May 2012 03:57:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A376CE05F9; Sun, 13 May 2012 03:57:14 +0000 (UTC) Received: from thorns-k137.hkbn.net (thorns-k137.hkbn.net [61.92.211.137]) by pigeon.gentoo.org (Postfix) with ESMTP id 48FBCE05F8 for ; Sun, 13 May 2012 03:55:49 +0000 (UTC) Received: from outguard02.hkbn.net ([203.186.94.188]) by iguard15.hkbn.net with ESMTP; 13 May 2012 11:55:30 +0800 Received: from outguard02.hkbn.net (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C703A21804D for ; Sun, 13 May 2012 11:55:46 +0800 (HKT) Received: from smtpo.ctimail.com (unknown [203.186.94.58]) by outguard02.hkbn.net (Postfix) with ESMTP id B020221803C for ; Sun, 13 May 2012 11:55:46 +0800 (HKT) Received: from gentoo-main.kwkh-home (183178212219.ctinets.com [183.178.212.219]) by smtpo.ctimail.com (8.14.5/8.14.5) with ESMTP id q4D3tijx009576 for ; Sun, 13 May 2012 11:55:46 +0800 Date: Sun, 13 May 2012 11:54:20 +0800 From: kwkhui@hkbn.net To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] fsck separate /usr Message-ID: <20120513115420.47525366@gentoo-main.kwkh-home> In-Reply-To: References: <20120513024334.69bc9dd1@weird.wonkology.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/w3PUMMv_LbtLgY./nXwGJy8"; protocol="application/pgp-signature" X-TM-AS-Product-Ver: IMSVA-8.2.0.1391-6.8.0.1017-18902.004 X-TM-AS-Result: No--22.886-9.9-31-10 X-imss-scan-details: No--22.886-9.9-31-10;No--22.886-5.0-31-10 X-TMASE-Version: IMSVA-8.2.0.1391-6.8.1017-18902.004 X-TMASE-Result: 10--22.885900-5.000000 X-TMASE-MatchedRID: u7Yf2n7Ca/0OwH4pD14DsPHkpkyUphL9fjJOgArMOCZaW2Ktn+I8/t5D SfLjEt8zFzgddvycAjQJfK2VHoNooe4dcT3ZaToczGZPOh8RY46RPtwwl97omxrUQ7A9MrmGLnD dtOuTwJ+LoweVgWVEOlsj2gppcxEvijnP0AA+QkESuhBXNJb1dLtW9LeKKGvbtRXhV8npIHTLgi dzBTT5Lb1lOqmSWhCDfrkWnJK7dPVVq1v9C2Djn3yX60mMab9IKFFZAe4nyZ5YlZ6bunjQ0YMDv FclzIUYEVtxaPoSt7BDIRZQKZEljT2Rn1xnHewV84dsinZ5e1gh5ozUsuASIoxs8UDyWt614q/q iSojqLeHHQtvygWztJRMZUCEHkRt X-Archives-Salt: b795b49a-e317-4ae1-af31-6549ad565b25 X-Archives-Hash: 64beffbe677467644da1eddf36bf1b6c --Sig_/w3PUMMv_LbtLgY./nXwGJy8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 12 May 2012 19:54:24 -0500 Canek Pel=C3=A1ez Vald=C3=A9s wrote: > On Sat, May 12, 2012 at 7:43 PM, Alex Schuster > wrote: > > Hi there! > > > > I'm using the new udev with a separate /usr partition. >=20 > How do you create your initramfs? The new udev (>=3D 182, I believe) > requires the use of an initramfs if you have a separated /usr. >=20 > > It was encrypted, > > and it seems there is no solution yet for this. >=20 > dracut has two modules, crypt and crypt-gpg, that maybe do what you > are needing. >=20 > > so I moved it over to an > > unencrypted volume - no problem, /usr is one partition where > > encryption does not make that much sense anyway. Works, but after > > an unclean shutdown (reading files in /proc// was not a good > > idea) /usr wants to be fsck'ed. But it is already mounted at that > > stage. >=20 > That's the reason you need an initramfs. No, that's the reason you want the filesystem's fsck to be included in the initramfs. > > The boot process just continues, but I wonder what one should do to > > make the fsck run. Except for using a live cd. >=20 > With an initramfs. Using initramfs is necessary but itself not sufficient. One can create an initramfs (from scratch) that does nothing but mount /usr (with only busybox and a few /dev nodes, plus whatever other tools needed to find /usr, viz. lvm, cryptsetup and friends, assuming the necessary drivers are built in the kernel and not as modules --- see e.g. the old gentoo wiki at http://www.gentoo-wiki.info/HOWTO_Custom_Initramfs_From_Scratch ). The initramfs needs to have the relevant fsck tools (plus dependencies) if it was to perform fsck. Kerwin. --Sig_/w3PUMMv_LbtLgY./nXwGJy8 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBCgAGBQJPrzB0AAoJEN8jXmjJyWMk94kQAI8YStdw5671NHTz6bwGKWhl +nTsEJkwptuEEJOVCWSTD1HSru/WTcWBYUFFxpqfDEUnSuXVxLRCRp6iJoIOW18P OKhtdfcXk2SBUEJEz1wuv/FYtvvQeBRK/n3rGJjnUEHI18oT4Nt9hIdvpk3UQefg 2hmanCUH4USSriQdPRflWa5BIho5Kyz/LK8WIVuqIm2D4Cw9P86q3lr+Yvt4niW5 vJpXNNzHRKZe/Kfe2oR7tYf5F4NxMe+fjQ76/kX/tAWIl6GpVVBcFsCMmE+QkcmC l9kmtC2lcgEmqbo77kfSSlhoZyD7t1UBOiuP8mUpa1uy9q97i66IaxVl+hsmjCWm pYRjfDlIeddh0pLkPTErv4U7Uaw+xCKQHZe0fOzA4JaBECWppMSk8+0AkVL2M3VV aKzq0+rRUr6MCqX72OLgvs6TmqCFBAcTXM4M5gvuXJFzjvpZIwFaA6n8msKdxHbw MPFCz7sVup1pvT/IW0eOoypw/QwxU8TAVa+UVAQWCrniViIF5UnoR7A4vVeuzAWS 9lWEG0qmDLsEGeY2xPyvW7MOU4DWOvyLd7Esab5IRhHSw2IRD+qklm2HE69I4w4N fxgSe7JNwODTmsbnzzPFNH6F059Iy/JPCUG00gf/gvfo8/bJwvRhWl7adgDzdBt+ udbQwP9AoYOyZmsbNxpY =nuk1 -----END PGP SIGNATURE----- --Sig_/w3PUMMv_LbtLgY./nXwGJy8--