Solved

sfc /scannow   and chkdsk /r/f

Posted on 2010-08-15
14
9,664 Views
Last Modified: 2012-05-10
how are these similar/different

sfc /scannow

chkdsk /r/f
0
Comment
Question by:rgb192
  • 3
  • 2
  • 2
  • +2
14 Comments
 
LVL 9

Accepted Solution

by:
dj0rbit earned 167 total points
ID: 33440767
sfc stands for System File Checker. It scans all the windows OS system files to see if they are all there and not corrupted. If it finds a bad one, you will be prompted to insert your windows CD to extract a new file to replace the bad one.

chkdsk  is an option to fix the errors on your computer. For example, if you have shut down computer improperly/ system crashed - then chkdsk checks the hard disks for consistency or errors in terms of physical bad sector, bad file names, bad main file table.

The /r locates bad sectors and recovers readable information
The /f fixes erros on the disk
0
 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 167 total points
ID: 33440778
Completely. SFC will check if important system files are changed (by checking a checksum), and replace changed/suspicious files by a copy located in DLLCache folder (or, if not found there, from the installation CD). The files checked are enumerated in some files for this purpose (and some are hardcoded).

chkdsk looks at the logical structure of your harddisk (or floppy disk), that is whether the free sector list fits the allocated sectors according to the file list; and it checks whether there are (physical) disk errors.
/r will try to repair them, if found.
/f will check the non-allocated sectors of your harddisk in addition, which lasts much longer. The check of non-allocated sectors is used to prevent delays if a bad sector is tried to be allocated later, and gives you an idea if your harddisk should be replaced soon (if many errors are reported).
0
 

Author Comment

by:rgb192
ID: 33440794
these seem like they are the same

i ran
chkdsk /r/f
and found no errors

so will
sfc /scannow
have no errors


it may take me 4 hours to run


am i wasting my time
0
 
LVL 9

Expert Comment

by:dj0rbit
ID: 33440822
it depends on the situation like for instance if you have a blue screen of death. It may be a good idea to run chkdsk because it may find errors on the hard disk.

as far as sfc, it also depends on the situation like if you had a O/S corruption and you can't boot get into windows via normal mode but you can get into it via Safemode. From within safemode you can run SFC to see if any files were corrupted and if so i can repair them as needed

i would only run these tasks if i think i may have a problems
0
 
LVL 3

Assisted Solution

by:xwizzard
xwizzard earned 166 total points
ID: 33441041
chkdsk is used to correct windows partition errors (NTFS, FAT32, FAT, exFAT)
The partition is a container for your operating system, so chkdsk is used to find "holes" in your container.

"chkdsk" will check for errors in the partition, but will not fix them unless you use "/F"
The "/R" function will do everything "/F" does but also scan for bad / unreadable sectors and adjust the partition accordingly. "/R" will take much longer to run as it has to scan each sector for errors.

The SFC is a different animal altogether. SFC will only check the status of essential windows system files.
Chkdsk looks at the box, SFC looks at what is inside the box.

My Rule of Thumb:
If you cannot boot, run chkdsk /f.
If you have virus issues, run SFC.
If your Hard Drive is a year+ old run chkdsk /r.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 33441394
very valuable information.

Let me ask:
do I have to apply sfc and chdsk for each driver?
I mean suppose I open the cmd:
it's in C:\ drive, do I have to apply the same commands to another logical drive?

Regards.
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 33441924
Hmm, the accepted answer is not much different to those posted earlier. Does that really grant it to be the only accepted answer? Only if the other posts were not to understand that would be appropriate.

@jazzlllove:
chkdsk refers to a single logical volume (partition). It has to be issued for each volume, by either changing into a folder on those volume, or by supplying the drive letter:

chdsk d: /r /f

sfc does only need to be issued once. It only checks the files of the active OS, no matter where the files are located. Usually it should run automatically anyways, but sometimes you need to force it to run by starting it manually.
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 33441936
Qlemo:
Yep, I tried as you say, you are right.

dj0rbit:
>>sfc stands for System File Checker. It scans all the windows OS system files to see if they are all >>there and not corrupted. If it finds a bad one, you will be prompted to insert your windows CD to >>extract a new file to replace the bad one.
I tried with iso mounted on a virtual drive with no luck, at least, Windows XP waits for a CD-ROM physical drive that is recognized under Disk Management.

Regards.
0
 
LVL 9

Expert Comment

by:dj0rbit
ID: 33441989
i thought your questions was about knowing the differences. If so, then multiples experts have answered that question and should be award point properly.

Regards,
0
 
LVL 3

Expert Comment

by:xwizzard
ID: 33442023
I agree, credit should be shared when credit is due.
My comment was geared toward the Author's comment on not seeing a difference between the two.
One article does not make a journal.
0
 

Author Closing Comment

by:rgb192
ID: 33550971
yes, that is a better way to award points.  I now agree.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi All Just a quick one for everybody. I was recently looking into setting the default User Account Picture for all my vista clients within the network but on closer inspection the group policy setting only allows you to set the default pictur…
The Service applet starts in Extended Mode by Default, with a taskpad on the left of the services pane. This view mode was introduced in XP. As I find it not very usefull, I like to use the Standard view as default, and without the Console tree. …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now