Ask Your Question
1

Ext4 file system corruption after many regular reboots

asked 2017-03-28 03:06:46 -0600

highsciguy gravatar image

I am running a test with fedora 25 that requires me to reboot the system many times. The test requires me to use a self-compiled vanilla kernel v4.9. I am doing that with reboot in a systemd script. After many reboots the ext4 file system gets corrupted and I have to do a fsck to fix it.

The problem may be due to a kernel bug, but I likely cannot do anything about it. What can I try to avoid or fix the corruption? For instance, can I enforce an auto-correcting fsck on each reboot?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-28 03:55:34 -0600

fcomida gravatar image

Add this kernel commandline parameters: fsck.mode=force and fsck.repair=yes. See man systemd-fsck

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-03-28 03:06:46 -0600

Seen: 471 times

Last updated: Mar 28 '17