>
>> So what happens if I pull out a drive from my SPARC based
>> solaris 8 system and plug it into a intel box...
>
>
> Solaris-SPARC uses a different disk TOC than Solaris-x86.
>
> X86 disks use a disk label that is derived from the PC world,
> with Master Boot Records, fdisk, partitions and the like; within
> one of these partitions, Solaris-X86 writes out a Solaris-SPARC-like
> disk label that spells out the slice info that the rest of the
> Solaris tools use.

A far more curious and useful bit is the result we get from fmthard
in Solaris x86.  While both Sparc and x86 implementations of Solaris
have both fmthard and prtvtoc you will note that only the x86 side of
life allows for 16 slices while Sparc is limited to 8.

thus :

# format -e
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 1103 alt 2 hd 255 sec 63>
          /[EMAIL PROTECTED],0/pci9004,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
       1. c3t0d0 <SEAGATE-ST39102LW-8320 cyl 6921 alt 2 hd 12 sec 214>
          /[EMAIL PROTECTED],0/pci1011,[EMAIL PROTECTED]/pci1000,[EMAIL 
PROTECTED]/[EMAIL PROTECTED],0
       2. c4t1d0 <DEFAULT cyl 4424 alt 2 hd 255 sec 63>
          /[EMAIL PROTECTED],0/pci9004,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
Specify disk (enter its number):
Specify disk (enter its number): 2
selecting c4t1d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        scsi       - independent SCSI mode selects
        cache      - enable, disable or query SCSI disk cache
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> inq
Vendor:   SEAGATE
Product:  ST336704LSUN36G
Revision: 032C
format>

format> pa


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        9      - change `9' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> pr
Current partition table (original):
Total disk cylinders available: 4424 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       1 - 4423       33.88GB    (4423/0/0) 71055495
  1 unassigned    wu       0               0         (0/0/0)           0
  2     backup    wu       0 - 4423       33.89GB    (4424/0/0) 71071560
  3 unassigned    wu       0               0         (0/0/0)           0
  4 unassigned    wu       0               0         (0/0/0)           0
  5 unassigned    wu       0               0         (0/0/0)           0
  6 unassigned    wu       0               0         (0/0/0)           0
  7 unassigned    wu       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 unassigned    wu       0               0         (0/0/0)           0

partition>

and prtvtoc reveals what format does not :

# prtvtoc /dev/rdsk/c4t1d0s0
* /dev/rdsk/c4t1d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*     255 tracks/cylinder
*   16065 sectors/cylinder
*    4426 cylinders
*    4424 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      0    00      16065  71055495  71071559
       2      5    01          0  71071560  71071559
       8      1    01          0     16065     16064
      10      0    00      16065   1606500   1622564
      13      0    00    1622565   6426000   8048564
#

there are slices 10 and 13 there.

In fact, you can go up to number 15 for a total of 16 slices.

Perfectly valid and with the newer 500GB disks they may be useful.

Dennis
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to