Disk Bad Track Processing and disk Processing
Previously, I wrote to use badblocks to check bad channels.
Because badblocks only detects Bad Sectors, and then marks the bad track information in the log file, it does not process the bad sectors. If you want to skip these bad blocks during disk detection, you can use the-l parameter of fsck.
Badblocks-B 4096-c 16/dev/sda1-o sda-badblocks-list use this pair to check the failure and save it in sda-badblocks-list.
Fsck. ext4-l/tmp/sd-badblock-list.final/dev/sda1 on the disk, where fsck. ext4 is based on your file system.
Finally, we can.
You can also detect bad channels before creating a file system.
Badblocks can be run with e2fsck and mke2fs-c deletion (the same for ext3 file systems). Before creating a file system, check the bad track information:
# Mkfs. ext3-c/dev/sda1
The code indicates to use-c to check the bad path hard disk before creating the file system.
This operation clearly tells us that we can use the "mkfs. ext3-c" option to check the hard disk in the "read-only" mode. This command will check the hard disk when formatting the hard disk and mark the wrong hard disk "block ". It takes a lot of patience to format the hard disk using this method, because after the command is run, the hard disk will be checked one by one in Read mode.
How to deal with bad hard disk sectors
Hard drive sectors (reprinted)
The hard disk is quite fragile. If it is not used properly, it may lead to bad sectors. Sometimes it is really hard to hear the sound of "karka" during disk reading! Bad Sectors on the hard disk mean that it is not safe to store data. If the hard disk is broken, you can buy it again. But where can I buy the lost data?
1. Identify hard drive sectors
1. differentiate logical and physical Channels
Hard drive channels are divided into two types: Logical channels and physical channels. The former is generally available for software repair; the latter is a physical bad track, which indicates that the hard disk track has physical damage.
If the hard disk has any of the following conditions, you should suspect that it has a bad track:
① When opening and running files, the hard disk speed is obviously slow; or the hard disk is obviously cracked, sometimes the system will prompt that the file cannot be read or written.
② The disk is automatically scanned at each boot, which indicates that the hard disk has an error to be fixed. If the program fails, it indicates that the hard disk has a bad track. Or, although the scan can pass, the red "B" is marked in some locations ".
③ If the hard disk cannot be booted, you can see the drive letter after the disk is started with a floppy disk or disc, but you cannot operate on the drive letter. or you cannot see the drive letter at all.
2. How to detect bad sectors on a hard disk
Use the Scandisk program that comes with Windows to check whether the hard disk has bad sectors. It will mark "B" where it cannot pass the check ". In addition, we recommend that you use the "effective source Hard Disk Bad Track repair program" for detection.
MC Software Package
Software name: efficiency source Hard Disk Bad Track repair program
Latest Version: 1.5A
Software size: 739 KB
Software type: Free Software
Application Platform: Windows 9x/NT/2000/XP
: Xlysoft.www28.cn4e.com/soft/soft6.exe
This tool can comprehensively check whether the hard disk has bad sectors, or detect any locations on the hard disk (such as 45%-80% ), no matter what partition format is used for the hard disk or whether it is hidden or not, it can be detected (note: the free version can only be detected but cannot be repaired ).
When running the program, you need to insert a floppy disk to make the boot disk (3). After the program is started, restart the disk. In the BIOS, set the boot sequence to "floppy disk first" and use the new floppy disk to start the computer, then there will be corresponding options in the main window: "Full Disk Bad Track detection", "Advanced Hard Disk Bad Track detection", and "Hard Disk Bad Track statistical results ".
Ii. Handling of bad Channels
You must repair or hide the hard drive after detecting the bad track to avoid the spread of the bad track.
Method 1: the disk scan marks a bad track so that the system no longer saves data to it
In Windows, select the drive letter, right-click the drive letter, select "attribute" from the menu, scan the hard disk completely in the "Tools" option, and automatically modify the possible bad cluster.
If not, try to boot the machine with a Windows 98 boot disk and then run the DOS version "scandisk ".
Method 2: reformat
For hard disk partitions with bad sectors, the program will try to fix them when re-formatting, sometimes it can be repaired successfully. However, this method is not very effective, so it is often used in combination with the following method.
Method 3: Hide bad Channels
If it cannot be repaired, simply hide the bad track! The basic idea is to find out the approximate range of bad channels. If Format is used to Format and record the percentage of bad channels encountered, calculate the approximate location of the bad Channels Based on the partition capacity; or use the "disk scanner" to fully scan the hard disk, determine the approximate location of the bad track. Use the "partition magician" to partition the space and hide it.
TIPS: if the range of bad channels is smaller than the actual number, some of the bad channels will continue to be used and spread; if hard disk space is wasted during the Conference. Back up important data before shielding bad channels.
Another way to hide bad channels is to use the "bad disk partition device" -- Fbdisk (: ...... the remaining full text>
How to deal with bad sectors on Hard Disks
Repair of bad hard drive channels.
Below we will introduce some common Hard Disk Bad Track repair methods.
1. SCANDISK disk scanning program is the most commonly used method to solve Bad Sectors of Hard Disk logic, and our common FORMAT commands cannot fix any bad sectors of hard disk. You need to understand this. If a bad track occurs on the hard disk, select the drive letter to be processed in "My Computer" in WINDOWS and select "attribute ", select "check error status" in the "Tools" button that appears, click "Start Check", and then select "comprehensive check" in "Scan type ", the "Automatic repair error" is checked and "start" is enabled. It completely scans the hard disk and automatically fixes possible bad clusters. Secondly, in the DOS state, the hard disk has a bad track. When the computer is started, SCANDISK is generally run automatically for scanning, and the bad cluster is marked with "B" (bad) in the dark. Of course, if the system does not scan the disk or cannot enter the WINDOWS system when it is started, we can also use A floppy disk or a cd boot disk to start the computer, under the corresponding drive letter, such as ": run SCANDISK *: (Note * is the hard drive letter to be scanned), press enter and repair the hard drive partition to be scanned and repaired.
2. other tools such as NDD "disk doctor" and PCTOOLS In the Norton toolkit scan hard disks is also the most common method to repair Bad Sectors on hard disks. The usage of these tools is very simple and has been introduced in many newspapers, you can try it out.
3. if there are unrecoverable bad clusters or physical bad channels on the hard disk, you can use some disk software to separate and hide these bad channels, this can prolong the service life of your hard disk.
Method 1: for example, a 4.3G hard drive has a serious physical bad track at 2G. FORMAT cannot be used, and SCANDISK or NDD cannot be used, but normal partitioning is possible. Find A partition formatting software smart fdisk, start the computer with the boot disk, enter the drive letter A:, run the software execution file SFDISK. EXE. Then "DELELE" deletes the original partition and calculates the location of the bad track on the hard disk. In this example, a basic partition of MB is created and then formatted and activated, then, the bad sectors are disposed of by a logical partition of about 50 MB, and all the remaining hard disk space is divided into a logical partition, and then formatted quickly with its quick formatting function; finally, delete the DEL in the zone where the 50 m bad track is located. Then restart the disk. A hard disk with a severe physical bad track is quickly repaired, and the head will no longer read the deleted bad track areas.
Method 2: Let's talk about the application of the FDISK partition software in WINDOWS in this case. For example, a 1G hard disk cannot pass smoothly when formatted to 10%. Press CTRL + BREAK to forcibly terminate the disk. Run FDISK to create a 90 m DOS partition as a C disk, then create a 20 M Logical Disk D, then create a Logical Disk E for the remaining 800 M, exit the FDISK, and run format e: If the grid reaches 10%, there will be obstacles, then, use FDISK to create another 88M e disk, and use the remaining 790M of 10 M f disk as the G disk. Repeat the above operation until the operation is completed. Then run FDISK to delete the 10 m D and F disks. Then, the rest is the good disks with no bad channels.
Method 3: In addition, you can also use disk software such as PartitionMagic and DiskManager to complete such a task. For example, if PartitionMagic is used as the partitioning software, use the "check" command in PartitionMagic4 or the disk scanner in WINDOWS to scan the disk and determine the location of the bad cluster on the hard disk, select "Advanced/bad Sector Retest" under the Operations menu; divide the hard disk of the bad cluster into multiple partitions, and then hide the partition of the bad cluster to avoid misoperation in Windows, this function is implemented through the Hide Part ition menu item. This can also ensure the normal use of hard disks with severe bad sectors, and avoid frequent System reads and writes to bad sectors, while more expansion and damage ...... the remaining full text>