I have an optical disk that has gained two bad blocks after the drive
failed. I’ve tried to read it in another drive but I can’t mount it.
The disk has a single 2Gb partition mo0t79. When I insert the disk in the
drive (Which is scsi) I can read the partition table with
fdisk /dev/mo0
and mount -p /dev/mo0 works, but mount /dev/mo0t79 /opt fails with an i/o
error. dcheck /dev/mo0 reveals two bad blocks, but I can’t get either
dcheck -m /dev/mo0 or
dcheck -m /dev/mo0t79 to work as it complains of an i/o error and turns off
bad block marking.
Is there any way of rescuing some or all of the data?
regards
Julian Thornhill
Previously, Julian Thornhill wrote in qdn.public.qnx4:
Is there any way of rescuing some or all of the data?
Assuming that the rest of the data is readable it should
be possible. If you have some type of removable media,
or an extra SCSI hard drive, you could try copying the
Optical disk to the other media. Then you might
need to dinit the disk with the “-r” option. If that’s
not enough, you might need to do a normal dinit and
relink directories and files to the root.
\
Mitchell Schoenbrun --------- maschoen@pobox.com
“Mitchell Schoenbrun” <maschoen@pobox.com> wrote in message
news:Voyager.010604092244.202B@schoenbrun.com…
Previously, Julian Thornhill wrote in qdn.public.qnx4:
Is there any way of rescuing some or all of the data?
Assuming that the rest of the data is readable it should
be possible. If you have some type of removable media,
or an extra SCSI hard drive, you could try copying the
Optical disk to the other media. Then you might
need to dinit the disk with the “-r” option. If that’s
not enough, you might need to do a normal dinit and
relink directories and files to the root.
I’m a bit confused here - I can’t mount the partition, so how do I copy it?
At the moment I can’t mount the partition, so I can’t see any of the data at
all. I think I’m being a bit slow here…
thanks
Julian
You may be able to “cp /dev/mo0 /tmp/xxx” which if it gets past
the bad blocks would give you a “raw” image. You may then, with
much persistence and patience be able to recover data from
/tmp/xxx.
Richard
Julian Thornhill wrote:
“Mitchell Schoenbrun” <> maschoen@pobox.com> > wrote in message
news:> Voyager.010604092244.202B@schoenbrun.com> …
Previously, Julian Thornhill wrote in qdn.public.qnx4:
Is there any way of rescuing some or all of the data?
Assuming that the rest of the data is readable it should
be possible. If you have some type of removable media,
or an extra SCSI hard drive, you could try copying the
Optical disk to the other media. Then you might
need to dinit the disk with the “-r” option. If that’s
not enough, you might need to do a normal dinit and
relink directories and files to the root.
I’m a bit confused here - I can’t mount the partition, so how do I copy it?
At the moment I can’t mount the partition, so I can’t see any of the data at
all. I think I’m being a bit slow here…
thanks
Julian
Previously, Julian Thornhill wrote in qdn.public.qnx4:
I’m a bit confused here - I can’t mount the partition, so how do I copy it?
At the moment I can’t mount the partition, so I can’t see any of the data at
all. I think I’m being a bit slow here…
I’m talking about a sector by sector copy. You indicated that you
could mount with -p. You could try using “cp” which will probably
stop when it gets bad sectors. You might have to write a short
program that reads the input sector by sector, but writes out
zeros when a read fails.
thanks
Julian
\
–
Mitchell Schoenbrun --------- maschoen@pobox.com