LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   XFS filesystem, check at boot (https://www.linuxquestions.org/questions/linux-software-2/xfs-filesystem-check-at-boot-639991/)

khaleel5000 05-05-2008 05:55 AM

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 ?

kilgoretrout 05-05-2008 09:24 AM

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.

aus9 05-05-2008 09:27 AM

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

khaleel5000 05-05-2008 11:31 AM

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?


All times are GMT -5. The time now is 12:50 AM.