Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-01-2008, 06:45 PM   #1
LQ Newbie
Registered: Dec 2004
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
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.

Old 04-01-2008, 06:59 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,670

Rep: Reputation: 229Reputation: 229Reputation: 229
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


man tune2fs

Steve Stites
Old 04-01-2008, 08:06 PM   #3
LQ Newbie
Registered: Dec 2004
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks a lot,
I will try it as soon as I reach the house.
Old 04-01-2008, 10:11 PM   #4
LQ Newbie
Registered: Dec 2004
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
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.

sudo tune2fs -c 0 /dev/sda1
Now I just want to know how to manualy run the disk scan. A Google search turned up which has a great explanation on how to do this.

The command to run the disk scan on the next boot is:
$sudo touch forcefsck

Last edited by Zoohouse; 04-01-2008 at 10:13 PM.
Old 04-12-2008, 07:58 PM   #5
Registered: Oct 2005
Distribution: Ubuntu 12.04 X86_64
Posts: 958

Rep: Reputation: 35
fsck /dev/sd??
what you are looking for to manually check


fsck, harddisk, hda, scanning, tune2fs, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop standby on Maxtor external hard drive? M$ISBS Linux - Hardware 7 12-16-2007 10:14 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-05-2007 12:28 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 01:44 AM
Hard drive doesnt stop spinning sooty Linux - General 3 11-14-2002 06:30 PM
Help! Reboots when scanning SCSI channel chaines Linux - General 8 06-28-2002 08:47 PM

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration