Home  >  Article  >  System Tutorial  >  Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

PHPz
PHPzOriginal
2024-06-12 14:45:33197browse

Data loss is an inevitable problem for many users. Most people get into trouble when their valuable files are accidentally deleted, lost, or their hard drive is formatted. In order to save important data, users often turn to the Internet for help, looking for remedies on websites and forums. PHP editor Xigua has collected various solutions for data loss, which will be introduced in detail below to help you quickly recover lost data.

You may want to know how to use CMD command to recover deleted files. Maybe you will know the command prompt, such as "recover", "attrib", "chkdsk" command, etc., to help you recover deleted files. or missing files.

But these commands have usage requirements and are difficult to use correctly.

Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

"How do I enter Recover command to recover deleted files? It needs to find the disk, path and file name. The name I entered is correct but I don't know the file Where is the storage path? "

This article will explain and introduce the usage of the "recover" command in CMD. With the guide here, you can recover deleted files using CMD command.

What is the Recover command in CMD?

The "recover" command is one of the commands in the command prompt. According to Microsoft, it is used to recover undamaged/uncorrupted data from problematic disks. It will scan the hard drive sector by sector and recover data from good sectors.

Syntax: recover[drive:][path]File name

The parameters used here respectively represent:

  • Drive: the hard disk where the file is stored.
  • Path: The exact directory of the file.
  • Filename: The exact filename.

Can the Recover command recover deleted files?

Yes, the Recover command will try to recover readable information on the hard disk. By scanning sector by sector, it can recover complete data from defective hard drives but ignore corrupted/lost data in bad sectors. Here are its pros and cons.

Advantages: Recover data without causing damage or affecting the hard drive.

Disadvantages:

  • Requires accurate file name and path.
  • Only 1 file can be restored at a time.
  • Wildcards are not supported in the syntax. (Wildcard is a special statement, mainly asterisk (*) and question mark (?), used to fuzzy search files.)

How to use the Recover command to recover deleted files?

Although this command is not too difficult, it requires more data recovery. Follow the steps here to recover files in CMD.

1. Enter "cmd" in the Windows search box to start the command prompt > Select "Run as administrator".

Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

#2. Enter the following commands in sequence and press "Enter". diskpart > list disk > select disk 1 > list volume > select volume 4. Replace the number here with the actual drive letter of the affected drive.

3. Enter recover [drive:][path]filename.

For example: Recover E:\test\recover-command-usage.jpg

Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

It can be retrieved from the E: drive named "recover-command -usage.jpg" photo.

So, is there an easy way to recover deleted or lost data?

How to directly recover deleted files without using commands?

Compared with the strict requirements of the "recover" command, many users prefer to directly recover lost data without using the command, thereby saving time and energy.

In this case, you can use professional Windows data recovery tools to help you. This article recommends AOMEI Recovery Star, which can help you recover a variety of data lost due to various data loss situations.

  • Supports multiple storage media. SSD, HDD, USB, flash drive, SD card, etc.
  • Recover many types of files. Recover more than 200 types of data such as documents, texts, pictures, videos, audios, emails, compressed files, etc.
  • Compatible with multiple systems. Support NTFS, FAT32, exFAT, ReFS in Windows 11/10/8/7. (Compatible with 64-bit and 32-bit operating systems.)

1. Download, install and run AOMEI Recovery Star on your computer> Select the disk/partition where data was lost> Click " Start scanning".

Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

#2. After automatically performing quick scan and deep scan, you will see deleted and lost files.

Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

3. Check the scan results and select the data you need. Then click on "Recover x files" and save these recovered files in the new location.

Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems

FAQ: Commands for recovering files

This article details the syntax, usage, and advantages of using the Recover command in CMD to recover deleted files. shortcoming. Additionally, a good data recovery tool is also introduced.

In fact, backing up your important data is a practical way to prevent data loss. You can use the professional data backup tool AOMEI to easily back up and protect your data.

If you may still have many questions about the command. Additional information has been prepared here to assist you.

What is the attrib command? Can deleted files be recovered using attrib?

If you are looking to recover data from hard drive using command prompt, you may know about "attrib" command to recover files.

The "attrib" command is used to display, delete or assign file attributes. It needs to be used with parameters such as /r, /s, /d, etc.

Different parameters have different effects on files. Users need to use "+" or "-" in the parameters to assign or remove attributes.

Note:

  • -h clears hidden file attributes.
  • -r Clear the read-only file attribute.
  • -s Clear system file attributes.
  • /s Applies attrib and any command line options to matching files in the current directory and all its subdirectories
  • /d Applies attributes and any command line options to a directory.

Among the multiple "attrib" commands, none can recover deleted files, just show some hidden files, cancel the "read-only" flag, etc.

Will CHKDSK delete my files?

The "chkdsk" command will check the file system and the data in it to see if there are any errors. It also needs to be used with parameters such as /f, /r, /x or /b to fix errors.

Generally speaking, it just checks the hard drive for physical or logical errors and does not disrupt or interfere with the files in the hard drive.

But sometimes, due to hard drive damage and other problems, your files may be lost, you can try to use AOMEI Recovery Star to find the lost files you need.

The above is the detailed content of Win10 uses the recover/attrib/chkdsk/ command to repair hard disk data loss and other problems. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]