Help answer threads with 0 replies.
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, 05: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, 05:59 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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, 07: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, 09: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 09:13 PM.
Old 04-12-2008, 06:58 PM   #5
Registered: Oct 2005
Distribution: Ubuntu 12.04 X86_64
Posts: 960

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 09:14 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Hard drive doesnt stop spinning sooty Linux - General 3 11-14-2002 05:30 PM
Help! Reboots when scanning SCSI channel chaines Linux - General 8 06-28-2002 07:47 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:37 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