From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Subject: Re: Crashed disk...
Date: 1995/05/11 [thread overview]
Message-ID: <3os15a$740@gap.cco.caltech.edu> (raw)
In-Reply-To: 3orcfu$noc@news.acns.nwu.edu
In article <3orcfu$noc@news.acns.nwu.edu>, tilden@nuhepl.phys.nwu.edu (Robert Tilden) writes:
=Hi,
= I posted an article several days ago concerning a semi-crashed
=hard drive I'm trying to extract data from.
=
= I can mount the drive /foreign and use DUMP to examine data on
=the drive. I've used DUMP/FILE to dump the indexf.sys areas and I now
=have a formatted list of file names, physical locations, and sizes. Does
=anyone have an idea on how to read a specific range of blocks off a
=/foreign mounted drive? Better yet, a piece of code which will do it?
=
= I know you're out there, I can hear you breathing...
Sure. You just open the disk as a file, and use direct access I/O to read the
blocks you're interested in. Note that on the disk mounted /FOREIGN, you're
dealing with logical blocks, so the block numbering is zero-based. E.g., in
FORTRAN, to read the sixth block on disk PDA0:, you'd:
BYTE BUFFER(512)
OPEN(UNIT=1,FILE='PDA0:',FORM='UNFORMATTED',ACCESS='DIRECT',
1 STATUS='OLD')
READ(1'5) BUFFER
END
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
understanding of astronomy is purely at the amateur level (or below). So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it. If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
next prev parent reply other threads:[~1995-05-11 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-10 4:00 Crashed disk Robert Tilden
1995-05-11 4:00 ` Howard S Shubs
1995-05-11 4:00 ` Carl J Lydick [this message]
1995-05-12 4:00 ` Paul Randal
1995-05-22 4:00 ` everhart
1995-06-02 4:00 ` Stuart Rance
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox