Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-05-2008, 05:55 AM   #1
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
XFS filesystem, check at boot

hello, I have xfs filesystem at my root, I have debian etch rc3.
if the system shutsdown improperly , it runs fsck.xfs which basically doesnt repair system .So is there a way I can run xfs_repair at boot ?
Old 05-05-2008, 09:24 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,564

Rep: Reputation: 214Reputation: 214Reputation: 214
You could try getting rid of fsck.xfs and creating a link to xfs_repair named fsck.xfs:

# mv fsck.xfs old.fsck.xfs
# ln -s xfs_repair fsck.xfs

Now when your system runs "fsck.xfs" it will actually be running xfs_repair. If it doesn't work the way you want, just remove the link and rename old.fsck.xfs to fsck.xfs.
Old 05-05-2008, 09:27 AM   #3
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,291

Rep: Reputation: Disabled a live cd...pclinuxos hopefully has the xfs prog tools on it.

so boot the cd up to normal login and enter root

DO not mount your target partition pls

then run
xfs_check and if errors xfs_repair
Old 05-05-2008, 11:31 AM   #4
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
thanks but sometimes, xfs_repair suggests to mount the partition so that the 'meta changes' could be written ,so if link fsck.xfs, it prolly wont do anything either.
Is there no boot programme that can decide if filesysem needs to be mounted or not before starting XFS_repair? and act accordingly?


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
Boot problem: filesystem check of non existing partition Raphexion Linux - Newbie 1 08-11-2007 05:50 AM
Filesystem Check Every Boot springshades Linux - Software 4 08-16-2005 12:25 PM
How do I do a filesystem integrity check on XFS? Thaidog Linux - Newbie 2 08-27-2004 01:25 AM
filesystem check fails during boot quinnk Linux - Software 1 08-01-2004 09:27 AM
Filesystem check error during boot macisaac Red Hat 1 12-05-2003 02:44 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:43 AM.

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