From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MkjdY-0000kY-Ql for mharc-grub-devel@gnu.org; Mon, 07 Sep 2009 15:12:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkjdW-0000hu-S9 for grub-devel@gnu.org; Mon, 07 Sep 2009 15:12:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkjdR-0000XR-Gj for grub-devel@gnu.org; Mon, 07 Sep 2009 15:12:22 -0400 Received: from [199.232.76.173] (port=38975 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkjdR-0000XF-AO for grub-devel@gnu.org; Mon, 07 Sep 2009 15:12:17 -0400 Received: from gold.linx.net ([195.66.232.40]:34164) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkjdP-0003ZL-UZ for grub-devel@gnu.org; Mon, 07 Sep 2009 15:12:16 -0400 Received: from localhost (localhost [127.0.0.1]) by gold.linx.net (Postfix) with ESMTP id 29D8410089 for ; Mon, 7 Sep 2009 20:12:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linx.net; h= x-mailer:mime-version:message-id:date:organization:content-type :from:subject:received:x-virus-scanned; s=dkim; t=1252350731; bh=hfaKvc+8Wh9JBoFv5cnw1QwHnwx8qLjDI5PwyX3Ws0g=; b=xrcvIk4JojSw qVK5biRovBJlsnKVjONbwf55TY+kcoGmqZznxjZfpPFOYIvlAIEmZOKnOx2kLhH4 1hhnefxp6F43V7PXwDkQmD8niQSxsWHeIkUg2PRXAbKJvRb/gSpEetcSEVOHPMEL /U7wHH48hxAgprO79Vc/6jA0lW5uxWU= X-Virus-Scanned: amavisd-new at linx.net Received: from [192.168.252.2] (5ada4b3c.bb.sky.com [90.218.75.60]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tony@linx.net) by gold.linx.net (Postfix) with ESMTPSA id B97F910085 for ; Mon, 7 Sep 2009 20:12:11 +0100 (BST) From: Tony Vroon To: grub-devel@gnu.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-QBJ8j+MREmbUs/3Pl5mm" Organization: London Internet Exchange (LINX; AS5459) Date: Mon, 07 Sep 2009 20:13:25 +0100 Message-Id: <1252350805.4234.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: ~3TB ext4 volume not read correctly by ext2-fs driver in GRUB2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2009 19:12:23 -0000 --=-QBJ8j+MREmbUs/3Pl5mm Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ladies and gentlemen, It would appear that the ext2-fs driver is not reliably able to read directories on my ~3TB / filesystem: /dev/root 3.4T 1.7T 1.6T 52% / /dev/root on / type ext4 (rw,noatime,barrier=3D1,data=3Dordered) Whilst doing some troubleshooting over IRC, I was given a debug patch. With this patch applied, I'll show you a working directory entry (/etc) and a non-working directory entry (/boot): prometheus ~ # grub-fstest -d ext2 -v /dev/sda3 ls /etc fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed fs/ext2.c:688: got filename: '.', type 2 fs/ext2.c:862: grub_fshelp_dir returning: 0 fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed fs/ext2.c:688: got filename: '.', type 2 fs/ext2.c:688: got filename: '..', type 2 fs/ext2.c:688: got filename: 'lost+found', type 2 fs/ext2.c:688: got filename: 'lib', type 7 fs/ext2.c:688: got filename: '.config', type 1 fs/ext2.c:688: got filename: 'sbin', type 2 fs/ext2.c:688: got filename: 'root', type 2 fs/ext2.c:688: got filename: 'mnt', type 2 fs/ext2.c:688: got filename: 'opt', type 2 fs/ext2.c:688: got filename: 'var', type 2 fs/ext2.c:688: got filename: 'usr', type 2 fs/ext2.c:688: got filename: 'dev', type 2 fs/ext2.c:688: got filename: 'lib32', type 2 fs/ext2.c:688: got filename: 'home', type 2 fs/ext2.c:688: got filename: 'tmp', type 2 fs/ext2.c:688: got filename: 'media', type 2 fs/ext2.c:688: got filename: 'sys', type 2 fs/ext2.c:688: got filename: 'cvs', type 2 fs/ext2.c:688: got filename: 'proc', type 2 fs/ext2.c:688: got filename: 'etc', type 2 fs/ext2.c:651: iterating inode size=3D0 mode=3D0x0 fs/ext2.c:862: grub_fshelp_dir returning: 0 prometheus ~ # grub-fstest -d ext2 -v /dev/sda3 ls /boot fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:862: grub_fshelp_dir returning: 9 fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed fs/ext2.c:688: got filename: '.', type 2 fs/ext2.c:862: grub_fshelp_dir returning: 0 fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed fs/ext2.c:688: got filename: '.', type 2 fs/ext2.c:688: got filename: '..', type 2 fs/ext2.c:688: got filename: 'lost+found', type 2 fs/ext2.c:688: got filename: 'lib', type 7 fs/ext2.c:688: got filename: '.config', type 1 fs/ext2.c:688: got filename: 'sbin', type 2 fs/ext2.c:688: got filename: 'root', type 2 fs/ext2.c:688: got filename: 'mnt', type 2 fs/ext2.c:688: got filename: 'opt', type 2 fs/ext2.c:688: got filename: 'var', type 2 fs/ext2.c:688: got filename: 'usr', type 2 fs/ext2.c:688: got filename: 'dev', type 2 fs/ext2.c:688: got filename: 'lib32', type 2 fs/ext2.c:688: got filename: 'home', type 2 fs/ext2.c:688: got filename: 'tmp', type 2 fs/ext2.c:688: got filename: 'media', type 2 fs/ext2.c:688: got filename: 'sys', type 2 fs/ext2.c:688: got filename: 'cvs', type 2 fs/ext2.c:688: got filename: 'proc', type 2 fs/ext2.c:688: got filename: 'etc', type 2 fs/ext2.c:688: got filename: 'lib64', type 2 fs/ext2.c:688: got filename: 'boot', type 2 fs/ext2.c:651: iterating inode size=3D0 mode=3D0x0 fs/ext2.c:862: grub_fshelp_dir returning: 0 In order to help troubleshoot this, I can apply patches on top of current SVN, run fstest & test booting for you. Please note that making images of a 3TB drive is not practical and will not reflect the real situation to you. Sorry, but I am not comfortable offering SSH access to random internet strangers. Regards, Tony V. --=-QBJ8j+MREmbUs/3Pl5mm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEABECAAYFAkqlW1UACgkQp5vW4rUFj5oFlwCgpuY6MzJeBbqVLUFFXKjppyG/ iEIAn2h1L2j8VTw37sPOP93OCnQ/Xadx =+J5e -----END PGP SIGNATURE----- --=-QBJ8j+MREmbUs/3Pl5mm--