How to Recover a Red Hat Linux File System
- 1). Log into a terminal session.
- 2). Type the command "su" to switch to the root user.
- 3). Type "init 1" to bring the system down to single-user mode. This allows only a single user, or "root," to access the system.
- 4). Unmount the file system by typing the command "umount /home." Replace the word "home" with the name of the file system or hard disk that you want to check.
- 5). Type the command "fsck -y -t ext3 /home" to check the file system. Replace "ext3" with the correct file system type and "/home" with the correct file system or device. The "-y" option tells the utility to fix any problems it finds. The "-t" option defines the file system type.
- 6). Repeat step 5 until no more errors are reported.
- 7). Type "exit" to close the root session.
Source...