prtvtoc(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

prtvtoc(8)

System Administration Commands                                      prtvtoc(8)



NAME
       prtvtoc - report information about a disk geometry and partitioning

SYNOPSIS
       prtvtoc [-fhs] [-t vfstab] [-m mnttab] device

DESCRIPTION
       The prtvtoc command allows the contents of the disk label to be viewed.


       The  device  name  can  be the file name of a raw device in the form of
       /dev/rdsk/c?t?d?s2 or can be the file name of a  block  device  in  the
       form  of /dev/dsk/c?t?d?s2. The command must be run by a user with read
       access to the given device file, which is normally limited to the  root
       user.

OPTIONS
       The following options are supported:

       -f           Report  on  the  disk  free  space, including the starting
                    block address of the free space,  number  of  blocks,  and
                    unused partitions.


       -h           Omit the headers from the normal output.


       -m mnttab    Use mnttab as the list of mounted filesystems, in place of
                    /etc/mnttab.


       -s           Omit all headers but the column  header  from  the  normal
                    output.


       -t vfstab    Use vfstab as the list of filesystem defaults, in place of
                    /etc/vfstab.


EXAMPLES
       Example 1 Using the prtvtoc Command



       The following example uses the prtvtoc  command  on  a  558.91-gigabyte
       hard disk:


         example# prtvtoc /dev/rdsk/c0t5000CCA0438594D4d0s2
         * /dev/rdsk/c0t5000CCA0438594D4d0s2 partition map
         *
         * Dimensions:
         *     512 bytes/sector
         *     668 sectors/track
         *      27 tracks/cylinder
         *   18036 sectors/cylinder
         *   64988 cylinders
         *   64986 accessible cylinders
         *
         * Label:
         *   SMI/VTOC
         *
         * Flags:
         *   1: unmountable
         *  10: read-only
         *
         *                          First     Sector    Last
         * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
                0      2    00          0    270540    270539
                1      3    01     270540    270540    541079
                2      5    01          0 1172087496 1172087495
                6      4    00     541080 1171546416 1172087495
         example#




       The  data  in  the Tag column above indicates the type of partition, as
       follows:



       tab();  lw(2.5i)  lw(3i)  lw(2.5i)  lw(3i)  NameNumber   UNASSIGNED0x00
       BOOT0x01   ROOT0x02   SWAP0x03  USR0x04  BACKUP0x05  STAND0x06  VAR0x07
       HOME0x08 ALTSCTR0x09 CACHE0x0a RESERVED0x0b SYSTEM0x0c BOOT0x18




       The data in the Flags column above indicates how the partition is to be
       mounted, as follows:



       tab();  lw(2.5i)  lw(3i) lw(2.5i) lw(3i) NameNumber MOUNTABLE, READ AND
       WRITE0x00 NOT MOUNTABLE0x01 MOUNTABLE, READ ONLY0x10


       Example 2 Using the prtvtoc Command with the -f Option



       The following example uses the prtvtoc command with the -f option on  a
       558.91-gigabyte hard disk:


         example# prtvtoc -f /dev/rdsk/c0t5000CCA056443D34d0
         FREE_START=34 FREE_SIZE=222 FREE_COUNT=1 FREE_PART=134567


       Example 3 Using the prtvtoc Command on a Disk Over One Terabyte



       The  following example uses uses the prtvtoc command on a disk over one
       terabyte:.


         example# prtvtoc /dev/rdsk/c0t600144F00010E0352FB45F06DC2A0001d0
         * /dev/rdsk/c0t600144F00010E0352FB45F06DC2A0001d0 partition map
         *
         * Dimensions:
         *     512 bytes/sector
         * 3221225472 sectors
         * 3221225405 accessible sectors
         *
         * Label:
         *   EFI/GPT
         *
         * Flags:
         *   1: unmountable
         *  10: read-only
         *
         * Unallocated space:
         *       First     Sector    Last
         *       Sector     Count    Sector
         *          34        14        47
         *   3221209040        15 3221209054
         *
         *                          First     Sector    Last
         * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
                0      4    00         48 3221208992 3221209039
                8     11    00  3221209055     16384 3221225438


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os


SEE ALSO
       attributes(7), devinfo(8), fmthard(8), format(8), mount(8)

WARNINGS
       The mount command does not check the "not mountable" bit.



Oracle Solaris 11.4               3 Nov 2021                        prtvtoc(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3