eggster34
asked on
CHKDSK /R Equivalent for Linux
Hi,
I need to run a disk utility on RHEL 4 to scan for and automatically fix disk problems, like the CHKDSK /r command would do in Windows. What should I do?
I need to run a disk utility on RHEL 4 to scan for and automatically fix disk problems, like the CHKDSK /r command would do in Windows. What should I do?
What file system? There "e2fsck" for ext2/ext3, "reiserfsck" for reiserfs, "xfsck" for xfs, etc...
use the command fsck
please see man fsck
please see man fsck
you can fsck directly. If will run in teractive mode ask you for input in case of corrections needded. if you want to repair all then run fsck -y
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
As root, you can force a file system into read-only mode. Then it is OK to fsck it. The procedure is documented in "man mount". E.g.:
mount -oro,remount /
do fsck (with ext3, you usually need to do fsck -f)
mount -orw,remount /
mount -oro,remount /
do fsck (with ext3, you usually need to do fsck -f)
mount -orw,remount /