Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a new hard drive, formatted it to ext3, and made a check for bad blocks using e2fsck. It gave me this:
Quote:
kubuntu@Pocitac:~$ sudo e2fsck -f -c /dev/sdi1
e2fsck 1.41.9 (22-Aug-2009)
Checking for bad blocks (read-only test): done
/dev/sdi1: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdi1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdi1: 11/91578368 files (0.0% non-contiguous), 5798288/366284000 blocks
I just would like to know where i can find how many bad blocks were found (perhaps one if it is using singular in sentence "Updating bad block inode."??), and what is/are the number(s) of located bad block(s).
Sorry if my question is stupid (seems so to me too), but i spent more than hour to find it out without any satisfying result.
You don't have any bad blocks, unless your harddrive is showing some weird size. I spent several hours trying to 'fix' badblocks on a flash drive which showed capacity of 3GB instead of its real size of 476MB.In case you are curious, use the command badblocks http://linux.die.net/man/8/badblocks, but it only apparently lists the badblocks and not fix it, which I don't think you need.And regarding /dev/sdi1, how many harddisks do you have 10?
Thanks for the reply nikhil760. This is my 5th harddisk. This one is external and intended only for backups of everything on the other disks.
I ran e2fsck with the option "-c", this should run badblocks program under the e2fsck.
First i ran e2fsck without "-c" option. It finished with exit code 0, which means that no errors were found. Then i ran e2fsck -c, and that finished with exit code 1, which means that there were some errors and have been corrected. This made me think that there are some bad blocks. I'm just curious if my conclusion is correct, and if yes, where i could see the list of bad blocks. The best would be to see it without need to run the test for bad blocks again, because it takes 13 hours.
If there are no bad blocks, why number "1" on exit code?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.