Solaris硬盘分区结构
Solaris下,一个磁盘包含8个分区,标记为0-7。此信息可以通过format命令,然后选择一个硬盘来看到,例如,在我自己的系统中(Solaris 9,Ultra 60),显示出来的信息如下: # format Searching for disks...done
AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248> /pci@1f,4000/scsi@3/sd@0,0 Specify disk (enter its number): 0 selecting c0t0d0 [disk formatted] Warning: Current Disk has mounted partitions.
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 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 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> 不要看到内容这么多,就被吓住了,其实,format命令之后0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>/pci@1f,4000/scsi@3/sd@0,0所显示出来的含义很简单,0. c0t0d0就代表这台Ultra 60里面只装了一个硬盘(至于c0t0d0的具体含义,稍后会介绍),<SUN18G cyl 7506 alt 2 hd 19 sec 248>代表的是这个硬盘的大小和柱面信息,/pci@1f,4000/scsi@3/sd@0,0所代表的,就是这个硬盘的实际物理地址。这些信息看起来很复杂,其实一般都只需要看看format命令抓出来的硬盘数量,是不是我们装在系统上的数量,例如你装了两个硬盘,但是这里只有一个硬盘的信息,就需要认真面对了。 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 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 volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> p 这里所列出来的,是可以使用的命令,比如我在最下面format>,就是用了p这个命令(慢点,上面没有p这个命令啊?其实,这里p就是partition的简写),然后,列出了以下内容: 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 [next]
|