词条 | Badblocks |
释义 |
When run as a standalone program, badblocks gives a list of blocks with problems, if any. This makes it a good option for checking whether the disk drive is healthy independently from SMART data and file system checks.[3] e2fsck's "-c" optionA more common use case is the invocation of badblocks as part of e2fsck when passing the option dumpe2fsRunning ExamplesThis would check the drive "sdb" in non-destructive read-write mode and display progress by writing out the block numbers as they are checked. This would check the sixth partition of the drive "sdb", in destructive read-write mode (-w = write-mode), which writes 4 different patterns on the whole partition and verifies each by reading back. It displays progress by writing out the block numbers as they are checked (-s = show, -v = verbose). All data on the partition will be overwritten at the block level. This does the same as above, but to the entire drive, with a block size of 4096. This destroys MBRs, partitions and data alike. Modern disk drives will probably not show any defective sectors because they silently remap bad sectors to spare tracks,[5] but running the program with a new drive for several days will test the whole surface, and when reading it afterwards S.M.A.R.T. data will eventually show reallocated sectors. Using the References1. ^E2fsprogs: Ext2/3/4 Filesystem Utilities – Release notes 2. ^FreshPorts – sysutils/e2fsprogs 3. ^{{man|8|badblocks|die.net}} 4. ^{{man|8|e2fsck|die.net}} 5. ^{{cite web|url=http://www.ukdatarecovery.com/articles/bad-sector-remapping.html |title=Archived copy |accessdate=2012-06-30 |deadurl=yes |archiveurl=https://web.archive.org/web/20120719000028/http://www.ukdatarecovery.com/articles/bad-sector-remapping.html |archivedate=2012-07-19 }} External links
1 : Unix file system-related software |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。