LinuxQuestions.org
Visit Jeremy's Blog.
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 03-05-2006, 12:45 PM   #1
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
need help to force fsck


I've installed debian stable with xfs filesystem and lilo. I'm trying to force a fsck on reboot but it just won't do it.

I've tried shutdown -Fr now and the system just reboots normally.

I've tried putting a file called forcefsck in the / directory and it still just restarts normally.

Is there an issue with forcing fsck and lilo? Or with xfs?

Before I had grub with ext3 filesystem and shutdown -Fr now worked fine, everytime. But it just won't with lilo and xfs.
 
Old 03-05-2006, 01:01 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
fsck.xfs(8) - Linux man page
NAME
fsck.xfs - do nothing, successfully
SYNOPSIS

fsck.xfs [ ...]
DESCRIPTION
fsck.xfs is called by the generic Linux fsck(8) program at startup to check and repair an XFS filesystem. XFS is a journaling filesystem and performs recovery at mount(8) time if necessary, so fsck.xfs simply exits with a zero exit status.

If you wish to check the consistency of an XFS filesystem, or repair a damaged or corrupt XFS filesystem, see xfs_check(8) and xfs_repair(8).
 
Old 03-05-2006, 02:06 PM   #3
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 203

Original Poster
Rep: Reputation: 32
I've read that and it doesn't say how to make fsck check the filesystem. It tells you it does it automatically at mount, but I want it forced to do it, needed or not to be sure there are no errors.

At mount I can see fsck run, it doesn't do a full check. It runs quickly and then is on the way with the rest of the boot process. I want the full check. Where it runs through the whole disk checking all the files, not a quick two second scan and then continue like normal.
 
Old 03-05-2006, 02:49 PM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I suggest you read through the init-scripts and see which is the one to do the checks and then add the -f option to the script to force a check anyway.
Or add an extra init script that will do this, regardless of if the check, which is done on every boot, has failed or not.
 
  


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
How to use fsck? Hungry ghost Linux - Software 4 11-07-2009 01:13 AM
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
How to use Fsck pembo13 Linux - General 4 04-20-2004 11:00 AM
autofsck or force fsck after uncontrolled shutdown r00tnuke Red Hat 5 09-05-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 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
Open Source Consulting | Domain Registration