sun dkinfo command question

sun dkinfo command question

Post by Scott Cair » Fri, 18 Dec 1992 01:24:11



I'm working on an application that needs to display dkinfo(8) like
information about disk drives and their partitions.  This is under
SunOS 4.1.

So far, I've got it to a point where I can display the starting
cylinder number, the number of cylinders and the tracks/sector
for the drive but I need to get more detailed information about
the partitions.  

I've been using ioctl(2) to get the above information but what
calls should I be looking at to get the individual partition
info?

Thanks in advance.

+------------------------------------------------------------------+


| New York, New York, USA       |                                  |
+------------------------------------------------------------------+
| Standard disclaimers apply.                                      |
+------------------------------------------------------------------+
| I hope in the future Americans are thought of as a warlike,      |
| vicious people, because then I bet a lot of high schools would   |
| pick 'Americans' as their mascot.                                |
|                                       - Jack Handey              |
+------------------------------------------------------------------+

 
 
 

sun dkinfo command question

Post by Anthony Colli » Wed, 23 Dec 1992 01:55:24



> I'm working on an application that needs to display dkinfo(8) like
> information about disk drives and their partitions.  This is under
> SunOS 4.1.

> So far, I've got it to a point where I can display the starting
> cylinder number, the number of cylinders and the tracks/sector
> for the drive but I need to get more detailed information about
> the partitions.  

> I've been using ioctl(2) to get the above information but what
> calls should I be looking at to get the individual partition
> info?

> Thanks in advance.

> +------------------------------------------------------------------+


> | New York, New York, USA          |                                  |
> +------------------------------------------------------------------+
> | Standard disclaimers apply.                                 |
> +------------------------------------------------------------------+
> | I hope in the future Americans are thought of as a warlike,      |
> | vicious people, because then I bet a lot of high schools would   |
> | pick 'Americans' as their mascot.                                   |
> |                                          - Jack Handey              |
> +------------------------------------------------------------------+

I believe you may want to do 'man dkio'.  This should tell you how to
use ioctl(2) to get information from the disk label about partitions
and disk geometry.  I have used the DKIOCGEOM and DKIOCGAPART defines
as arguments to ioctl(2) to get geometry and partition information.

Hope this helps.

---
Anthony Collins
Xerox Corporation


 
 
 

1. HP Commands <---> Sun Commands list?

        hI! Netters:
                Could anyone inform me of any possible WWWsite/ftp
        site, that has convewrsion commands between HP operatring
        system and SunOS(prefarably for 4.1.3 sunos)?
                Thanks in advance.
Srinandan H.J

2. Problems with Yamaha 4416s CDRW w/ Adaptec 1460 under Linux

3. Solaris equivalent to dkinfo

4. Disk usage monitoring

5. what is the equivalent of dkinfo?

6. strange debugging line

7. Solaris equivalent of dkinfo?

8. chat timeout for UUCP connection

9. Sun Ray Server and Sun Ray 150 question

10. LS command question (How do I omit the LINK field from the output of the command)?

11. howto count differrent command fields on lsof command (newbie question)

12. project SUN N1, SUN PFTS, SUN SOUS