From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,428cedcbc1789ca9 X-Google-Attributes: gid103376,public From: "Tarjei Tj�stheim Jensen" Subject: Re: Reading Unpartitoned Raw Disks w/ Gnat and SunOS 5.6 Date: 1999/06/08 Message-ID: <7jioug$svn1@ftp.kvaerner.com>#1/1 X-Deja-AN: 487009294 Content-Transfer-Encoding: 7bit References: <7jh0j7$18ha@r02n01.cac.psu.edu> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Organization: Kv�rner Oil & Gas Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-06-08T00:00:00+00:00 List-Id: 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,