scandisk(Windows) equivalent in QNX

Hi,
I want to implement the scandisk functionality(as in Windows)e.g. checking
for bad sectors in memory. Can anybody guide me which system calls I
should use or how to proceed to write a subroutine for this ?

Thanks

Jitendra

Jitendra Sasmal <sasmal_jk@rediffmail.com> wrote:

I want to implement the scandisk functionality(as in Windows)e.g. checking
for bad sectors in memory. Can anybody guide me which system calls I
should use or how to proceed to write a subroutine for this ?

Use “dcheck” (physical) or “chkdosfs” (logical) checking … ?

Hi,
Thank you very much. It is working. But one problem I found while checking
RAM memory.I tried like “dcheck /dev/shmem” as well as “dcheck
/dev/mem”,but in both the cases it gave “dcheck:Unable to get
DCMD_FSYS_MOUNTED_ON”. What may be the problem ?

Thanks again.
Jitendra
John Garvey wrote:

Jitendra Sasmal <> sasmal_jk@rediffmail.com> > wrote:
I want to implement the scandisk functionality(as in Windows)e.g. checking
for bad sectors in memory. Can anybody guide me which system calls I
should use or how to proceed to write a subroutine for this ?

Use “dcheck” (physical) or “chkdosfs” (logical) checking … ?

“Jitendra Sasmal” <sasmal_jk@rediffmail.com> wrote in message
news:bihi0a$6ep$1@tiger.openqnx.com

Hi,
Thank you very much. It is working. But one problem I found while checking
RAM memory.I tried like “dcheck /dev/shmem” as well as “dcheck
/dev/mem”,but in both the cases it gave “dcheck:Unable to get
DCMD_FSYS_MOUNTED_ON”. What may be the problem ?

You cannot check RAM easly, it’s quite a complex matter. There was a long
thread a while ago on the subject.

Thanks again.
Jitendra
John Garvey wrote:

Jitendra Sasmal <> sasmal_jk@rediffmail.com> > wrote:
I want to implement the scandisk functionality(as in Windows)e.g.
checking
for bad sectors in memory. Can anybody guide me which system calls I
should use or how to proceed to write a subroutine for this ?

Use “dcheck” (physical) or “chkdosfs” (logical) checking … ?