1

I want to make fsck to run by default with -y at boot time to try to force automatic repair. Any idea how this can be done under Arch Linux?

7
  • @jasonwryan tnx. I actually need fsck.repair. – kaptan Jan 16 '18 at 6:02
  • why the down vote! care to explain? – kaptan Jan 16 '18 at 6:04
  • "This question does not show any research effort"... – jasonwryan Jan 16 '18 at 6:45
  • 1
    @jasonwryan I actually did search and did read the exact same page you mentioned but there was no notion of repair, it just talks about force fsck. And I did read the man page for fsck where I got the idea of -y. But I did not read systemd-fsck because I did not know such a thing exists. I just think giving more constructive feedback works better. – kaptan Jan 16 '18 at 20:02
5

I just found it myself. Need to pass kernel command line parameter fsck.repair=yes. In case of Raspberry Pi this needs to be appended to /boot/cmdline.txt file.

3
  • 1
    Thank you for pointing me the right direction! It would be worth noting in your answer that /boot/cmdline.txt appears to be specific to raspbian, and that other ways to pass parameters to the kernel can be found here: wiki.archlinux.org/index.php/Kernel_parameters – Johann Jul 22 '18 at 3:47
  • tnx @Johann. it is noted. btw /boot/cmdline.txt is specific to Raspberry Pi not raspbian. I am using armARCH with Raspberry Pi. – kaptan Jul 25 '18 at 23:52
  • Oh, right...raspbian is Debian based :) – Johann Jul 26 '18 at 18:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.