Last updated on Aug 20, 2024
- All
- Engineering
- Operating Systems
Powered by AI and the LinkedIn community
1
Windows System File Checker
2
Windows DISM
Be the first to add your personal experience
3
Linux fsck
4
Linux System Recovery
5
Precautions and Tips
6
Here’s what else to consider
Corrupted or missing system files can cause various problems for your operating system, such as crashes, errors, or slow performance. System files are essential components of your OS that enable it to run smoothly and securely. They can get damaged or deleted by malware, hardware failures, power outages, or improper operations. Fortunately, there are some ways to fix corrupted or missing system files and restore your OS to normal. In this article, we will show you how to use two built-in tools in Windows and Linux to repair your system files.
Top experts in this article
Selected by the community from 6 contributions. Learn more
Earn a Community Top Voice badge
Add to collaborative articles to get recognized for your expertise on your profile. Learn more
- Eldho Sunny ES
1
1 Windows System File Checker
Windows System File Checker (SFC) is a utility that scans and verifies the integrity of all protected system files and replaces any corrupted or missing ones with a cached copy. To use SFC, you need to open an elevated command prompt as an administrator. Then, type sfc /scannow and press Enter. The scan may take some time, depending on the size and condition of your system files. If SFC finds any issues, it will try to fix them automatically. If SFC cannot fix some files, you may need to run another tool called DISM (Deployment Image Servicing and Management).
Help others by sharing more (125 characters min.)
- Eldho Sunny ES
- Report contribution
Thanks for letting us know! You'll no longer see this contribution
System files missing was a common problem when we had windows 7 and windows 10 especially when using the dual boot configuration with Linux. Using sfc is not practical all the times. Sometimes you may have to reinstall the whole OS. If you are just experimenting then reinstalling OS will not be a big task. Sometimes the scan may takes hours like it's too much time consuming. If you have a HDD then it will take even more time. Based on the hardware desicions should be taken.
LikeLike
Celebrate
See AlsoFiles Disappeared from External Hard Drive [6 Ways to Fix]How to Fix Missing or Corrupted Files on Windows 10Computer Deleted All My Files After Restart, How to RecoverHow to Recover Files Lost by Ctrl + Z on Windows 10/11Support
Love
Insightful
Funny
1
- Sumit Dhiman Independent Advisor @ Microsoft Community | Microsoft Certified | IT Support
- Report contribution
Thanks for letting us know! You'll no longer see this contribution
From the Windows Recovery environment, or a USB drive, SFC / Scannow will not work as the Windows Recovery environment will is a sort of different OS.The correct command, in that case is:sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
LikeLike
Celebrate
Support
Love
Insightful
Funny
- Charles Belfort Analista de Suporte Sênior | Linkedin Top Voice em Suporte Técnico
- Report contribution
Thanks for letting us know! You'll no longer see this contribution
Para corrigir arquivos de sistema corrompidos ou ausentes, comece utilizando ferramentas de diagnóstico, como o System File Checker no Windows ou o comando fsck no Unix. Se os arquivos corrompidos forem identificados, restaure-os a partir de backups recentes ou utilize a mídia de instalação original para reparar os sistemas. É importante documentar o processo para referência futura e garantir que todas as correções sejam testadas antes de colocar o sistema de volta em operação.
Translated
LikeLike
Celebrate
Support
Love
Insightful
Funny
2 Windows DISM
Windows DISM is a tool that can repair the Windows image that is used to restore or update your system files. It can also fix some issues that SFC cannot resolve. To use DISM, you need to open an elevated command prompt as an administrator. Then, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. The command may take some time, depending on the size and condition of your Windows image. If DISM finds any issues, it will try to fix them automatically. After running DISM, you may need to run SFC again to verify and repair your system files.
Help others by sharing more (125 characters min.)
3 Linux fsck
Linux fsck (file system check) is a utility that checks and repairs the consistency of your file system. It can fix corrupted or missing system files, as well as other errors or issues. To use fsck, you need to boot your system into a recovery mode or a live CD/USB. Then, you need to identify the partition that contains your system files, usually the root partition. You can use the lsblk or fdisk -l commands to list your partitions. Then, you need to unmount the partition that you want to check, using the umount command. Finally, you need to run fsck on the partition, using the fsck command with the appropriate options. For example, fsck -y /dev/sda1 will check and repair the /dev/sda1 partition and automatically answer yes to all prompts.
Help others by sharing more (125 characters min.)
- Eldho Sunny ES
- Report contribution
Thanks for letting us know! You'll no longer see this contribution
Hmm seems like you're in linux. Ok. If I was in Linux I would go for a OS reinstallation. But if you don't want to do it then follow the wiki of your distro and please keep one thing in your mind - Always be patient :)
LikeLike
Celebrate
Support
Love
Insightful
Funny
1
4 Linux System Recovery
Linux System Recovery is a feature that allows you to restore your system files from a backup or a snapshot. It can be useful if fsck cannot fix your system files, or if you have accidentally deleted or modified some important files. To use System Recovery, you need to boot your system into a recovery mode or a live CD/USB. Then, you need to locate the backup or snapshot that contains your system files, usually in a separate partition or an external drive. You can use the lsblk or fdisk -l commands to list your partitions. Then, you need to mount the backup or snapshot partition, using the mount command. Finally, you need to copy the system files from the backup or snapshot to your root partition, using the cp or rsync commands. For example, cp -a /mnt/backup/* / will copy all files from the /mnt/backup partition to the root partition.
Help others by sharing more (125 characters min.)
5 Precautions and Tips
Before you try to fix corrupted or missing system files, you should take some precautions and follow some tips to avoid further damage or data loss. First, you should always backup your important data and settings, either to an external drive or a cloud service. Second, you should scan your system for malware and remove any infections, using a reliable antivirus or anti-malware program. Third, you should check your hardware for any faults or errors, using a diagnostic tool or a physical inspection. Fourth, you should avoid using any third-party or untrusted software or tools that may modify or delete your system files. Fifth, you should update your OS and drivers regularly to ensure optimal performance and security.
Help others by sharing more (125 characters min.)
- Sumit Dhiman Independent Advisor @ Microsoft Community | Microsoft Certified | IT Support
- Report contribution
Thanks for letting us know! You'll no longer see this contribution
Also, update BIOS/UEFI firmware regularly to ensure system stability. Manufacturers release firmware updates very often, that increase reliability of the device.
LikeLike
Celebrate
Support
Love
Insightful
Funny
6 Here’s what else to consider
This is a space to share examples, stories, or insights that don’t fit into any of the previous sections. What else would you like to add?
Help others by sharing more (125 characters min.)
- Sumit Dhiman Independent Advisor @ Microsoft Community | Microsoft Certified | IT Support
- Report contribution
Thanks for letting us know! You'll no longer see this contribution
Reinstall the Operating System.For Windows 11, you can use an Installation media, which keeps apps and files, and reinstalls Windows.
LikeLike
Celebrate
Support
Love
Insightful
Funny
Operating Systems
Operating Systems
+ Follow
Rate this article
We created this article with the help of AI. What do you think of it?
It’s great It’s not so great
Thanks for your feedback
Your feedback is private. Like or react to bring the conversation to your network.
Tell us more
Tell us why you didn’t like this article.
If you think something in this article goes against our Professional Community Policies, please let us know.
We appreciate you letting us know. Though we’re unable to respond directly, your feedback helps us improve this experience for everyone.
If you think this goes against our Professional Community Policies, please let us know.
More articles on Operating Systems
No more previous content
- Balancing system stability and urgent client requests for OS updates: How do you make the right choice?
- Balancing memory optimization and project deadlines: Are you sacrificing performance for punctuality?
- You're juggling multiple operating systems on one server. How do you decide where to allocate storage?
- Your team has diverse storage needs. How do you guarantee fair allocation of resources for everyone?
No more next content
Explore Other Skills
- Programming
- Web Development
- Machine Learning
- Software Development
- Computer Science
- Data Engineering
- Data Analytics
- Data Science
- Artificial Intelligence (AI)
- Cloud Computing
More relevant reading
- Computer Repair How do you repair a computer's boot sector with command line tools?
- Operating Systems How can you recover an operating system with dual boot?
- Computer Science What is the difference between a kernel panic and a system crash?
- Operating Systems How do you undo changes that hurt your system performance?