Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Subject: Re: Partition tables
Date: Mon, 22 Mar 1993 19:41:55 GMT	[thread overview]
Message-ID: <1993Mar22.194155.20305@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 1993Mar22.041436.12981@Princeton.EDU


In article <1993Mar22.041436.12981@Princeton.EDU>, burt@hart (Burton Rosenberg) writes:
>
>Where exactly are the partition tables for a scsi disk
>kept? What exactly is being read and updated when chpt
>is run?

The partition table lives the same place for a SCSI disk
as it does for any other ULTRIX disk be it SCSI, MSCP,
MASSBUS, or an RK05...  It lives at the end of the superblock
of the file system which starts at the beginning of the disk
(typically A and C).  That puts it down around sector #31.

I believe that chpt(8) use the DIOCSETPT I/O control supported
by all reasonable disk drivers to update the partition table.
Those disk drivers would then do well to use the kernel routine
ssblk() for doing the actual work of setting a partition table.
Ssblk() goes to some effort to make sure that updating the
partition table doesn't break anything.

You should always prefer to use the partition table I/O controls
when trying to read or write them.  What looks like a valid partition
table for a device, may not be one if you try to do it by hand.  The
affect is most noticeable when using Striping.

>
>Thanks.
>-burt
>
>
--
Alan Rollow				alan@nabeth.cxo.dec.com



      parent reply	other threads:[~1993-03-22 19:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-03-22  4:14 Partition tables Burton Rosenberg
1993-03-22 14:27 ` Marcus J Ranum
1993-03-22 15:57   ` Burton Rosenberg
1993-03-23 18:56     ` Martyn Johnson
1993-03-22 19:41 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds. [this message]
read-only archive

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