📄 badsect.8
字号:
.\" SCCSID: @(#)badsect.8 8.1 9/11/90.TH badsect 8 VAX.SH Namebadsect \- create files to contain bad sectors.SH Syntax.B /etc/badsectbbdir sector ....SH Description.NXR "badsect program".NXR "bad sector" "creating file for"The.PN badsectcommandmakes a file to contain a bad sector. Normally, bad sectorsare made inaccessible by the standard formatter, which providesa forwarding table for bad sectors to the driver. For furtherinformation, see .PN bad144(8).If a driver supports the bad blocking standard it is much preferable touse that method to isolate bad blocks, since the bad block forwardingmakes the pack appear perfect, and such packs can then be copied with.PNdd(1).The technique used by this program is also less general thanbad block forwarding, as.PN badsectcan't make amends forbad blocks in the i-list of file systems or in swap areas..PPOn some disks,adding a sector which is suddenly bad to the bad sector tablecurrently requires the running of the standard DEC formatter.Thus to deal with a newly bad blockor on disks where the driversdo not support the bad-blocking standard .PN badsectmay be used to good effect..PPThe.PN badsectcommandis used on a quiet file system in the following way:First mount the file system, and change to its root directory.Make a directory BAD there. Run.PN badsectgiving as argument the BAD directory followed byall the bad sectors you wish to add.(The sector numbers must be relative to the beginning ofthe file system, but this is not hard as the system reportsrelative sector numbers in its console error messages.)Then change back to the root directory, unmount the file systemand run .PN fsck(8)on the file system. The bad sectors should show up in two filesor in the bad sector files and the free list. Have.PN fsckremove files containing the offending bad sectors, but do nothave it remove the BAD/\fInnnnn\fR files.This will leave the bad sectors in only the BAD files..PPThe.PN badsectcommandworks by giving the specified sector numbers in a .MS mknod 2 system call,creating an illegal file whose first block address is the blockcontaining bad sector and whose name is the bad sector number.When it is discovered by .PN fsckit will ask ``HOLD BAD BLOCK''?A positive response will cause .PN fsckto convert the inode to a regular file containing the bad block..SH RestrictionsIf more than one sector that comprises a file system fragment is bad,you should specify only one to.PN badsect ,as the blocks in the bad sector files coverall the sectors in a file system fragment..SH DiagnosticsThe.PN badsectcommand refuses to attach a block thatresides in a critical area or is out of range of the file system.A warning is issued if the block is already in use..SH See Alsobad144(8), format(8v), fsck(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -