本文主要是介绍solaris裸设备和格式化分区和查看硬盘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
转载地址:http://blog.sina.com.cn/s/blog_5ded2e5b0100fjqe.html
# format ====查看已经挂接上的硬盘==
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 7293 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
1. c2t1d0 <DEFAULT cyl 157 alt 2 hd 64 sec 32> (这个数字是硬盘的容量)=160m
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Arac1.ocr0001,0
2. c2t2d0 <DEFAULT cyl 61 alt 2 hd 64 sec 32>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Arac1.vot0001,0
3. c2t3d0 <DEFAULT cyl 157 alt 2 hd 64 sec 32>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Arac1.asmspfile0001,0
4. c2t4d0 <DEFAULT cyl 11473 alt 2 hd 255 sec 63>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Arac1.asm10001,0
5. c2t5d0 <DEFAULT cyl 11473 alt 2 hd 255 sec 63>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Arac1.asm20001,0
6. c2t6d0 <DEFAULT cyl 12746 alt 2 hd 255 sec 63>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Arac1.asm30001,0
Specify disk (enter its number): 1
selecting c2t1d0
[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
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
format> partition ==分区硬盘==
Please run fdisk first
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> partition ===在格式化硬盘后,分区===
PARTITION MENU:
0