[OpenIndiana-discuss] OI_151a7 format(1m) bugs

Reginald Beardsley pulaskite at yahoo.com
Fri Feb 1 23:32:21 UTC 2013


The data attached was collected using the LiveCD.  The labels were created using the shell on the text-install CD.

Here's the output from the "verify" command:

------------------------------------------------
Primary label contents:

Volume name = <        >
ascii name  = <ATA-ST2000DM001-1CH1-CC24 cyl 60797 alt 2 hd 255 sec 252>
pcyl        = 60799
ncyl        = 60797
acyl        =    2
bcyl        =    0
nhead       =  255
nsect       =  252
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 -  4176      127.96GB    (4176/0/0)   268349760
  1        usr    wm    4177 - 60796        1.69TB    (56620/0/0) 3638401200
  2     backup    wm       0 - 60796        1.82TB    (60797/0/0) 3906815220
  3 unassigned    wm       0                0         (0/0/0)              0
  4 unassigned    wm       0                0         (0/0/0)              0
  5 unassigned    wm       0                0         (0/0/0)              0
  6 unassigned    wm       0                0         (0/0/0)              0
  7 unassigned    wm       0                0         (0/0/0)              0
  8       boot    wu       0 -     0       31.38MB    (1/0/0)          64260
  9 unassigned    wm       0                0         (0/0/0)              0
------------------------------------------------

Where does the geometry information come from?  I've not been able to extract usable information using the "scsi" menu.  Is there any documentation for that?

Here's what prtvtoc has to say:
------------------------------------------------
*
* Dimensions:
*     512 bytes/sector
*     252 sectors/track
*     255 tracks/cylinder
*   64260 sectors/cylinder
*   60799 cylinders
*   60797 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*	First     Sector    Last
*	Sector     Count    Sector 
*           0     64260     64259
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00      64260 268349760 268414019
       1      4    00  268414020 3638401200 3906815219
       2      5    00          0 3906815220 3906815219
       8      1    01          0     64260     64259
------------------------------------------------
Note that the first sector of s0 is NOT aligned on a 4k boundary.


Here's the output of the "save" command:
-----------------------------------------------
#
# New disk/partition type  saved on Sat Feb  2 01:25:00 2013
#
disk_type = "ATA-ST2000DM001-1CH1-CC24" \
	 : ctlr = SCSI : ncyl = 60797 : acyl = 2 : pcyl = 60799 \
	 : nhead = 255 : nsect = 252 : rpm = 1003

partition = "original" \
	 : disk = "ATA-ST2000DM001-1CH1-CC24" : ctlr = SCSI \
	 : 0 =  1, 268349760 : 1 =  usr, wm, 4177, -656566096 \
	 : 2 =  backup, wm, 0, -388152076 : 8 =  0, 64260

------------------------------------------------

Note that we have negative values indicating that the printf format is %ld instead of %lu.


Can anyone point me to documentation, source code or any other information relevant.  

My current hypothesis is that most or all of the problems I've been encountering are related to the issues outline above.  I suspect it explains other issues as well.

Have Fun!
Reg



More information about the OpenIndiana-discuss mailing list