Detailed as follows:
Start--Run--Input cmd--Input chkdsk disk drive: /f , for example: "chkdsk d: /f".
Wait for the command to finish running.
Here it should be noted that the colon should be followed by an empty space, do not follow the write "/f"
Trouble phenomenon
Whether it is a portable hard disk or U disk, including the local computer hard disk partition, double-click to open, prompt: "Can not open the H disk , the file or directory is corrupt and can not be read, .... " . Some partitions format changed to RAW.
Data Loss Reason Analysis
The appearance of this error prompt is due to a variety of reasons caused by the disk file directory (FAT,MFT) error caused. Mainly occurs in the USB flash drive, MP3, removable hard disk and other mobile devices, including large-capacity (160G or more) NTFS partition format of the external removable hard disk has the highest incidence of the most. There are many reasons for this, generally the following reasons:
1, there is no normal insertion and removal of mobile devices, the system does not complete the complete read and write operations, resulting in file directory information is messed up and incomplete. For example, we copy a file to the mobile device, shutdown and restart, unplugged, and then open again to use or to other computers to use the symptoms.
2, the selection of inferior products, including inferior power supply, motherboard, data cable, especially inferior external hard disk box. The product's power supply, the main control circuit is not stable, resulting in disk addressing errors, write the wrong information.
3, the use of PQ, PM and other disk partition adjustment tool.
4, viruses, hard disk hardware failure itself, sudden power failure during the work.
Quality of recovery results
If it is a large removable hard disk and is in NTFS partition format, the quality of the recovery is very satisfactory, basically successful recovery of files and directory structure.
If the drive is in FAT or FAT32 format, depending on the degree of damage, the recovery quality is slightly worse than that of an NTFS-formatted partition, so it is recommended to use an NTFS-formatted partition for daily use, as its data security is higher.
Data Recovery Preparation
I don't know who started this, but some people on the Internet tell you to format the partition once, and then use some data recovery software to recover the data, Big Brother! Big Brother! Big Brother!!!
Before the following operation, it is recommended to make an image backup!
You want to take a shortcut, you can first try your luck, you can first CHKDSK a try (the method described at the beginning of this article). chkdsk is the Windows operating system comes with the disk check repair command.
Take a look at the disk drive letter of the device you're having trouble with, and then tap Start-Run, and type CHKDSK H:/F in the Run dialog box. Note that H is the disk letter you want to check and repair. After that, the system will start checking the disk partitions. If the system is able to find the problem and it is within its repair capabilities, Windows automatically repairs the partition in error. If it doesn't, don't unplug the device, try restarting the computer, and if the problem persists, you've won the premium prize!
What to do if you win the premium prize
Don't be discouraged! There is always a way.
I have used the hard disk partition table repair tool to repair, but no effect, forget it, do not restore the partition, many tests completely let me down. Now it's time to think about how to restore the files in the partition back, because that's what's important! I used EasyRecovery . After a long wait, the data was finally restored. I got all the files back ^_^ I was lucky ^_^, just some directories were missing, it's ok, as long as the files are there ^_^ That's a lot of hard work ^_^ ! I've used R-STUDIO to restore the data on my USB flash drive before, and the result is good! ^_^
Attached chkdsk parameters:
CHKDSK [volume[[path]filename]] [/F] [/V] [/X] [/C] [/L[:size]]
volume Specifies the drive (followed by a colon), mount point, or volume.
filename? FAT/FAT32 only: Specifies the file to check for fragmentation
/F Fixes errors on the disk.
/V on FAT/FAT32: Displays the full path and name of every file on the disk.
On NTFS: Displays the erase message if there is one.
/R Finds incorrect sectors and restores readable information (implicit /F).
/L:size For NTFS only: ? Changes the log file size to the specified number of KBs. If no size is specified, the current size is displayed.
/X Forces the volume to be unmounted first if necessary. All open handles to the volume are then invalidated (implicit /F)
/I For NTFS only: less intense checking of index entries
/C For NTFS only: skips cyclic checking of folder structure.
/I and /C command line switches skip some checks on volumes, reducing the time it takes to run Chkdsk
Fixing "File or directory is corrupt and unreadable" error on removable drives
Yesterday, I was downloading a file from my removable drive when I got the error, and thought it was a small error and didn't pay attention to it. I thought it was a small error and didn't care. I just shut down the computer and unplugged the hard disk. When I connected to the computer again today, I found that the hard disk could not be read, XP prompted "file or directory is damaged and can not be read". I tried another computer, but the problem was still there. According to the prompt, it should only be a corrupted file or directory index, so I can just repair the index. Since this hard disk is in NTFS format, I thought to use CHKNTFS command to repair it, but it showed that it could not be read. I tried to use the CHKDSK /F command again, but the repair stopped just before it started, and a command line prompt popped up, so the repair failed. It seems that the problem is not only with the directory index, but also with the hard disk enclosure. So I changed the hard disk enclosure and tried again, but it still didn't work. Is there something wrong with the partition table? Because of the disk properties show data are 0, so think of repairing the partition table to try. Use SPFDISK to view the partition information, but the results are normal. I don't know why, so I tried to reset the MBR. After resetting the MBR, I rebooted into XP, and the problem was still there. Reboot into DOS again, scan with KV3000 antivirus program which supports NTFS, the disk can be read, and the file directory and files are all there. This means that the files are not damaged, so it should still be a directory indexing problem, but why can't I use CHKDSK? I went back to XP and used the CHKDSK /F command to fix the problem again, but this time the repair was completed successfully. Open the disk, all the files are back, in addition to a small number of damaged files can not be opened, most of the other can run normally, especially the important files inside all intact. It's strange, why it didn't work just now, but now it works? I'm not sure if this is the case, but I'm sure it's the case that it's not.
Now that I've fixed it, I'm going to take the hard drive off and put it back on the original hard drive case. After connecting it to the computer and booting it up, the same problem occurred again. Unplugged it and plugged it back in, same old thing. How could this happen? It just folded and installed and broke again? I tried to reset the MBR by entering SPFDISK as I did earlier, but I found that the hard disk was not recognized at all. I changed several hard disk repair tools, and none of them recognized the disk. I had no choice but to remove the hard disk and install it into the hard disk case. Turn on the computer, connect the removable hard disk, the problem remains. Try to run CHKDSK, I did not expect a smooth repair completed. I'm not sure if I'm going to be able to do that, but I'm going to be able to do it," he said.
This time, I didn't dare to dismantle it again, and hurriedly backed up all the important data to the local hard disk. The first time I saw this, I was able to get the data back on the local hard drive, and then I deleted the hard drive's partition and put it back on the original hard drive case. The first time I saw this, I was able to get the computer to work, but I was not able to get the computer to work. I unplugged the hard disk and replaced it with the hard disk enclosure, and then connected it to the computer, and it worked again. So the hard drive re-partitioning and formatting, to confirm that the system normally recognized the disk, and then installed the disk back to the original hard disk box, re-inserted into the computer, the results are again dead. Restart the computer, actually stuck in the self-test for a long time before entering, or can not recognize the disk. This can be concluded that the hard disk box is bad. This hard disk box or Samsung original hard disk box, usually almost no use, just a few days to download data for a longer period of time, did not expect actually bad. Used to replace the hard disk box is just completely unknown, the cheapest miscellaneous hard disk box, but it has been used for a long time are not bad, all day long hanging download and watch movies, are still working normally. Visible brand-name is not necessarily a good thing. A few days ago, a colleague also bought a Samsung mobile hard disk, is also the original hard disk box, the results just bought back is bad, just copy and paste the data will be wrong, go to a new one can be used. Samsung this brand of hard disk box, I will never buy in the future.
Attachment:
1, MBR (Main Boot Record): the main boot record
Mobile hard disk to delete files prompted by "file or directory is damaged and can not be read" solution - chkdsk command clever use
Newly bought a The new mobile hard disk, students borrowed to Copy a game, copy the data package found to be damaged, prompting the "file or directory is corrupt and can not be read", I hastened to check the new hard disk to appear this problem, is it possible to buy a bad channel of the water goods? Copy and paste the other files in the partition, there is no problem, but can not be ruled out that the hard disk is bad.
Open this folder, normal, you can browse the files inside. Right click on the folder properties, see its read-only attribute, remove the read-only attribute, click OK, prompted the folder file corruption, can not reset the properties, to find the file, it has been corrupted, can not be opened normally. The file was corrupted and could not be opened normally. The attempt to delete the file failed. Entered the folder and used del /f command to force delete failed. I don't believe I can't delete you.
cmd into the disk directory, run chkdsk /f, prompted CHKDSK is verifying the file ... ..., a few seconds later prompted to delete the file. *. file index successfully, re-run rd /s + folder name, folder successfully deleted.
Asked the situation, students copy this game file when the other machine is running the game, the general game program in order to ensure the security and integrity of the data, when the game is running certainly in the form of resource exclusivity access to certain files, these files are temporarily locked, this time the copy of the file to the file is not complete. So it will prompt that these files are corrupted. Let the students copy again, do not run the game when copying data or copy the game after packing. Problem solved.
Crawling to the Internet to see the netizens encountered this problem solution, the most advice is to format the partition, my suggestion is: encounter this problem, it may be worth running once chkdsk command, may save unnecessary trouble and loss oh.
ps:Some trivia about the chkdsk command.
chkdsk stands for check disk and is used to check the usage of your disk.
The format of the chkdsk command is: chkdsk disk name, for example, to check the usage of disk A, enter chkdsk A: , to check the usage of disk c, enter chkdsk C: , if you enter chkdsk directly, check the current disk usage.
2008-03-18 11:55
Introduction: This article explains some of the factors such as reading data when suddenly forced to disconnect the hard disk or power failure and other factors lead to hard disk partition damage repair
This is mainly a disk partition damage ~
Generally, the mobile hard disk is more common cause there are many reasons, but generally are not the most common.
There are two solutions (please try them in order):
Method 1:
Start Run, open the Run menu, and type chkdsk /f
Ignore the prompts and go straight to Y, then Enter
Next, restart your computer (make sure the problem is solved). Reboot your computer (make sure the hard disk or removable drive in question is linked to your computer)
The computer will automatically detect the disk error and you just need to wait
Method 2: File Recovery with External Software
This is where we will use Easy Recovery Pro (hereinafter referred to as ER)
Downloaded from::
First, open Easy Recovery Pro (hereinafter referred to as ER). p>
First of all, open ER and click on Data Recovery Options
Then select Advanced Recovery and choose the partition under the disk you have problems with
You can look at my computer and see what that drive letter is, such as D. At this point, you can select the D drive
Select and click on the lower-right corner of the Next
Then ER will scan the partition for files and this is where you can select files or folders you want to recover
This time, ER will scan for files and then you will be able to select the one or more files or folders you want to recover. Then you can select the files or folders you want to recover
Tap Next In the dialog box that appears, in the Recover directory option, select Recover to local hard disk
Tap Browse and select the partition where you want to store the files of the corrupted partition. Format the D drive and copy the recovered files to the D drive
See if it's OK
Error: The file and directory icons are still there, but when you double-click on them, there's a message "The file or directory is damaged and can't be read", and when you delete it, it says that it can't be deleted.
Reason for the error: Perhaps you didn't follow the steps to click "Safely Remove Hardware" and directly unplugged the USB cable of the portable hard drive, perhaps the portable hard drive has been used for a long time and naturally aged, or perhaps there was a vibration during the copy process that caused the error.
The solution: Try to use the disk scanning tool that comes with Windows to repair it. In the start menu bar click "Run", type "cmd", the DOS status dialog box appears. At the cursor, enter the disk drive letter of the corrupted file, and then enter "CHKDSK", enter to see the relevant detection information. "CHKDSK" means "check disk", disk detection command.
If you find an error, follow the prompts and type "CHKDSK /F" after the cursor to start repairing. The parameter "/F" is the fix command. At this time, the message "Unable to lock" is prompted. Enter "Y" to agree to "force unload the volume" and then enter. The disk will continue to be scanned and repaired. After a few minutes (the time varies depending on the size of the disk partition and the number of error files), the message "Windows has corrected the file system" appears as the repair is complete.
Done.
~Some trivia about the chkdsk command. ~
chkdsk stands for check disk and is used to check your disk usage.
The format of the chkdsk command is: chkdsk disk name , for example, to check the usage of disk A, enter chkdsk A: , to check the usage of disk c, enter chkdsk C: , if you enter chkdsk directly, you check the usage of the current disk.
The full name of chkdsk is checkdisk, which means disk check, you can't and don't have to use this file, this thing is called by the system to check the disk when your system when off or illegal shutdown. It creates and displays a status report of the disk based on the file system used. chkdsk also lists and corrects errors on the disk. Without any arguments, chkdsk displays the status of the disks in the current drive.
Syntax
chkdsk [volume:][[Path] FileName] [/f] [/v] [/r] [/x] [/c] [/l[:size]]
Parameters
volume:
Specifies the drive letter (colon separated), mount point, or volume name.
[Path} FileName]
Specifies the location and name of the file or set of files that need to be checked for defragmentation by chkdsk. Using wildcards (* and ?) multiple files can be specified.
/f
Fixes errors on the disk. The disk must be locked. If chkdsk is unable to lock the drive, a message is displayed asking if you want to check the drive the next time you restart your computer.
/v
When checking the disk, displays the name of each file in all directories.
/r
Finds bad sectors and recovers readable information. The disk must be locked.
/x
Used only on NTFS. If necessary, force unmount the volume first. All open handles for this drive are invalid. /x also contains the functionality of /f.
/i
Used only with NTFS. Performs a full check of index entries, reducing the amount of time spent running chkdsk.
/c
Used with NTFS only. Reduces the amount of time needed to run chkdsk by skipping periodic checks in the folder structure.
/l[:size]
Used only with NTFS. Changes the size of the log file to the size entered by the user. If this parameter is omitted, /l displays the current size of the log file.
/?
Displays help at the command prompt.
Note
Running chkdsk
To run the chkdsk command on a fixed disk, you must be a member of this Administrators group.
Checking a locked drive on reboot
If you want chkdsk to fix a disk error, you previously could not open files on that drive. If there are files open, the following error message is displayed:
Chkdsk cannot run because the volume is in use by another processWould you like to schedule this volume to be checked the next would you like to schedule this volume to be checked the next time the system restarts?(Y/N)
If you choose to check this drive the next time the computer restarts, chkdsk automatically checks this drive and fixes the error after restarting the computer. If the drive partition is a boot partition, chkdsk automatically restarts the computer after checking the drive.
Reporting disk errors
The chkdsk command checks disk space and usage of the File Allocation Table (FAT) and NTFS file systems. chkdsk provides information specific to each file system in a status report. The status report shows errors found in the file system. When chkdsk is run on an active partition without the /f command line option, it may report false information because the drive cannot be locked. You should occasionally use chkdsk to check for errors on each disk.
Repairing disk errors
The chkdsk command repairs disk errors only if the /f command line option is specified. chkdsk must be able to lock the drive to correct the error. Because repair usually changes the disk's file allocation table and sometimes loses data, chkdsk first sends a confirmation message as shown below:
10 lost allocation units found in 3 chains.
Convert lost chains to files?
< p> If you press Y, Windows saves all the lost chains in the root directory in a file called Filennnn.chk. After chkdsk finishes, you can see if these files contain the data you need. If you press N, Windows repairs the disk, but it does not save the contents for lost allocation units.If the /f command-line option is not used, chkdsk sends a message when there are files to repair, but it does not fix any errors.
If you use chkdsk /f on a large disk (say, 70 GB) or a disk with a lot of files (millions), this can take a long time (say, days) to complete. Because chkdsk doesn't hand over control until its work is done, the computer will be unavailable during this time.
Checking FAT disks
Windows displays a chkdsk status report for FAT disks in the following format:
Checking NTFS disks
Windows displays a chkdsk status report for NTFS disks in the following format:
Using chkdsk with open files present chkdsk
If there are open files on this drive, chkdsk sends an error message when the /f command line option is specified. If the /f command line option is not specified and there are open files, chkdsk reports missing allocation units on the disk. This can happen when open files are not recorded in the file allocation table. If chkdsk reports a large number of missing allocation units, consider repairing the disk.
Finding physical disk errors
Use the /r command line option to find physical disk errors in the file system. For information about using recover to repair physically damaged files, see "".
Reporting bad sectors on a disk
Bad sectors reported by chkdsk are marked as corrupt when the disk is first ready to run. They are not dangerous.
Understanding Exit Codes
The following table lists the exit codes that chkdsk reports when it has completed its task.
Exit Code Description
0 No errors found.
1 Error found and fixed.
2 A cleanup of the disk (such as defragmentation) was performed, or a cleanup of the disk was not performed because /f was not specified.
3 The disk could not be inspected, the error could not be repaired, or the error was not repaired because the /f option was not specified.
The Failure Recovery Console provides the chkdsk command with different parameters.
Example
To check the disk in drive D and want Windows to fix the error, type:
chkdsk d:/f
If you encounter an error, chkdsk pauses and displays a message. chkdsk completes the task and displays a report listing the status of the disk. Unless chkdsk has completed its task, it cannot open any files on the specified drive.
On a FAT disk, to check for non-contiguous blocks of all files in the current directory, type:
chkdsk *. *
Chkdsk displays a status report and then lists the files that qualify as having non-adjacent blocks.
XOX
Repair mobile hard disk "file or directory is damaged and can not be read"
Today on the computer found that the mobile hard disk can not be opened, very anxious, I just bought ah not long ago, panicked, and then go online to find out, it seems to be a file indexing error, but also do not care, in the dos under the input chkdsk H: /x, and so on ten or twenty minutes and did not finish. Twenty minutes later there is no end, so forced the end of the dos. and then a go in, it's all good, it seems that no damage to any file, really happy, so I wrote it down as a remembrance of a moment.
Attachments:
1, MBR (Main Boot Record): the main boot record
2, CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/C] [/L[:size]]
volume Specifies the drive (followed by a colon). drive (followed by a colon), mount point, or volume name.
filename? FAT/FAT32 only: Specifies the file to check for fragmentation
/F? Fixes errors on the disk.
/V on FAT/FAT32: Displays the full path and name of each file on the disk.
On NTFS: Displays the erase message if there is one.
/R? Finds incorrect sectors and recovers readable information (implicit /F).
/L:size For NTFS only:? Changes the log file size to the specified number of KBs.
If no size is specified, the current size is displayed.
/X? Forces the volume to be unmounted first if necessary.
All open handles to the volume are then invalidated (implicit /F)
/I for NTFS only: less intense checking of index entries
/C? for NTFS only: skips cyclic checking of folder structure.
/I and /C command line switches skip some checks on volumes, reducing the time required to run Chkdsk.
Reproduced