* HELP: How to get hard disk information on OSF1
@ 1996-01-30 5:00 Evelyn Zhan
1996-02-01 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-02-02 5:00 ` Bill Reid
0 siblings, 2 replies; 3+ messages in thread
From: Evelyn Zhan @ 1996-01-30 5:00 UTC (permalink / raw)
Hi all,
I am trying to collect hard disk informations, such as disk label, disk
capacity, SCSI id, etc, on OSF1 and ULTRIX. But I don't know how. I don't
have the root access, and I need the info as an output of a command in ascci
format.
Thanks very in advance.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: HELP: How to get hard disk information on OSF1
1996-01-30 5:00 HELP: How to get hard disk information on OSF1 Evelyn Zhan
@ 1996-02-01 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-02-02 5:00 ` Bill Reid
1 sibling, 0 replies; 3+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-02-01 5:00 UTC (permalink / raw)
In article <4em1th$eo8@jethro.Corp.Sun.COM>, evelyn@rubyl.corp.sun.com (Evelyn Zhan) writes:
>I am trying to collect hard disk informations, such as disk label, disk
>capacity, SCSI id, etc, on OSF1 and ULTRIX. But I don't know how. I don't
>have the root access, and I need the info as an output of a command in ascci
>format.
The SCSI ID is encoded in the minor device number. The details are
in the SCSI manual page. The partition table, label, geometry and
general device information all require read access to the device.
The ways of getting the information all require read access to
devices that are typically read protected...
Partition table:
ULTRIX - chpt(8), requires read access to device
Digital UNIX - disklabel(8), requires read access to device
Capacity and Geometry
ULTRIX - DEVGETGEOM I/O control, requires read access device
Digital UNIX - DEVGETGEOM I/O control, ditto
Both - scu(8), requires read access to /dev/cam.
General information:
Both - DEVIOCGET I/O control, requires read access to device.
It seems pretty clear that you can't get there from here without
a program running as root or changing the permissions of devices
so that you can read them. The middle ground is write a program
that does these operations and can run setuid root to give read
access so these I/O controls will work.
>
>Thanks very in advance.
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: HELP: How to get hard disk information on OSF1
1996-01-30 5:00 HELP: How to get hard disk information on OSF1 Evelyn Zhan
1996-02-01 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1996-02-02 5:00 ` Bill Reid
1 sibling, 0 replies; 3+ messages in thread
From: Bill Reid @ 1996-02-02 5:00 UTC (permalink / raw)
You need to use the disklabel command on OSF/1. Its in /sbin directory.
The command goes something like this: /sbin/disklabel -r /dev/rre1a. You have
to use the raw disk name and also the first partition. The only problem is
you must be root to run the command. This is because you can rewrite the
disklabel and therefore change the partitions on the disk. If you use the df
command to display the file systems the typical DEC naming convention uses the
2nd and third positions as the type of disk (rz, re ) and the fourth positon
is a number which usually equates to the SCSI id.
On Ultrix the /etc/chpt -q command gives you the partions but not as much info
as the disklabel on OSF. Again, you must be root to execute it.
Hope this helps.
Bill Reid
Electronic Data Systems
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-02-02 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-30 5:00 HELP: How to get hard disk information on OSF1 Evelyn Zhan
1996-02-01 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-02-02 5:00 ` Bill Reid
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox