* Crashed disk...
@ 1995-05-10 4:00 Robert Tilden
1995-05-11 4:00 ` Howard S Shubs
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Robert Tilden @ 1995-05-10 4:00 UTC (permalink / raw)
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...
-Bob Tilden
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Crashed disk...
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
1995-05-12 4:00 ` Paul Randal
1995-05-22 4:00 ` everhart
3 siblings, 0 replies; 6+ messages in thread
From: Carl J Lydick @ 1995-05-11 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Crashed disk...
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
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Howard S Shubs @ 1995-05-11 4:00 UTC (permalink / raw)
In article <3orcfu$noc@news.acns.nwu.edu>, tilden@nuhepl.phys.nwu.edu
(Robert Tilden) wrote:
> 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?
Sure. Fire up Bookreader and find the chapter in the I/O User's Manual on
the Disk Driver. Then you can use $QIO to do whatever you want. I
believe that a disk mounted /foreign can be read as you wish w/o privs.
I've never actually tried this, though.
--
Howard S Shubs hshubs@bix.com Is this the right room
The Denim Adept hshubs@ultranet.com for an argument?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Crashed disk...
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
@ 1995-05-12 4:00 ` Paul Randal
1995-05-22 4:00 ` everhart
3 siblings, 0 replies; 6+ messages in thread
From: Paul Randal @ 1995-05-12 4:00 UTC (permalink / raw)
How about using IO$_READLBLK ? You need LOG_IO privs to do this.
If you get all the mapping pointers for a file from its header(s) in
indexf.sys it should be simple enough to feed the numbers into a
small program which will read the blocks off disk in order.
Cheers,
Paul.
---
Paul Randal - DEC OpenVMS Engineering "NFS - Nightmare
Tardis System Administration. File System"
URL=http://www.tardis.ed.ac.uk/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Crashed disk...
1995-05-10 4:00 Crashed disk Robert Tilden
` (2 preceding siblings ...)
1995-05-12 4:00 ` Paul Randal
@ 1995-05-22 4:00 ` everhart
1995-06-02 4:00 ` Stuart Rance
3 siblings, 1 reply; 6+ messages in thread
From: everhart @ 1995-05-22 4:00 UTC (permalink / raw)
On a 1994 or later sigtape you'll find an ODS-2 filestructure
reader that can read files off an ODS2 disk, even if foreign mounted.
Since it's pretty straightforward it probably can get files off a
disk even if the file structure isn't all there.
glenn
everhart@star.enet.dec.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Crashed disk...
1995-05-22 4:00 ` everhart
@ 1995-06-02 4:00 ` Stuart Rance
0 siblings, 0 replies; 6+ messages in thread
From: Stuart Rance @ 1995-06-02 4:00 UTC (permalink / raw)
> 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?
On the OpenVMS V6.2 Freeware CD you will find a tool called DISKBLOCK which
will do this for you.
--
***************************************************
* Stuart Rance rance@vivian.enet.dec.com *
* stuart.rance@hhl.mts.dec.com *
***************************************************
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1995-06-02 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1995-05-12 4:00 ` Paul Randal
1995-05-22 4:00 ` everhart
1995-06-02 4:00 ` Stuart Rance
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox