LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-05-2008, 06:55 AM   #1
khaleel5000
Member
 
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, 10:24 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 143Reputation: 143
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, 10:27 AM   #3
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
yes....run 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, 12:31 PM   #4
khaleel5000
Member
 
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?
 
  


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


All times are GMT -5. The time now is 07:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration