The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 31,904     Votes:  5     ✅ Solution
Tags: grub2   fsck  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

URL: https://askubuntu.com/q/1038764
Title: how to do I force-yes on fsck
ID: /2018/05/21/how-to-do-I-force-yes-on-fsck
Created: May 21, 2018
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


The answer to your question is here How can I make fsck run non-interactively at boot time?

To force ubuntu to fix all disk errors at boot you need to add FSCKFIX=yes to the file /etc/default/rcS. This tells fsck to run with the -y flag.

⇧ How to have script detect if terminal emulator is running in a desktop session or not? What software is in the Canonical Partners repository?  ⇩