Operating System - HP-UX
1748213 Members
2993 Online
108759 Solutions
New Discussion юеВ

Re: how to make "fsck -o full" not interactive.

 
SOLVED
Go to solution
Diebold_Unix_Support
Occasional Advisor

how to make "fsck -o full" not interactive.

Hi,

If I give fsck -o full /dev/vg12_hickory_BCVS@vg15_EMC0387_MSM8x8/lvprodd it will give
fsck: /etc/default/fs is used for determining the file system type
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y

So every time I have to give "y" to go to the next line. Is there any way so that it will take the default value as "y" ?

Thanks

Sajith P
4 REPLIES 4
Torsten.
Acclaimed Contributor
Solution

Re: how to make "fsck -o full" not interactive.

From the man page:

"-y|-Y
Assume a "yes" response to all prompts by fsck. Additionally, if the file system requires a full file system check after the log replay, or if the nolog suboption causes the log replay to be skipped and the file system is not clean, then a full file system check is performed."

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Diebold_Unix_Support
Occasional Advisor

Re: how to make "fsck -o full" not interactive.

Thanks.
Torsten.
Acclaimed Contributor

Re: how to make "fsck -o full" not interactive.

You are welcome!

Please read this too:

http://forums11.itrc.hp.com/service/forums/helptips.do?#33

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Diebold_Unix_Support
Occasional Advisor

Re: how to make "fsck -o full" not interactive.

Thanks for giving me the information on this.