如何在solaris中添加删除磁盘和分区 (转载)
如何在solaris中添加删除磁盘和分区
如何在solaris中添加删除磁盘和分区
建意你先看 IDE 和 SCSI 分配名称 以下例子是格式化 Primary IDE Master 硬盘 查看 IDE 和 SCSI 分配名称后我们知道 Primary IDE Master 硬盘名称是cd 请先行 Login 成为 root user # drvconfig ( configure the /devices directory ) # disks ( creates /dev entries for hard disks attached to the system ) # format Searching for disksdone AVAILABLE DISK SELECTIONS: cd /pci@/pciide@/ide@/cmdk@ ctd /pci@/pci@f/sd@ Specify disk (enter its number): ( 因为 Primary IDE Master 硬盘名称是cd所以选择 ) AVAILABLE DRIVE TYPES: other Specify disk type (enter its number): ( 正常应该是 DEFAULT other通常应该选择DEFAULT但是Solaris不明白我的硬盘是什么所 以只有other可供选择) 我的IDE HardDisk架构如下: ( 可以从BIOS Auto Detect查出來通常都有LBALARGEAUTO三种选择建意你使用Auto因為不能大 过Heads和不能大过Sectoes ) Cylinders = Heads = Sectors = Enter number of data cylinders: Enter number of alternate cylinders[]: Enter number of physical cylinders[]: Enter number of heads: Enter number of data sectors/track: Enter rpm of drive[]: Enter format time[default]: Enter cylinder skew[default]: Enter track skew[default]: Enter tracks per zone[default]: Enter alternate tracks[default]: Enter alternate sectors[default]: Enter cache control[default]: Enter prefetch threshold[default]: Enter minimum prefetch[default]: Enter maximum prefetch[default]: Enter disk type name (remember quotes): cyl alt hd sec selecting cd No current partition list No defect list found [disk formatted no defect list 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 character volume name ! execute then return quit format>fdisk No fdisk table exists The default partition for the disk is: a % "SOLARIS System" partition Type "y" to accept the default partition otherwise type "n" to edit the partition table y WARNING: Solaris fdisk partition changed Please relabel the disk format>fdisk Total disk size is cylinders Cylinder size is ( byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === WARNING: no partitions are defined! SELECT ONE OF THE FOLLOWING: Create a partition Specify the active partition Delete a partition Exit (update disk configuration and exit) Cancel (exit without updating disk configuration) Enter Selection: Select the partition type to create: =SOLARIS =UNIX =PCIXOS =Other =DOS =DOS =DOSEXT =DOSBIG =DOSLBA A=x Boot B=Diagnostic C=FAT D=FATLBA E=DOSEXTLBA =Exit? Specify the percentage of disk to use for this partition (or type "c" to specify the size in cylinders) Should this become the active partition? If yes it will be activated each time the computer is reset or turned on Please type "y" or "n" n Total disk size is cylinders Cylinder size is ( byte) blocks Cylinders Partition Status Type StartEnd Length % ========= ====== ============ ======== ====== === Solaris WARNING: no partitions are defined! SELECT ONE OF THE FOLLOWING: Create a partition Specify the active partition Delete a partition Exit (update disk configuration and exit) Cancel (exit without updating disk configuration) Enter Selection: WARNING: Solaris fdisk partition changed Please relabel the disk format> partition PARTITION MENU: change ` partition change ` partition change ` partition change `