Hello, On Tue, 16 Nov 2010, Stan Goodman wrote:
After fsck finishes, its report includes (these are numbers from a few days ago): "/dev/sda7/:21727/2564096 files (0.7% non-contiguous 1982750/10241429 blocks".
I interpret this as meaning that there are bad blocks on the HD.
Those numbers have nothing whatsoever to do with bad blocks. An ext2/3/4 filesystem has a fixed number of inodes, determined on creation. Each file (regular file, directory, symlink, socked, device, named pipe) uses one inode. Hardlinks do not need additional inodes, just some space in the directory. So, the first pair of numbers tells you that currently there are 21727 inodes out of 2564096 inodes in use. Compare with the output of 'df -i /dev/sda7'. Of those 21727 files, there are 0.7% (or about 152 files) not contiguously on the disk, the file has two or more "pieces". E.g., with each '=' or '-' being one block (usually 4 KiB) whatever file_one file_two [..] Rest_of_file_one next_file ---------========-----------[..]-================----------- The sequences of blocks '=' where file_one "resides" on the disk is not in one piece, it is 'non-contiguous'. The second pair of numbers tells you how many blocks the filesystem has (10241429) and how many of those are in use by files (1982750). Compare with the output of 'df /dev/sda7', but you'll need to adjust the block-size. Assuming 4KiB: df -B 4096 /dev/sda7 You can find out how large your blocks are (and a lot more) by using: tune2fs -l /dev/sda7 or just for the blocksize: tune2fs -l /dev/sda7 | grep -i Block.size If you want to find out if your disk has bad blocks, run smartctl -s on /dev/sda smartctl -A /dev/sda as root. The relevant attributes are 5, 196, 197 and 198. Use e.g.: smartctl -A /dev/sda | \ awk '$1 ~ /^(5|19[678])/ { if( $NF != 0 ) { print FILENAME " " $2 "\t" $NF; } }' to filter for those attributes. HTH, -dnh -- The social dynamics of the net are a direct consequence of the fact that nobody has yet developed a Remote Strangulation Protocol. -- Larry Wall -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org