From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,54bb9a7b6c2b936a X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-03-22 23:45:52 PST Newsgroups: comp.sys.dec Path: sparky!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Subject: Re: Partition tables Message-ID: <1993Mar22.194155.20305@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Organization: Digital Equipment Corporation References: <1993Mar22.041436.12981@Princeton.EDU> Date: Mon, 22 Mar 1993 19:41:55 GMT 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