Help with fsck

Hi there,

Time to time I need to run fsck in /dev/sda2 partition. This is happening more often than I would like. What can cause this? I shut off my computer properly.

Please provide information.

Why do you think you need to run fsck /dev/sda2?

What type of file system is on /dev/sda2?

Are there then done any repairs by the fsck? Or other output?

In fact I’m not thinking. The system just force me to do that sometimes. Otherwise the system doesn’t begin.

ext4

Yes, there are always repairs. I can’t begin the system sometimes without these corrections.

Here is a new installation with all disks formatted.

Many thanks

When the file system regularly needs repairs, I assume the underlying hardware is faulty.

Thus better check the disk.

I’ll assume that this means you shut it down via software (in openSUSE), rather than with the power switch.

Does it shutdown reasonably quickly, or does it take too long? If it seems to take too long to shutdown, then try hitting the ESC key so that you see shutdown messages on the screen. See if they tell you anything.

Oh my gosh. I hope doesn’t, otherwise I’m in trouble.

There is an way to check the disk? Some app?

Reasonably quickly, but I will check the messages.

Smartctl can do it, but you might find it easier to use the storage device manufacturer’s checking utility than to try to use the smartctl man page.

Many thanks. So, I used it through the gmstarcontrol GUI and found these errors, but I didn’t find how to solve.

I’ve never used Toshiba. WD and Seagate utilities will report on a pass/fail basis.

With smartctl if you see

197 Current_Pending_Sector  -O--CK   194   173   000    -    313

you’re looking at a failed device that needed to be replaced already. It needs to look something like

197 Current_Pending_Sector  -O---K   100   100   000    -    0

The last column is key. It needs to be 0. It looks like your Toshiba might have this information if you scroll down in the log pane.