How Check Disk Is Corrupted in Linux?
Contents What Is the Command to Check Disk in Linux? Linux Command to Check Disk Space Using: Df Command – Shows the Amount of Disk Space Used and Available on...
Contents
What is the command to check disk in Linux?
Linux command to check disk space using:
- df command – Shows the amount of disk space used and available on Linux file systems.
- du command – Display the amount of disk space used by the specified files and for each subdirectory.
How do I fix corrupt files in Linux?
Repair Corrupted File System
- If you don’t know the device name, use fdisk , df , or any other tool to find it.
- Unmount the device: sudo umount /dev/sdc1.
- Run fsck to repair the file system: sudo fsck -p /dev/sdc1. …
- Once the file system is repaired, mount the partition: sudo mount /dev/sdc1.