Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Partition tables
@ 1993-03-22  4:14 Burton Rosenberg
  1993-03-22 14:27 ` Marcus J Ranum
  1993-03-22 19:41 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
  0 siblings, 2 replies; 5+ messages in thread
From: Burton Rosenberg @ 1993-03-22  4:14 UTC (permalink / raw)


Where exactly are the partition tables for a scsi disk
kept? What exactly is being read and updated when chpt
is run?

Thanks.
-burt



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

* Re: Partition tables
  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-22 19:41 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
  1 sibling, 1 reply; 5+ messages in thread
From: Marcus J Ranum @ 1993-03-22 14:27 UTC (permalink / raw)


>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 is kept in the beginning of the 'a' partition.
The 'a' partition must be a filesystem, since ULTRIX stores the partition
map somewhere along with the f/s. Yes, it's braindamaged.

mjr.


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

* Re: Partition tables
  1993-03-22 14:27 ` Marcus J Ranum
@ 1993-03-22 15:57   ` Burton Rosenberg
  1993-03-23 18:56     ` Martyn Johnson
  0 siblings, 1 reply; 5+ messages in thread
From: Burton Rosenberg @ 1993-03-22 15:57 UTC (permalink / raw)


In article <1okic2INNb8v@sol.tis.com> mjr@tis.com (Marcus J Ranum) 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 is kept in the beginning of the 'a' partition.
>The 'a' partition must be a filesystem, since ULTRIX stores the partition
>map somewhere along with the f/s. Yes, it's braindamaged.
>
>mjr.

But how does one know where the a partition is?
(Answer (guess), it's at sector 0, even if it is not.)
However the definition of the superblock in fs.h does not
include the partition table structure. (Answer (guess) it
is there where it says /* actually longer */)

Are these guesses correct?

-burt



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

* Re: Partition tables
  1993-03-22  4:14 Partition tables Burton Rosenberg
  1993-03-22 14:27 ` Marcus J Ranum
@ 1993-03-22 19:41 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Rollow - Alan's Home for Wayward Tumbleweeds. @ 1993-03-22 19:41 UTC (permalink / raw)



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



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

* Re: Partition tables
  1993-03-22 15:57   ` Burton Rosenberg
@ 1993-03-23 18:56     ` Martyn Johnson
  0 siblings, 0 replies; 5+ messages in thread
From: Martyn Johnson @ 1993-03-23 18:56 UTC (permalink / raw)


In article <1993Mar22.155742.12773@Princeton.EDU>, burt@hart (Burton Rosenberg) writes:
...
|> But how does one know where the a partition is?

The "a" partition DOES begin at sector 0.  This is a "requirement".
You should find that chpt won't let you move it.

|> However the definition of the superblock in fs.h does not
|> include the partition table structure. (Answer (guess) it
|> is there where it says /* actually longer */)

My folklore file tells me that the partition table begins at byte
offset 0x1fb8 in the superblock, or 0x3fb8 from the beginning of the
disc.

-- 
Martyn Johnson      maj@cl.cam.ac.uk
University of Cambridge Computer Lab
Cambridge UK


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

end of thread, other threads:[~1993-03-23 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox