[cs615asa] display the partition table on OpenSolaris

Pengfei Liu pliu3 at stevens.edu
Wed Feb 2 20:44:55 EST 2011


 
 root at ip-10-113-21-96:~# format
 Searching for disks...done

 AVAILABLE DISK SELECTIONS:
        0. c7d0 
           /xpvd/xdf at 0
        1. c7d1 
           /xpvd/xdf at 1
 Specify disk (enter its number): 0
 selecting c7d0
 [disk formatted, no defect list found]
 /dev/dsk/c7d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
 /dev/dsk/c7d0s2 is part of active ZFS pool rpool. Please see zpool(1M).
 /dev/dsk/c7d0s8 is part of active ZFS pool rpool. Please see zpool(1M).
 No Solaris fdisk partition found.

 root at ip-10-113-21-96:~# format
 Searching for disks...done

 AVAILABLE DISK SELECTIONS:
        0. c7d0 
           /xpvd/xdf at 0
        1. c7d1 
           /xpvd/xdf at 1
 Specify disk (enter its number): 1
 selecting c7d1
 [disk formatted, no defect list found]
 /dev/dsk/c7d1s0 is part of active ZFS pool mnt. Please see zpool(1M).
 /dev/dsk/c7d1s2 is part of active ZFS pool mnt. Please see zpool(1M).
 /dev/dsk/c7d1s8 is part of active ZFS pool mnt. Please see zpool(1M).
 No Solaris fdisk partition found.

 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
         !     - execute , then return
         quit

 format> fdisk
 No fdisk table exists. The default partition for the disk is:

   a 100% "SOLARIS System" partition

 Type "y" to accept the default partition,  otherwise type "n" to edit
the
  partition table.
 y
 format> 

 then I stuck here.

 I think it maybe no partition in Solaris after you create the instance.

 I have tried "fdisk -l" on Ubuntu. It works well. 

 root at domU-12-31-39-16-46-E8:~# fdisk -l

 Disk /dev/sda1: 10.7 GB, 10737418240 bytes
 255 heads, 63 sectors/track, 1305 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x00000000

 Disk /dev/sda1 doesn't contain a valid partition table

 Disk /dev/sda2: 160.1 GB, 160104972288 bytes
 255 heads, 63 sectors/track, 19464 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x00000000

 Disk /dev/sda2 doesn't contain a valid partition table

 Disk /dev/sda3: 939 MB, 939524096 bytes
 255 heads, 63 sectors/track, 114 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x00000000

 Disk /dev/sda3 doesn't contain a valid partition table

 On Wed 02/02/11 7:49 PM , Pengfei Liu pliu3 at stevens.edu sent:
  Hi everyone,

 I have a trouble with displaying the partition table on OpenSolaris.

 The command "fdisk -l" does not work on OpenSolaris.

 root at ip-10-113-21-96:~# fdisk -l
 fdisk: illegal option -- l
 Usage: fdisk
 [ -A id:act:bhead:bsect:bcyl:ehead:esect:ecyl:rsect:numsect ]
 [ -b masterboot ]
 [ -D id:act:bhead:bsect:bcyl:ehead:esect:ecyl:rsect:numsect ]
 [ -F fdisk_file ] [ -h ] [ -o offset ] [ -P fill_patt ] [ -s size ]
 [ -S geom_file ] [ [ -v ] -W { creat_fdisk_file | - } ]
 [ -w | r | d | n | I | B | E | g | G | R | t | T ] rdevice

 Detailed help is available with the -h option.

 Here is the response of command "$ df" 

 root at ip-10-113-21-96:~# df
 Filesystem           1K-blocks      Used Available Use%
Mounted on
 rpool/ROOT/opensolaris
                        8324529   3082445  
5242084  38% /
 swap                   2188844       312  
2188532   1% /etc/svc/volatile
 /usr/lib/libc/libc_hwcap3.so.1
                        8324529   3082445  
5242084  38% /lib/libc.so.1
 swap                   2188536         4  
2188532   1% /tmp
 swap                   2188576        44  
2188532   1% /var/run
 rpool/export           5242105        21   5242084  
1% /export
 rpool/export/home      5242103        19   5242084   1%
/export/home
 rpool                  5242163        79  
5242084   1% /rpool
 mnt                  153796557        19
153796538   1% /mnt

 root at ip-10-113-21-96:~# fdisk -v rpool/ROOT/opensolaris
 fdisk: Cannot stat device rpool/ROOT/opensolaris.

 There is no the file named partitions in folder proc

 root at ip-10-113-21-96:/proc# ls -a
 .   1    15   246  3    336  361  398  427  435  451 
474  521  602  7    9
 ..  122  170  249  330  34   392  406  429  436  454  486 
523  603  74
 0   138  2    258  331  357  397  411  430  442  468  506 
60   606  894

 How to display the partition table on OpenSolaris?

 Thank you for your time!

 Sincerely,
 Pengfei Liu

 _______________________________________________
 cs615asa mailing list
 cs615asa at lists.stevens.edu [1]
 https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa [2]

 

Links:
------
[1] mailto:cs615asa at lists.stevens.edu
[2] https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.stevens.edu/cgi-bin/mailman/private/cs615asa/attachments/20110202/03a2c5a6/attachment.htm 


More information about the cs615asa mailing list