LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2007, 02:11 PM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 454

Rep: Reputation: 92
How to have automatic 'e2fsck -p -c /dev/hda1' once a week ?


How to have automatic check/fixing 'e2fsck -p -c /dev/hda1' once a week & started at the boot ?

Thank you
 
Old 01-28-2007, 02:57 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"How to have automatic check/fixing 'e2fsck -p -c /dev/hda1' once a week & started at the boot ?"

Use the tune2fs command. It is best to use tune2fs against an umounted partition so you may have to issue the command by booting a live CD. I think that the command that you want is:

tune2fs -i w /dev/hda1

See:
man tune2fs

------------------
Steve Stites
 
Old 10-17-2010, 12:44 AM   #3
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 454

Original Poster
Rep: Reputation: 92
Quote:
Originally Posted by jailbait View Post
"How to have automatic check/fixing 'e2fsck -p -c /dev/hda1' once a week & started at the boot ?"

Use the tune2fs command. It is best to use tune2fs against an umounted partition so you may have to issue the command by booting a live CD. I think that the command that you want is:

tune2fs -i w /dev/hda1

See:
man tune2fs

------------------
Steve Stites
Code:
touch /forcefsck
can be added to /etc/crontab

or
at shutdown can be passed to forcefsck

or the above help note
 
  


Reply


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
Rsync from say /dev/hda1 to /dev/sda1 backup DIRdiver Linux - General 6 10-09-2006 07:42 PM
Mount command says / is mounted from /dev/hda4, but I know its /dev/hda1 trewsfan Linux - Software 2 08-30-2006 11:01 PM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 05:54 AM
\dev\hda1 ?! maoinchina Linux - General 6 10-06-2003 08:23 AM
/dev/hda1 plisken Linux - General 2 03-14-2003 07:34 PM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration