From owner-freebsd-questions@FreeBSD.ORG Thu Jan 1 13:03:47 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E05133B for ; Thu, 1 Jan 2015 13:03:47 +0000 (UTC) Received: from nm5-vm4.access.bullet.mail.bf1.yahoo.com (nm5-vm4.access.bullet.mail.bf1.yahoo.com [216.109.114.131]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ACB1564968 for ; Thu, 1 Jan 2015 13:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s2048; t=1420117218; bh=9YNEWyEKH11WQlQahgC39qqnQauzjReJQqOrY6bY84E=; h=Date:From:To:Subject:From:Subject; b=JkoNKGfsNINPylbv3oJWOVbQ5BsiBlP8uu2jYsxFLoSFxQXe4KOyvAFZbe12tim7iJ2btwou9JRJ3Emfw5LK3qD6GzVqxK6ekz3bPg+uSG5W2uMqpykZvO15jjhvWMwAn9zn7+tLADGA8V/flDvzwZ0gYTIKe/Wu1xWfE2V3Cl6YljxY5DM3CfGHaSkmD2Vv+D20s3nUVomVWqa2vaD7sZv7nVdqBU9wejuqr1UXGkoH/oeec5RUC9APsT9pKX8W48IMUCQa1IiLxeCPrAsWMbWx5mU5ujcGkMS/cwggtTGDdEFlHvuwPg4Gpvc++6qdPcnK8KvpduLue5mf2h75kw== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=bellsouth.net; b=S0Qf4sfkYUgRcyvyNOcvuR2406BO+gLWn1IyaC7UMyOu8IsZd219rxRpqlJ+nifXbPNRxooGRAbWlm+VxyJtZE08GK4l5edKmN1DD7s5xKCsTqJFMZmBwJYT5NpOfDrrkLaXNgh6WkZIBhqkdUiUo3h7pbNyGTu1eUndYYiUPGXuiXzMYvlqV0ELhwPlT3kUpdHj9pRXAv/O4X9hYVPOM8JZS9Z4Z4gggedi+1D7orrZqUuWiQnUzUD4OXkbcjnfaErbfA5E+kTA8tIpvUMPXU7dTsVZDrlwJclCQbJs2Qmr/VMfKRpbgQEZE5XyuIgKrb/d/ruEDfReAFV2WSTtPA==; Received: from [66.196.81.161] by nm5.access.bullet.mail.bf1.yahoo.com with NNFMP; 01 Jan 2015 13:00:18 -0000 Received: from [98.138.104.99] by tm7.access.bullet.mail.bf1.yahoo.com with NNFMP; 01 Jan 2015 13:00:18 -0000 Received: from [127.0.0.1] by smtp119.sbc.mail.ne1.yahoo.com with NNFMP; 01 Jan 2015 13:00:18 -0000 X-Yahoo-Newman-Id: 534544.46331.bm@smtp119.sbc.mail.ne1.yahoo.com Message-ID: <534544.46331.bm@smtp119.sbc.mail.ne1.yahoo.com> Date: Thu, 1 Jan 2015 13:00:18 +0000 (UTC) X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: gyJNsd0VM1nKf8ypBsYu5miK2w7TqqkqCCKx.w5rOOxgVXj zTNEw3hy99mDUSH1kLt0dXbrsYpJag.apKC2XPDubBf80HFSSYLkKijDqH2R 8NCSssyo6sJe0Znf0WNtxIy189aViUcMiD4e2J5SEGGLp5JevRUwnc.hZ4eC o3Vuy3EXIohfEfmaJ9aWLutzzgXboPOQtPrX1GIpCD5XtD0KXvTrwUid5cea tVbVRdkrrZMUws09A0fsmkc6JzY1HXn5ho18HrMeIwDVuU9dzzLZ4ZwHw9Uw 73AomLsX7jp305T.Mj1WYljoda4EWAWlOXYi7k9pAzypkcWi9FhM20mtKGhw GnGtaOlThaLHgv7.06yp6rXW.VetLIQ.FD0kY8sVnGJINxuTXMjjdEg9EHPR 3xWtfkpNqu.2KPr36Tsj__Rc7BL5KAoRtoJvIP0MXZxF_t7O2mPYcJ2.WB4p amqQ.LZddc2Sp30AoLU6TniIXqHdWsotlQuuRH2WeCsFdh8GfaEUppKECbdQ u2w1Lr4NI8Ora1kiO16Zx2_3sFnmNYmZNqLnlYte6gt6O1824YyJRSWmw X-Yahoo-SMTP: Kz_aW1.swBBYof3zAD7.RWzXz9ZAQVDMml1VADsbgPT4Kq79LC0- From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: repeated fsck_ffs error: update X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 13:03:47 -0000 I accidentally hit the Reset button when trying to push the DVD drive tray button, a finger error easy to make on the NZXT Zero2 (now superseded by newer models) case. When rebooting, file system checks repaired root partition successfully, but I was unable to mount the desired home partition. My command was fsck_ffs -y /dev/gpt/Sea1-06 I ran it repeatedly (first without -y) and seemed to get partial fix, was able to mount read-only and rsync to another directory on another partition. Latter part of message that came repeatedly, so there was no point in running fsck any more: CYLINDER GROUP 356: BAD MAGIC NUMBER REBUILD CYLINDER GROUP? yes CYLINDER GROUP 357: BAD MAGIC NUMBER REBUILD CYLINDER GROUP? yes CYLINDER GROUP 358: BAD MAGIC NUMBER REBUILD CYLINDER GROUP? yes CYLINDER GROUP 359: BAD MAGIC NUMBER REBUILD CYLINDER GROUP? yes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=3 OWNER=root MODE=100000 SIZE=67108864 MTIME=Jun 24 04:22 2014 RECONNECT? yes NO lost+found DIRECTORY CREATE? yes CYLINDER GROUP 0: BAD MAGIC NUMBER REBUILD CYLINDER GROUP? yes fsck_ffs: bad inode number 0 to ginode Now what is that last line about bad inode number 0 to ginode, and is there any way around? Do I need to reformat and rsync back? I can also boot my NetBSD installation from last June (current, 6.99.44 amd64) and run NetBSD's fsck_ffs from there. Even if that really messes up, I still have the rsync copy to rsync back from. Update: I booted the NetBSD installation, ran fsck_ffs -y /dev/dk5 got the message that the filesystem was clean, no need to fsck. I subsequently booted back into FreeBSD and successfuly mounted that partition. Maybe the reboot was needed to clean some bad stuff out of memory. In answer to Eduardo Morras's question, I didn't run single-user, but ran fsck_ffs with the partition not mounted. So now the problem appears solved. Tom