lastletter 发表于 2007-06-18 09:59

solaris10下用format认硬盘

bash-2.05# format -e c0t1d0
selecting c0t1d0

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
      inquiry    - show vendor, product and revision
      scsi       - independent SCSI mode selects
      cache      - enable, disable or query SCSI disk cache
      volname    - set 8-character volume name
      !   - execute , 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
      8      - change '8' 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
      ! - execute , then return
      quit
partition> m
Select partitioning base:
      0. Current partition table (original)
      1. All Free Hog
Choose base (enter number) ? 1
Part      Tag    Flag   First Sector      Size      Last Sector
0      usr    wm               0          0            0   
1      usr    wm               0          0            0   
2      usr    wm               0          0            0   
3      usr    wm               0          0            0   
4      usr    wm               0          0            0   
5      usr    wm               0          0            0   
6      usr    wm               0          0            0   
7      usr    wm               0          0            0   
8   reserved    wm          71116540       8.00MB         71132923   
Do you wish to continue creating a new partition
table based on above table?
Free Hog partition? 8
`8' is not expected.
Free Hog partition? 7
Enter size of partition 0 : 34e
Enter size of partition 1 : 35e
Enter size of partition 2 : 36e
Enter size of partition 3 : 37e
Enter size of partition 4 : 38e
Enter size of partition 5 : 39e
Enter size of partition 6 : 40e
Ready to label disk, continue? y   
partition> p
Current partition table (original):
Total disk sectors available: 71116540 + 16384 (reserved sectors)
partition> q
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
      inquiry    - show vendor, product and revision
      scsi       - independent SCSI mode selects
      cache      - enable, disable or query SCSI disk cache
      volname    - set 8-character volume name
      !   - execute , then return
      quit
format> l
SMI Label
EFI Label
Specify Label type: 0
Auto configuration via format.dat? yes
Ready to label disk, continue? y
format> l
SMI Label
EFI Label
Specify Label type: 0
Ready to label disk, continue? y
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
      ! - execute , then return
      quit
partition> p
Current partition table (default):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
Part      Tag    Flag   Cylinders         Size            Blocks
0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
2   backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm       0                0         (0/0/0)            0
6      usr    wm   182 - 24619       33.67GB    (24438/0/0) 70601382
7 unassigned    wm       0                0         (0/0/0)            0
partition> q
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
      scsi       - independent SCSI mode selects
      cache      - enable, disable or query SCSI disk cache
      volname    - set 8-character volume name
      !   - execute , then return
      quit
format> q
bash-2.05# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0t0d0
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0
          /pci@1f,4000/scsi@3/sd@1,0
Specify disk (enter its number): 1
selecting c0t1d0

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
      !   - execute , 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
      ! - execute , then return
      quit
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
Part      Tag    Flag   Cylinders         Size            Blocks
0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
2   backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm       0                0         (0/0/0)            0
6      usr    wm   182 - 24619       33.67GB    (24438/0/0) 70601382
7 unassigned    wm       0                0         (0/0/0)            0
partition> q
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
      !   - execute , then return
      quit
format> q
bash-2.05# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0t0d0
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0
          /pci@1f,4000/scsi@3/sd@1,0
Specify disk (enter its number): 1
selecting c0t1d0


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/40476/showart_323449.html
页: [1]
查看完整版本: solaris10下用format认硬盘