Filesystem_checking?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Filesystem_checking?
# 1  
Old 08-01-2014
Wrench Filesystem_checking?

hi i know the chkfsys utility and know how to check through command line . but i want to check in script .

i have cf having 4 partition . 1st partition having qnx image . after booting i have to check filesystem on other partition . if any error having those partition i have to display the error and shutdown . i don't how to do it. please help me to check filesystem in scipting and take decission .


note:i have partition type- hd0t77,hd0t78,hd0t79,hd0t80
Code:
#!/bin/sh
######
# My Test Script
######
 
echo Test Chkfsys Output
 
chkfsys -u /dev/hd0t77 $1
STATUS=$?
if test $STATUS -ne 0
then
echo "An error occured while running chkfsys!"
else
echo "error not occured"
 
fi
 
# end of Test Script


this script is working good. but some it is asking user input if filesystem corrupted like ..
Code:
bad xblock (0x14F88) signature: FIXABLE (data probably lost when fixed).
fix (Y/n) ? N

my question is i have to avoid this asking questions . i want automatically it will check don't asking yes/no questions...

please help me,

thanks and regards,
ganesan



Moderator's Comments:
Mod Comment Please use CODE tags and a duplicate of Filesystem_checking anyway

Last edited by rbatte1; 08-01-2014 at 09:02 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Filesystem_checking

hi i know the chkfsys utility and know how to check through command line . but i want to check in script . i have cf having 4 partition . 1st partition having qnx image . after booting i have to check filesystem on other partition . if any error having those partition i have to display the error... (2 Replies)
Discussion started by: ganesan_p
2 Replies
Login or Register to Ask a Question