Where to run chkfsys during boot?

I want to run a chkfsys during the boot to check my drive and repair any
problems. I have it currently in /etc/rc.d/rc.sysinit but after it runs an
unmatched/mismatched if error pops up and I’m thrown into the text terminal.
I then have to manually set the TERM variable, edit the rc.sysinit file,
comment it back out, and reboot.

I run the following command:

chkfsys -P /

If I comment out the chkfsys, the boot works fine.

Any ideas?

Jim

P.S. I miss QNX 2 and 4. :slight_smile:

Well I finally found out how to do this by reading the QDN developer
articles. It sure does seem like a ton of work just to do a chkfsys.

So, I’m making a suggestion. Could you either add a flag to the diskboot
utility to signal that you want a chkfsys run on the / partition or add
something in diskboot that would check for a file name like “runchkfsys” in
the /etc/system/config dir like you do for the starting Photon?

I really don’t want to make a buildfile just to do a chkfsys.

Thanks,

Jim

“Jim Lambert” <jlambert@futurex.com> wrote in message
news:a0luh0$p4q$1@inn.qnx.com

I want to run a chkfsys during the boot to check my drive and repair any
problems. I have it currently in /etc/rc.d/rc.sysinit but after it runs
an
unmatched/mismatched if error pops up and I’m thrown into the text
terminal.
I then have to manually set the TERM variable, edit the rc.sysinit file,
comment it back out, and reboot.

I run the following command:

chkfsys -P /

If I comment out the chkfsys, the boot works fine.

Any ideas?

Jim

P.S. I miss QNX 2 and 4. > :slight_smile: