I am trying to boot into QNX4 and I get an I/O error. So, I used a boot CD
to boot and mounted the hard-drive. I can see all the directories on my hard
drive. If I go to the “etc” directory and do an “ls” it says:
readdir of “.” failed (Input/Output error).
Does anyone know what could be the cause?
Thank you,
Shashank
Shashank <sbalijepalli@precitech.com> wrote:
S > I am trying to boot into QNX4 and I get an I/O error. So, I used a boot CD
S > to boot and mounted the hard-drive. I can see all the directories on my hard
S > drive. If I go to the “etc” directory and do an “ls” it says:
S > readdir of “.” failed (Input/Output error).
S > Does anyone know what could be the cause?
The first two things I’d check are:
dcheck /dev/hd0t77
chkfsys /
The dcheck will tell you if there are defective sectors on the drive.
If the partition in question is NOT hd0t77, substitute the correct
partition. You may also dcheck the entire drive with “dcheck /dev/hd0”.
If there are any bad sectors flagged I’d run dcheck several times and
make sure that the locations of the defect ar consisant. If they are,
you can flag them as bad with “dcheck -m /dev/hd0t77”. If you get
different sectors each time you rin dcheck then there is a problem with
the drive electronics. Copy whatever you can to some other drive and
throw that one out.
Assuming the the drive is physically OK. The next thing to check is
the file system integrity with the chkfsys command. Chkfsys is willing
to try to fix many problems it encounters itself. If it DOES make any
corrections run it again. Sometimes it finds other problems after it
fixes the first one.
If it is possible it may not be a bad idea to save off anything you can
on this drive before you start working on it. Anything you do
(especially any writes) that don’t actually fix the problem may cause
further problems.
Good luck.
–
Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net