H How to Label a Disk 346
H How to Examine a Disk Label 348
Recovering a Corrupted Disk Label 349
H How to Recover a Corrupted Disk Label 349
Adding a Third-Party Disk 352
Creating a format.dat Entry 353
H How to Create a format.dat Entry 353
Automatically Configuring SCSI Disk Drives 354
H How to Automatically Configure a SCSI Drive 355
Repairing a Defective Sector 357
H How to Identify a Defective Sector by Using Surface Analysis 357
H How to Repair a Defective Sector 359
Tips and Tricks for Managing Disks 360
Debugging format Sessions 360
Label Multiple Disks by Using the prtvtoc and fmthard
Commands 360
30. SPARC: Adding a Disk (Tasks) 363
SPARC: About System and Secondary Disks 363
SPARC: Adding a System or Secondary Disk Task Map 364
H SPARC: How to Connect a System Disk and Boot 365
H SPARC: How to Connect a Secondary Disk and Boot 365
H SPARC: How to Create Disk Slices and Label a Disk 367
H SPARC: How to Create File Systems 371
H SPARC: How to Install a Boot Block on a System Disk 372
31. IA: Adding a Disk (Tasks) 375
IA: About System and Secondary Disks 375
IA: Adding a System or Secondary Disk Task Map 376
IA: Guidelines for Creating an fdisk Partition 376
Contents 15
H IA: How to Connect a System Disk and Boot 377
H IA: How to Connect a Secondary Disk and Boot 378
H IA: How to Create a Solaris fdisk Partition 379
H IA: How to Create Disk Slices and Label a Disk 386
H IA: How to Create File Systems 388
H IA: How to Install a Boot Block on a System Disk 389
32. The format Utility (Reference) 391
Requirements or Restrictions for Using the format Utility 391
Recommendations for Preserving Information When Using format 392
Format Menu and Command Descriptions 392
The partition Menu 394
IA: The fdisk Menu 395
The analyze Menu 396
The defect Menu 398
Files Used by format (format.dat) 399
Structure of the format.dat File 400
Syntax of the format.dat File 400
Keywords in the format.dat File 400
Partition or Slice Tables (format.dat) 403
Specifing the Location of a format Data File 404
Rules for Input to format Commands 404
Inputting Numbers to format Commands 404
Specifying Block Numbers to format Commands 405
Specifying format Command Names 405
Specifying Disk Names to format Commands 406
Using format Help 406
Associated format Man Pages 406
33. Managing File Systems Topics 407
16 System Administration Guide, Volume 1 ♦ February 2000
34. Managing File Systems (Overview) 409
What’s New in File Systems? 409
The /var/run File System 409
Mount Table Changes (/etc/mnttab) 410
Using the Universal Disk Format (UDF) File System 410
UDF Features and Benefits 411
Hardware and Software Requirements 411
H How to Connect a DVD-ROM Device 411
H How to Access Files on a DVD-ROM Device 412
H How to Display UDF File System Parameters 412
H How to Create a UDF File System 413
H How to Identify the UDF File System Type 413
H How to Check a UDF File System 413
H How to Mount a UDF File System 414
H How to Unmount a UDF File System 414
H How to Label a Device with a UDF File System and Volume Name 414
Overview of File Systems 415
Types of File Systems 416
Disk-Based File Systems 416
Network-Based File Systems 417
Virtual File Systems 417
File System Administration Commands 419
How the File System Commands Determine the File System Type 421
Manual Pages for Generic and Specific Commands 421
The Default Solaris File Systems 421
Swap Space 422
The UFS File System 423
Parts of a UFS File System 423
Contents 17
UFS Logging 424
Planning UFS File Systems 424
Mounting and Unmounting File Systems 425
The Mounted File System Table 427
The Virtual File System Table 427
The NFS Environment 428
AutoFS 429
The Cache File System (CacheFS) 429
Deciding How to Mount File Systems 430
Determining a File System’s Type 430
H How to Determine a File System’s Type 430
35. Creating File Systems (Tasks) 433
Creating a UFS File System 433
File System Parameters 434
H How to Create a UFS File System 435
Creating a Temporary File System (TMPFS) 436
H How to Create a TMPFS File System 437
Creating a Loopback File System (LOFS) 438
H How to Create a LOFS File System 438
36. Mounting and Unmounting File Systems (Tasks) 441
Mounting File Systems 441
Commands Used to Mount and Unmount File Systems 442
Commonly Used Mount Options 443
H How to Determine Which File Systems Are Mounted 445
Mounting File Systems (/etc/vfstab File) 446
The /etc/vfstab Field Descriptions 446
H How to Add an Entry to the /etc/vfstab File 447
H How to Mount a File System (/etc/vfstab File) 449
18 System Administration Guide, Volume 1 ♦ February 2000
H How to Mount All File Systems (/etc/vfstab File) 449
Mounting File Systems (mount Command) 451
H How to Mount a UFS File System 451
H How to Remount a UFS File System Without Large Files 452
H How to Mount an NFS File System 454
H How to Mount a System V (S5FS) File System 454
H How to Mount a PCFS (DOS) File System From a Hard Disk 455
Unmounting File Systems 456
Prerequisites 457
Verifying an Unmounted File System 457
H How to Stop All Processes Accessing a File System 457
H How to Unmount a File System 458
H How to Unmount All File Systems (/etc/vfstab File) 459
37. The Cache File System (Tasks) 461
How CacheFS Works 462
Setting Up a Cached File System Task Map 463
Creating a Cache 464
H How to Create a Cache 464
Specifying a File System to Be Mounted in the Cache 465
H How to Specify a File System to Be Mounted in a Cache With mount 465
H How to Mount a File System in a Cache by Editing the /etc/vfstab File 468
H How to Mount a File System in a Cache With AutoFS 469
Maintaining a Cached File System Task Map 470
Maintaining the Cache 471
H How to Modify File Systems in a Cache 471
H How to Display Information About Cached File Systems 472
H How to Specify Consistency Checking on Demand 473
H How to Delete a Cached File System 473
Contents 19
H How to Check the Integrity of Cached File Systems 475
Managing Your Cache File Systems With cachefspack 476
H How to Pack Files in the Cache 476
Packing Lists 477
H How to Create a Packing List 477
H How to Pack Files in the Cache as Specified in a Packing List 478
H How to Specify Files in the Packing List to be Treated as Regular
Expressions 478
H How to Pack Files From a Shared Directory 479
Unpacking Files 480
H How to Unpack Files or Packing Lists From the Cache 480
Displaying Packed Files Information 482
H How to Display Packed Files Information 482
Viewing Help on the cachefspack Command 483
cachefspack Errors 484
CacheFS Statistics 489
Prerequisites for Setting Up and Viewing the CacheFS Statistics 489
Setting Up CacheFS Statistics Task Map 490
CacheFS Logging 490
H How to Set Up the Logging Process 491
How to Locate the Log File 491
How to Stop the Logging Process 492
Viewing the Cache Size 492
H How to View the Working Set (Cache) Size 492
Viewing the Statistics 494
H How to View Cache Statistics 494
The Cache Structure and Behavior 495
Consistency Checking of Cached File Systems With the Back File System 496
20 System Administration Guide, Volume 1 ♦ February 2000