LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to stop Ubuntu from scanning my hard drive after n reboots (http://www.linuxquestions.org/questions/ubuntu-63/how-to-stop-ubuntu-from-scanning-my-hard-drive-after-n-reboots-632289/)

Zoohouse 04-01-2008 05:45 PM

How to stop Ubuntu from scanning my hard drive after n reboots
 
I have the current stable version of Ubuntu. Every 30 something reboots (from normal use), Ubuntu scans my disk at boot up to search for any errors that may exist. How do I disable this feature?

I could of sworn that features was for servers and the current desktop version of Ubuntu disabled that feature.

Thanks :)

jailbait 04-01-2008 05:59 PM

The number of reboots per fsck parameter is set on the hard drive. Use tune2fs to change the parameter. For example to turn off checking on /dev/hda:

tune2fs -c 0 /dev/hda

See:

man tune2fs

----------------------
Steve Stites

Zoohouse 04-01-2008 07:06 PM

Thanks a lot,
I will try it as soon as I reach the house. :)

Zoohouse 04-01-2008 09:11 PM

I just finished running the command and it seemed to have worked.
I had to modify the command a little because my drive is different.

Quote:

sudo tune2fs -c 0 /dev/sda1
Now I just want to know how to manualy run the disk scan. A Google search turned up http://ubuntu.wordpress.com/2005/10/...eck-at-bootup/ which has a great explanation on how to do this.

The command to run the disk scan on the next boot is:
Quote:

$sudo touch forcefsck

dasy2k1 04-12-2008 06:58 PM

is
Code:

fsck /dev/sd??
what you are looking for to manually check


All times are GMT -5. The time now is 07:01 AM.