⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 format.8v

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 8V
字号:
.\" SCCSID: @(#)format.8v	8.1	9/11/90.TH format 8v VAX.SH Nameformat \- how to format disk packs.SH Description.NXB "format program".NXB "disk pack" "formatting"There are two ways to format disk packs.  The simplest is touse the.PN formatprogram.  The alternative is to use the DEC standard formattingsoftware which operates under the DEC diagnostic supervisor. This manual page describes the operation of.PN format ,then concludes with some remarks about using the DEC formatter..PPThe.PN formatprogram is a standalone program used toformat and check disks prior to constructingfile systems.In addition to the formattingoperation,.PN formatrecords any bad sectors encounteredaccording to DEC Standard 144. Formatting is performed one track at atime by writing the appropriateheaders and a test pattern and then checkingthe sector by reading and verifying the pattern, usingthe controller's ECC for error detection.A sector is marked bad if an unrecoverable mediaerror is detected, or if a correctableECC error greater than 5 bits in lengthis detected (such errors are indicated as``ECC'' in the summary printed uponcompleting the format operation).After the entire diskhas been formatted and checked,the total number of errors are reported,any bad sectors and skip sectors are marked,and a bad sector forwarding tableis written to the disk in the first fiveeven numbered sectors of the last track.The.PN format may be used on any UNIBUS or MASSBUS drivesupported by the \fIup\fP and \fIhp\fP devicedrivers which uses 4-byte headers (everything except RP's)..PPThe test pattern used during the media checkmay be selected from one of: 0xf00f (RH750 worst case),0xec6d (media worst case), and 0xa5a5 (alternating1's and 0's).Normally the media worst case pattern is used..PPThe.PN formatprogram also has an option to perform an extended \*(lqsevere burnin,\*(rqwhich makes 46 passes using different patterns.Using this option, sectors with any errors of any sizeare marked bad.This test runs for many hours, depending on the disk and processor..PPEach time.PN formatis run a completely new bad sector table is generatedbased on errors encountered while formatting.The device driver, however, will always attempt toread any existing bad sector table when the device isfirst opened.Thus, if a disk pack has never previously been formatted,or has been formatted with different sectoring,five error messages will be printed when the driver attemptsto read the bad sector table; these Odiagnostics should be ignored..NXR "format program" "ignoring diagnostics".PPFormatting a 400 megabyte disk on a MASSBUS disk controllerusually takes about 20 minutes.Formatting on a UNIBUS disk controller takes significantlylonger.For every hundredth cylinder formatted.PN formatprints a message indicating the current cylinder being formatted.(This message is just to reassure people that nothing isis amiss.).PPThe.PN formatprogram uses the standard notation of the standalone i/o libraryin identifying a drive to be formatted.  .NXR "format program" "specifying a drive"A drive isspecified as.IR zz ( x , y ),where .I zzrefers to the controller type (either.I hpor.IR up ),.I xis the unit number of the drive;8 times the UNIBUS or MASSBUSadaptor number plus the MASSBUS drive number or UNIBUSdrive unit number; and.I yis the file system partitionon drive.I x(this should always be 0). For example, ``hp(1,0)'' indicates that drive1 on MASSBUS adaptor 0 should be formatted; while``up(10,0)'' indicates UNIBUS drive 2 on UNIBUS adaptor 1should be formatted..PPBefore each formatting attempt, .PN formatprompts the user in case debugging should be enabledin the appropriate device driver.  A carriage returndisables debugging information..NXR "format program" "disabling debugging".PPThe.PN formatshould be used prior to building file systems (with .PN newfs(8))to insure all sectors with uncorrectable media errorsare remapped.  If a drive develops uncorrectabledefects after formatting, the program.PN badsect(8)must be used..SH Examples.NXR(e) "format program" "running"A sample run of .PN formatis shown below.  In this example (using a VAX-11/780), .PN formatis loaded from the console floppy;on an 11/750.PN formatwill be loaded from the root file system.Boldface means user input.As usual, a number sign (#) or an at sign (@)can be used to edit input..EX>>>\fBL FORMAT\fP	LOAD DONE, 00004400 BYTES LOADED>>>\fBS 2\fPDisk format/check utility.spEnable debugging (0=none, 1=bse, 2=ecc, 3=bse+ecc)? \fB0\fPDevice to format? \fBhp(8,0)\fR(\fIerror messages may occur as old bad sector table is read\fP)Formatting drive hp0 on adaptor 1: verify (yes/no)? \fByes\fPDevice data: #cylinders=842, #tracks=20, #sectors=48Available test patterns are:	1 - (f00f) rh750 worst case	2 - (ec6d) media worst case	3 - (a5a5) alternating 1's and 0's	4 - (ffff) Severe burnin (takes several hours)Pattern (one of the above, other to restart)? \fB2\fPStart formatting...make sure the drive is on line ...(\fIsoft ecc's and other errors are reported as they occur\fP) ...(\fIif 4 write check errors were found, the program terminates like this...\fP) ...Errors:Write check: 4Bad sector: 0ECC: 0Skip sector: 0Total of 4 hard errors found.Writing bad sector table at block 808271	(\fI808271 is the block # of the first block in the bad sector table\fP)Done(\fI...program restarts to allow formatting other disks\fP)(\fI...to abort halt machine with ^P\fP).EE.SH DiagnosticsThe diagnostics are intended to be self explanatory..SH Using DEC Software To Format.NT "Caution"These instructions are for people with 11/780 CPU's."The steps needed for 11/750 or 11/730 CPUs are similar, but notcovered in detail here..spThe formatting procedures are different for each type of disk.  Listedhere are the formatting procedures for RK07's, RP0X, and RM0X disks..spYou should shut down ULTRIX and halt the machine to do any disk formatting.Make certain you put in the pack you want formatted.  It is also a good ideato spin down or write protect the disks you don't want to format, just in case..NE.NXR "RK07 disk" "formatting".NXR "RP0X disk" "formatting".NXR "RM0X disk" "formatting".SS Formatting an RK07Load the console floppy labeled, "RX11 VAX DSK LD DEV #1" inthe console disk drive, and type the following commands:.EX>>>BOOTDIAGNOSTIC SUPERVISOR.  ZZ-ESSAA-X5.0-119  23-JAN-1980 12:44:40.03DS>ATTACH DW780 SBI DW0 3 5DS>ATTACH RK611 DMADS>ATTACH RK07 DW0 DMA0DS>SELECT DMA0DS>LOAD EVRACDS>START/SEC:PACKINIT.EE.SS Formatting an RP0XFollow the above procedures except that theATTACH and SELECT lines should read:.EXDS>ATTACH RH780 SBI RH0 8 5DS>ATTACH RP0X RH0 DBA0		(RP0X is, e.g. RP06)DS>SELECT DBA0.EE.PPThis is for drive 0 on mba0; use 9 instead of 8 for mba1, etc..SS Formatting an RM0XFollow the above procedures except that theATTACH and SELECT lines should read:.EXDS>ATTACH RH780 SBI RH0 8 5DS>ATTACH RM0X RH0 DRA0DS>SELECT DRA0.EE.PPDo not forget to put your ULTRIX console floppy backin the floppy disk drive..SH See Alsobad144(8),badsect(8),newfs(8).NXE "format program".NXE "disk pack" "formatting"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -