comp.lang.ada
 help / color / mirror / Atom feed
* Reading Unpartitoned Raw Disks w/ Gnat and SunOS 5.6
@ 1999-06-07  0:00 Jack W. Sharer
  1999-06-08  0:00 ` Tarjei Tj�stheim Jensen
  1999-06-08  0:00 ` Robert Dewar
  0 siblings, 2 replies; 3+ messages in thread
From: Jack W. Sharer @ 1999-06-07  0:00 UTC (permalink / raw)


I have two disks that were striped with data by others.  These disks are "raw";
no partitions, no file structure.  I would like to process the data on them
using Gnat Ada on a Sun Sparc running SunOS 5.6.  How do I read this data?

The disks show in the tree as /dev/rdsk/c0t3d0s0
                                       . . .         s1
                                       . . .         ...
                                       . . .         s7
and
                                 /dev/rdsk/c0t4d0s0
                                       . . .         s1
                                       . . .         ...
                                       . . .         s7

Thanks for  your help, Jack Sharer, JSharer@psu.edu





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reading Unpartitoned Raw Disks w/ Gnat and SunOS 5.6
  1999-06-07  0:00 Reading Unpartitoned Raw Disks w/ Gnat and SunOS 5.6 Jack W. Sharer
  1999-06-08  0:00 ` Tarjei Tj�stheim Jensen
@ 1999-06-08  0:00 ` Robert Dewar
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1999-06-08  0:00 UTC (permalink / raw)


In article <7jh0j7$18ha@r02n01.cac.psu.edu>,
  JSharer@psu.edu (Jack W. Sharer) wrote:
> I have two disks that were striped with data by others.  These
disks are "raw";
> no partitions, no file structure.  I would like to process the
data on them
> using Gnat Ada on a Sun Sparc running SunOS 5.6.  How do I
read this data?
>
> The disks show in the tree as /dev/rdsk/c0t3d0s0
>                                        . . .         s1
>                                        . . .         ...
>                                        . . .         s7
> and
>                                  /dev/rdsk/c0t4d0s0
>                                        . . .         s1
>                                        . . .         ...
>                                        . . .         s7
>
> Thanks for  your help, Jack Sharer, JSharer@psu.edu


This is not even vaguely an Ada question, but rather an
operating system question, what devices and drivers do you
have to read these disks, and how are the drivers accessed?
Once these questions are answered, programming the necessary
binding in Ada is likely trivial.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reading Unpartitoned Raw Disks w/ Gnat and SunOS 5.6
  1999-06-07  0:00 Reading Unpartitoned Raw Disks w/ Gnat and SunOS 5.6 Jack W. Sharer
@ 1999-06-08  0:00 ` Tarjei Tj�stheim Jensen
  1999-06-08  0:00 ` Robert Dewar
  1 sibling, 0 replies; 3+ messages in thread
From: Tarjei Tj�stheim Jensen @ 1999-06-08  0:00 UTC (permalink / raw)



Jack W. Sharer wrote in message <7jh0j7$18ha@r02n01.cac.psu.edu>...
>I have two disks that were striped with data by others.  These disks are
"raw";
>no partitions, no file structure.  I would like to process the data on them
>using Gnat Ada on a Sun Sparc running SunOS 5.6.  How do I read this data?
>
>The disks show in the tree as /dev/rdsk/c0t3d0s0
>                                       . . .         s1
>                                       . . .         ...
>                                       . . .         s7
>and
>                                 /dev/rdsk/c0t4d0s0
>                                       . . .         s1
>                                       . . .         ...
>                                       . . .         s7


You probably need to read up on the read() system call. That should give you a
clue.

I'm sure you could also use streams to read the disks.

The striping is something you will have to work out for yourself.

Greetings,








^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-06-08  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-07  0:00 Reading Unpartitoned Raw Disks w/ Gnat and SunOS 5.6 Jack W. Sharer
1999-06-08  0:00 ` Tarjei Tj�stheim Jensen
1999-06-08  0:00 ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox