📄 bad144.8
字号:
.\" SCCSID: @(#)bad144.8 8.1 9/11/90.TH bad144 8 VAX.SH Namebad144 \- read/write DEC Standard 144 bad sector information.SH Syntax.B /etc/bad144[.B \-f]disktype disk[ sno [bad ...] ].SH Description.NXR "bad144 command".NXA "bad144 command" "badsect program".NXR "bad sector" "reporting"The.PN bad144commandcan be used to inspect the information stored on a disk that is used bythe disk drivers to implement bad sector forwarding. The format ofthe information is specified by DEC Standard 144, as follows..PPThe bad sector information is locatedin the first five even numbered sectorsof the last track of the disk pack. There are five identical copies ofthe information, described by the.I dkbadstructure..PPReplacement sectors are allocated starting with the first sector beforethe bad sector information and working backwards towards the beginningof the disk. A maximum of 126 bad sectors are supported. The positionof the bad sector in the bad sector table determines which replacementsector it corresponds to.The bad sectors must be listed in ascending order..PPThe bad sector information and replacement sectors are conventionallyonly accessible through the ``c'' file system partition of the disk. Ifthat partition is used for a file system, the user is responsible formaking sure that it does not overlap the bad sector information or anyreplacement sectors..PPThe bad sector structure is as follows:.NXR(e) "bad ssector" "structure".PP.EX struct dkbad {long bt_csn; /* cartridge serial number */ u_short bt_mbz; /* unused; should be 0 */ u_short bt_flag; /* \-1 => alignment cartridge */ struct bt_bad { u_short bt_cyl; /* cylinder number of bad sector */ u_short bt_trksec; /* track and sector number */ } bt_bad[126];};.EE.PPUnused slots in the.I bt_badarray are filled with all bits set, an acceptedillegal value..PPThe.PN bad144command is invoked by giving a device type(for example, rk07, rm03, rm05, and so forth), and a devicename (for example, hk0, hp1, and so forth).It reads the first sector of the last trackof the corresponding disk and prints out the bad sector information.It may also be invoked giving a serial number for the pack and a listof bad sectors, and will then write the supplied information onto thesame location. Note, however, that .PN bad144does not arrange for the specifiedsectors to be marked bad in this case.This option should only be used to restoreknown bad sector information which was destroyed.It is necessary to reboot before the change will take effect..PPIf the disk is an RP06, Fujitsu Eagle,or Ampex Capricorn on a Massbus, the.B \-foption may be used to mark the bad sectors as ``bad''.This can only be done safely when there is no other disk activity,preferably while running single-user.Otherwise,new bad sectors can be added onlyby running a formatter.Note that the order in which the sectors arelisted determines which sectorsused for replacements. If new sectors are being inserted into the list on adrive that is in use, care should be taken that replacements forexisting bad sectors have the correct contents..SH RestrictionsOn an 11/750,the standard bootstrap drivers used to boot the system donot understand bad sectors,handle ECC errors,or the special SSE (skip sector) errors of RM80 type disks.This means that none of these errors can occur whenreading the file /vmunix to boot. Sectors 0-15 of the disk drivemust also not have any of these errors..PPThe drivers which write a system core image on disk after a crash do nothandle errors. Thus the crash dump area must be free of errors and bad sectors..SH See Alsobadsect(8), format(8v)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -