User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Pi3: /etc/default/rcS --> FSCKFIX=yes?

Wed Apr 13, 2016 12:50 am

Pros and cons to leaving this file checker uncommented and enabled on an overclocked pi3?


Code: Select all

# automatically repair filesystems with inconsistencies during boot
FSCKFIX=yes
DNPNWO

User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Wed Apr 13, 2016 3:36 pm

Anyone familiar with FSCKFIX?
DNPNWO

User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Sun Apr 17, 2016 3:37 pm

Anyone?
DNPNWO

User avatar
jojopi
Posts: 3271
Joined: Tue Oct 11, 2011 8:38 pm

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Sun Apr 17, 2016 3:46 pm

If you do not know what FSCKFIX means, then it is best not to change it.

I suspect you do have some idea what it means, and some theory why you might want to change it. It would be good to outline your thoughts and understandings and then ask for advice. People are unlikely to write a detailed response to a vague question, and even if they did it might not address your particular concerns.

User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Sun Apr 17, 2016 3:53 pm

jojopi wrote:If you do not know what FSCKFIX means, then it is best not to change it.

I suspect you do have some idea what it means, and some theory why you might want to change it. It would be good to outline your thoughts and understandings and then ask for advice. People are unlikely to write a detailed response to a vague question, and even if they did it might not address your particular concerns.
It is simple. I am heavily overclocked (both SoC and HC-1 Sdcard). I want the file system scanned for inconsistencies, fixed/repaired as necessary at boot to prevent potential issues/corruption that could result in a non-bootable event (requiring restoral of backup image to sdcard).

My question is thus:

This is by default, commented out and set to"no" (which I assume means (if uncommented) run at boot, but do not auto fix).

I just want to know is it advantageous in any way to run this automatically at boot, or is it commented out/disabled for a reason? and not worth enabling or setting to "yes"?

In otherwords, simply put, and in a nutshell:
Pros and cons to leaving this file checker uncommented and enabled on an overclocked pi3?
Last edited by Rive on Sun Apr 17, 2016 4:14 pm, edited 1 time in total.
DNPNWO

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Sun Apr 17, 2016 4:14 pm

Isn't this overridden in current RPF Raspbian images using the kernel command line?
/boot/cmdline.txt:

Code: Select all

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Sun Apr 17, 2016 4:18 pm

DirkS wrote:Isn't this overridden in current RPF Raspbian images using the kernel command line?
/boot/cmdline.txt:

Code: Select all

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

Are you saying that uncommenting this is useless?

sudo nano /etc/default/rcS

Code: Select all

# automatically repair filesystems with inconsistencies during boot
#FSCKFIX=no
DNPNWO

User avatar
jojopi
Posts: 3271
Joined: Tue Oct 11, 2011 8:38 pm

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Sun Apr 17, 2016 4:21 pm

Nothing can repair data corruption if it has happened. fsck simply makes filesystem metadata consistent. (So, directories cannot be their own parent, no two files have the same name, all space either belongs to exactly one file or is free; things like that.) You may still lose data, including stuff that is needed for boot.

FSCKFIX does not control whether fsck runs, but whether it "fixes" everything without user interaction. With "no", it will abort and give you a root shell if the errors are too serious. If your goal is to manually recover as much data as possible, you might want that. If you have backups, you might prefer to let fsck try its best.

In the Foundation's spindle-era images, FSCKFIX=yes was actually the default. In recent images, /boot/cmdline.txt has "fsck.repair=yes". I believe that takes precedence and is basically equivalent. If you want "no", remove the stanza from /boot/cmdline.txt as well.

User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Re: Pi3: /etc/default/rcS --> FSCKFIX=yes?

Sun Apr 17, 2016 4:28 pm

jojopi wrote:Nothing can repair data corruption if it has happened. fsck simply makes filesystem metadata consistent. (So, directories cannot be their own parent, no two files have the same name, all space either belongs to exactly one file or is free; things like that.) You may still lose data, including stuff that is needed for boot.

FSCKFIX does not control whether fsck runs, but whether it "fixes" everything without user interaction. With "no", it will abort and give you a root shell if the errors are too serious. If your goal is to manually recover as much data as possible, you might want that. If you have backups, you might prefer to let fsck try its best.

In the Foundation's spindle-era images, FSCKFIX=yes was actually the default. In recent images, /boot/cmdline.txt has "fsck.repair=yes". I believe that takes precedence and is basically equivalent. If you want "no", remove the stanza from /boot/cmdline.txt as well.
Thanks.
DNPNWO

Return to “General discussion”