I have consistenly met a “system files deleted” problem and need your help. Below is the description of the problem. Thanks in advance!
I run a program on qnx 6.3.2. The program uses a CAN bus card that requires a driver. The driver is an executable file running in background. (FYI, I run the program as root because the program needs to run in high priorities and needs to access IO.)
As I ctrl-c to kill the program, the driver exists/crashes. (This driver-crashing does not happen a lot before).
Then QNX cannot find shell commands such as pwd, cd, etc.
I have to the reboot the system. Not surprisingly, the system cannot boot.
Trying to recover, I boot from a QNX CD. I notice that the hard drive is already mounted normally as /fs/hd0-qnx4/ But as I cd into it, most files are gone. Remaining files are: “.bitmap .boot .filenames .altboot .inodes usr” Their sizes add up to a few MB.
Try fdisk /dev/hd0. Everything looks normal. (size, patition information)
Try dcheck, no bad sector
Try chkfsys, some fixable errors are detected. I choose to fix them. The system still cannot boot.
I spend a whole day to reinstall the system, softwares and my program. As I run the program it happens *** again ***: system files are deleted, same process as I described above. So it does not looks like an incident.
I don’t want to keep re-installing and thus I have to find out the reason of system files being deleted.
Any idea about the mistakes that I have made?
Thank you very much!