[ug-bosug] Problem while creating a ZONE

srikanth kshatriy srikanth.kshatriy at gmail.com
Thu Feb 15 23:01:12 PST 2007


Sir, I ve followed your instructions but its giving the error 'cannot label
disk' when i gave label command. Can u please tell me why it is giving so? I
ve pasted the code here.


bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 9726 alt 2 hd 255 sec 63>
          /pci at 0,0/pci-ide at 7,1/ide at 0/cmdk at 0,0
Specify disk (enter its number): 0
selecting c0d0
Controller working list found
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c0d0s3 is currently mounted on /export/home. Please see umount(1M).
/dev/dsk/c0d0s4 is currently mounted on /export/cse. Please see umount(1M).


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
        show       - translate a disk address
        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
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


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
        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> p
Current partition table (original):
Total disk cylinders available: 9726 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       3 - 4464       34.18GB    (4462/0/0)  71682030
  1       swap    wu    4465 - 4595        1.00GB    (131/0/0)    2104515
  2     backup    wm       0 - 9725       74.50GB    (9726/0/0) 156248190
  3       home    wm    4596 - 7812       24.64GB    (3217/0/0)  51681105
  4 unassigned    wm    7813 - 9725       14.65GB    (1913/0/0)  30732345
  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        7.84MB    (1/0/0)        16065
  9 alternates    wu       1 -    2       15.69MB    (2/0/0)        32130

partition> 4
Part      Tag    Flag     Cylinders        Size            Blocks
  4 unassigned    wm    7813 - 9725       14.65GB    (1913/0/0)  30732345

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[7813]:
Enter partition size[30732345b, 1913c, 9725e, 15006.03mb, 14.65gb]: 12.65gb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 9726 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       3 - 4464       34.18GB    (4462/0/0)  71682030
  1       swap    wu    4465 - 4595        1.00GB    (131/0/0)    2104515
  2     backup    wm       0 - 9725       74.50GB    (9726/0/0) 156248190
  3       home    wm    4596 - 7812       24.64GB    (3217/0/0)  51681105
  4 unassigned    wm    7813 - 9464       12.65GB    (1652/0/0)  26539380
  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        7.84MB    (1/0/0)        16065
  9 alternates    wu       1 -    2       15.69MB    (2/0/0)        32130

partition> 5
Part      Tag    Flag     Cylinders        Size            Blocks
  5 unassigned    wm       0               0         (0/0/0)            0

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 2gb
partition>
partition> label
Cannot label disk while it has mounted partitions.

partition>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20070216/cc22d31a/attachment.html 


More information about the ug-bosug mailing list