ЁH geocities.com /Vienna/Stage/6554/Handon21.htm geocities.com/Vienna/Stage/6554/Handon21.htm delayed x ├Т╒J ╚ Ве ┌ OK text/html АCmo ┌ bЙ.H Fri, 17 May 2002 05:35:47 GMT Q Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98) en, * ├Т╒J ┌
Hand-On Twenty One Working with Hard Disks
1. Examine the output of the format utility below and answer the following question: #format AVAILABLE DISK SELECTIONS: 0.c0t3d0 <SUN2.1G cyl 2733 alt 2 hd 19 sec 80> /iommu@0,10000000 /sbus@1,10001000 /espdma@5,8400000/ esp@5,8800000/ sd@3,0 Specify disk (enter its number): A. How many hard disks are available on the system? 1 B. What are their capacities? 2.1GB C. What are their logical name? c0t3d0 D. What are their marketing names (model number)? SUN2.1G E. What are their physical device names? 0 F. Are the disk SCSI or IDE? SCSI 2. Examine the output of the format utility below and answer the following question: #format AVAILABLE DISK SELECTIONS: 0. c0d0 <SUN1.2G cyl 615 alt 2 hd 64 sec 63> /pci@0,0/pci@7,1/ata@0/cmdk@0,0 1. c0d1 <SUN1.05G cyl 522 alt 2 hd 32 sec 63> /pci@0,0/pci-ide@7,1/ata@0/cmdk@1,0 A. How many hard disks are available on the system? 2 B. What are their capacities? 1.2G & 1.05G C. What are their logical name? c0d0 & c0d1 D. What are their marketing names (model number)? SUN1.2G & SUN1.05G E. What are their physical device names? 0 & 1 F. Are the disk SCSI or IDE? both are IDE 3. Become super-user. Start the format utility. #format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t0d0/pci@1f,0/pci@1,1/ide@3/dad@0,0 1. c0t1d0 FunClass /pci@1f,0/pci@1,1/ide@3/dad@1,0 Specify disk (enter its number): 4. Enter the number of the disk that you want to format from the list displayed on your screen, in our lab: 1 Specify disk (enter its number): 1 selecting c0t1d0: FunClass [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 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 8-character volume name ! - execute , then return quit format> 5. To begin formatting the disk, enter the format at the format> prompt. What is the time estimate for formatting this disk format> format Cannot format this drive. Please use your Manufacturer supplied formatting utility. format> 6. Type n to exit the format option and then q to exit format utility. format> q 7. Display disk slices on your system disk (disk 0). # format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@1f,0/pci@1,1/ide@3/dad@0,0 1. c0t1d0 FunClass /pci@1f,0/pci@1,1/ide@3/dad@1,0 Specify disk (enter its number): 1 0 selecting c0t0d0 [disk formatted, no defect list found] 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 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 8-character volume name ! - execute , then return quit format> 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 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> 8. How many slices are there on your system disk? Record their size, starting and ending cylinders: partition> print Current partition table (original): Total disk cylinders available: 8892 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 277 128.28MB (278/0/0) 262710 1 var wm 278 - 832 256.09MB (555/0/0) 524475 2 backup wm 0 - 8891 4.01GB (8892/0/0) 8402940 3 swap wu 833 - 1387 256.09MB (555/0/0) 524475 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 1388 - 4422 1.37GB (3035/0/0) 2868075 6 usr wm 4423 - 6642 1.00GB (2220/0/0) 2097900 7 home wm 6643 - 8891 1.01GB (2249/0/0) 2125305 9. Exit partition menu and format utility. Now examine system's disk label by issuing the following command: partition> quit format> q # prtvtoc /dev/rdsk/c0t0d0s2 * /dev/rdsk/c0t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 63 sectors/track * 15 tracks/cylinder * 945 sectors/cylinder * 8894 cylinders * 8892 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 0 262710 262709 / 1 7 00 262710 524475 787184 /var 2 5 00 0 8402940 8402939 3 3 01 787185 524475 1311659 5 0 00 1311660 2868075 4179734 /opt 6 4 00 4179735 2097900 6277634 /usr 7 8 00 6277635 2125305 8402939 /export/home 10. Notice the different between the output from step 8 and step 9. What additional information is reported by the prtvtoc utility? -In step 8: it show cylinders, size and blocks. -In step 9: it show more detail (first sector, sector count and mount directory.