[Solved] FSCK from script at bootup

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon

[Solved] FSCK from script at bootup

Postby Gandalf the White on Fri Jan 18, 2013 1:59 am

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. :cry:

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. :evil:

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. :D

Thank you,
Gandalf
Last edited by Gandalf the White on Sat Apr 05, 2014 8:11 pm, edited 1 time in total.
OS -LinuxMint 64-bit, Release 14, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 78
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth

Linux Mint is funded by ads and donations.
 

Re: FSCK from script at bootup

Postby itsme4401 on Fri Jan 18, 2013 5:18 am

SEE: man tune2fs!
No script is needed:
Code: Select all
sudo tune2fs -c <number of reboots between checks> /dev/sdXY
itsme4401
Level 3
Level 3
 
Posts: 101
Joined: Sat Nov 27, 2010 4:12 pm
Location: Netherlands

Re: FSCK from script at bootup

Postby Gandalf the White on Fri Jan 18, 2013 5:31 am

itsme4401 wrote:SEE: man tune2fs!
No script is needed:
Code: Select all
sudo tune2fs -c <number of reboots between checks> /dev/sdXY

Sounds great. Thank you. Question: what command will give me the XY numbers?
I took a look at the man page and am thankful I'm retired, now. :D
OS -LinuxMint 64-bit, Release 14, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 78
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth

Re: FSCK from script at bootup

Postby squigish on Sat Jan 26, 2013 2:02 am

Code: Select all
sudo blkid

will display a list of all your hard drives and partitions, along with their label (if any), their device file (/dev/sdXY), UUID, and filesystem type.

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.
squigish
Level 1
Level 1
 
Posts: 6
Joined: Sat Jan 26, 2013 1:57 am


Return to Cinnamon

Who is online

Users browsing this forum: No registered users and 8 guests