Back in the days of UNIX, when I was a young man, during the bootup of our UNIX computers, they would go through a command called FSCK. If an error was found, it would correct it. If I remember correctly. The command was in a script file. I do not remember the name of the file. It was like Window's Autoexec.bat. Could it be .cshrc, I think? I just do not remember. It has been to long time. I need your help.
Does Cinnamon have such a file? If so, what command would I append to it to cause the fsck to be initiated at bootup?
All my internet research has produce ways to manually running fsck. That is not my desire. The problem with searching the internet is you have to know the correct question.
I have never accepted just hitting the ball. I have always continued to swing until I had a home run. Please help me hit this home run.
Thank you,
Gandalf
[Solved] FSCK from script at bootup
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[Solved] FSCK from script at bootup
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: FSCK from script at bootup
SEE: man tune2fs!
No script is needed:
No script is needed:
Code: Select all
sudo tune2fs -c <number of reboots between checks> /dev/sdXY
Re: FSCK from script at bootup
Sounds great. Thank you. Question: what command will give me the XY numbers?itsme4401 wrote:SEE: man tune2fs!
No script is needed:Code: Select all
sudo tune2fs -c <number of reboots between checks> /dev/sdXY
I took a look at the man page and am thankful I'm retired, now.
Re: FSCK from script at bootup
Code: Select all
sudo blkid
If that's not enough to identify the partition you want to run fsck on, you can look at the /etc/mtab (all currently mounted file systems) or /etc/fstab (all filesystems set to mount during boot) files to identify the mount points.