ext4 needs a fsck every other boot
Having some problems with on of my harddrives, a 500gb samsung. I have to fsck almost everytime I boot. smartctl tells me the hd is healthy, badblocks returns no errors. I've run samsungs hd tool on the hd and it didnt find any errors. Is there some known bug in ext4 or something else that would cause this?
Slackware64-current with kernel 2.6.30.4 Thanks for any help :) |
It's possible it's not unmounting cleanly, but I have one really stupid idea worth looking at real quicklike. Run `tune2fs -l` on the partition in question and look for the line that says 'Maximum mount count:'. That's the number of mounts you're allowed before the system will force a fsck, and if yours is 1 or 2... like I said, stupid idea. :)
|
Code:
tune2fs 1.41.8 (11-July-2009) |
Alright; like I said, stupid idea. :)
Not sure where to go from here. Can you think of any reason why your shutdowns wouldn't be going as expected? One diagnostic you could try if you can afford to - don't do anything important in combination with this - is to change the on-error behavior (`man tune2fs`) and see if it's happening while the system's up. That's potentially dangerous, though, so think about it a lot before trying it. |
You had better believe fsck, and it is telling you that there is a problem.
If badblocks says you are OK, I would be trying something more basic, like spinrite. I also would be considering replacing the cable to the drive, and I would be taking a look at the voltages applied to the drive to make sure they are in spec. I also would be looking for dust bunnies, or a bent connector pin, or anything else that could cause an intermittent malfunction or data error. You didn't specify the interface, but I'm guessing SATA. Does the drive have error logging? What does that say? You access it with the smartctl -a command. Does the drive have a self-test mode? Try that too. Is your controller on the motherboard, or a plugin? Actually, truth is that in your position I'd have spinrite running that drive in a heartbeat. However spinrite costs $89 and because of that many people don't want to use it. Personally I found it to be money well spent. |
All times are GMT -5. The time now is 07:54 PM. |