Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sfc /scannow   and chkdsk /r/f

Posted on 2010-08-15
14
Medium Priority
?
13,778 Views
Last Modified: 2012-05-10
how are these similar/different

sfc /scannow

chkdsk /r/f
0
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
14 Comments
 
LVL 9

Accepted Solution

by:
dj0rbit earned 668 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 71

Assisted Solution

by:Qlemo
Qlemo earned 668 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
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 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 664 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
 
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 71

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

So who is this article for? If you are like most of the computer users out there, you probably only realize the meaning of 'System maintenance' after something goes wrong. This article is for you if you care about keeping your system working opti…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

705 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