From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,7a66da718ad147c7 X-Google-Attributes: gidf7344,public X-Google-Thread: f86d6,7a66da718ad147c7 X-Google-Attributes: gidf86d6,public X-Google-Thread: 1164f8,7a66da718ad147c7 X-Google-Attributes: gid1164f8,public From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Subject: Re: Crashed disk... Date: 1995/05/11 Message-ID: <3os15a$740@gap.cco.caltech.edu>#1/1 X-Deja-AN: 102448314 distribution: world references: <3orcfu$noc@news.acns.nwu.edu> organization: HST Wide Field/Planetary Camera reply-to: carl@SOL1.GPS.CALTECH.EDU newsgroups: comp.os.vms,comp.sys.dec,vmsnet.sysmgt 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.