From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_ADSP_NXDOMAIN, DMARC_MISSING,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from mout04.kundenserver.de (mout04.kundenserver.de [195.20.224.89]) by chiba.3jane.net (Postfix) with ESMTP id B846EEBC1 for ; Thu, 13 Dec 2001 11:50:33 -0600 (CST) Received: from [195.20.224.220] (helo=mrvdom04.kundenserver.de) by mout04.kundenserver.de with esmtp (Exim 2.12 #2) id 16Ea0K-00066j-00 for gentoo-dev@gentoo.org; Thu, 13 Dec 2001 18:50:44 +0100 Received: from p5082af05.dip.t-dialin.net ([80.130.175.5]) by mrvdom04.kundenserver.de with esmtp (Exim 2.12 #2) id 16Ea0K-0003Ew-00 for gentoo-dev@gentoo.org; Thu, 13 Dec 2001 18:50:44 +0100 From: Sebastian Werner To: gentoo-dev@gentoo.org Content-Type: multipart/mixed; boundary="=-pAthiBOrDVvsOm/tnAfX" X-Mailer: Evolution/1.0 (Preview Release) Date: 13 Dec 2001 18:46:46 +0100 Message-Id: <1008265607.28849.2.camel@wp.smile> Mime-Version: 1.0 Subject: [gentoo-dev] checkfs-update Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Developer discussion list List-Unsubscribe: , List-Archive: X-Archives-Salt: 96cb15d4-0a46-4d8e-a1f7-2b5a24ffd107 X-Archives-Hash: d94f7885d2111536056ca01db178306d --=-pAthiBOrDVvsOm/tnAfX Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, i don't know why i must fsck my reiserfs root... mhh. I have a new checkroot file for the people who use reiserfs. I don't know about xfs and ext3... must they checked after a crash? the checkroot script checks all types but not reiserfs. The new checkfs file look if you use a ext2-filesystem and then checks it. Sebastian Werner --=-pAthiBOrDVvsOm/tnAfX Content-Disposition: attachment; filename=checkfs Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-15 #!/sbin/runscript depend() { need checkroot } start() { grep "/dev" /etc/fstab | grep -v "#" | grep ext2 > /dev/null 2> /dev/null if [ $? =3D 0 ]; then ebegin "Checking all filesystems" fsck -R -A -a if [ $? -eq 0 ] then eend 0 elif [ $? -eq 1 ] then eend 1 "Filesystem errors corrected." else=20 eend 2 "Fsck could not correct all errors, manual repair needed" /sbin/sulogin $CONSOLE fi fi return } --=-pAthiBOrDVvsOm/tnAfX Content-Disposition: attachment; filename=checkroot Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-15 #!/sbin/runscript start() { if [ "`cat /proc/mounts | grep " / " | cut -d" " -f3`" !=3D "reiserfs" ]; = then ebegin "Remounting root filesystem read-only (if necessary)" mount / -o remount,ro=09 eend $? ebegin "Checking root filesystem" fsck -a if [ $? -eq 0 ] then eend 0 elif [ $? -eq 1 ] then eend 1 "Filesystem repaired" else eend 2 "Filesystem couldn't be fixed :(" /sbin/sulogin $CONSOLE reboot -f fi fi =09 ebegin "Remounting root filesystem read/write" mount / -o remount,rw eend $? return } --=-pAthiBOrDVvsOm/tnAfX--