LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-01-2008, 05:45 PM   #1
Zoohouse
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.

Thanks
 
Old 04-01-2008, 05:59 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,511

Rep: Reputation: 177Reputation: 177
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
 
Old 04-01-2008, 07:06 PM   #3
Zoohouse
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
Zoohouse
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.

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

Last edited by Zoohouse; 04-01-2008 at 09:13 PM.
 
Old 04-12-2008, 06:58 PM   #5
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 956

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


Reply

Tags
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


All times are GMT -5. The time now is 06:45 AM.

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