LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-25-2006, 08:16 PM   #1
yevgenit
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
FSCK on EX2 after dirty boot


I was forced to powr down my Linux system and after boot it will run FSCK. One of the files that my software is writing to was old after FSCK. I can reproduce this problem again and agalin. It's looks like FSCK is using some kind of last known good configuration. My questions are:

1. Is there any ability to choose not to run a recovery on perticular files not related to the system?

2. Where those good files are kept and how often it's get updated?



Thanks a lot for your help
 
Old 04-25-2006, 08:42 PM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
If you have a live cd (or install cds with a rescue option), boot the cd, and run "e2fsck -y /dev/hda1" (or /dev/sda1 if you are using sata drives). This should clean up the filesystem fairly well. The next step is to turn on journaling. Use "tun2fs -j /dev/hda1" (or sda1 - see above). This will create a journal for your filesystem. Run this on each ext2 partition, then edit /etv/fstab and change all of the ext2 mount listings to ext3. Now, whenever you shut down the system, what ever writes to the system that were queued but not written will get updated on reboot. It is much cleaner and safer, especially in hard power downs (turning system off, kids tripping over cords, random act of god, etc).
 
  


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
Howto force fsck after dirty shutdown? anti_trend Linux - General 1 10-15-2004 06:34 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
coverting ex2 fs to ex3 a_deaton Fedora 5 03-06-2004 06:19 PM
fsck on boot pjviitas Linux - Software 1 02-21-2004 04:05 PM
whats the diff between ex2 and ex3? purpleburple Linux - General 2 09-24-2002 02:51 PM


All times are GMT -5. The time now is 05:09 PM.

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