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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-05-2006, 12:45 PM
|
#1
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 203
Rep:
|
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.
|
|
|
03-05-2006, 01:01 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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).
|
|
|
03-05-2006, 02:06 PM
|
#3
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 203
Original Poster
Rep:
|
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.
|
|
|
03-05-2006, 02:49 PM
|
#4
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|