How to rebuild damaged file system in COREL Linux
In most other distributions, similar situation may occur.
This problem might occur, if for some reason LINUX was terminated improperly (for example power failure, or inadvertedly you turned off computer without going through normal Logout procedure).
You reboot, and get a screen with message "fsck failed. Please repair manually. CONTROL-D will exit from this shell and continue system startup". You are in console mode, the prompt is waiting for your input. Panic! What to do?
You press CONTROL-D, your computer reboots and then the same screen reappears!
The following procedure will usually repair your file system.
Here's How:
- If asked for root password: Type your root password - press ENTER
- At prompt Type: fsck /dev/hdax (where x = number of your root directory - see Note below) - press ENTER
- Wait and you will see a series of messages, starting with "Pass 1: Checking inodes, blocks and sizes"
- You will finally receive request for input, for example:"Pass 4: checking reference counts, Unattached inode xxxxx, Connect to /lost-found <y>?"
- Type: y - press ENTER
- You will receive a long string of messages, for example: " ..... count is ...., should be ...., fix <y>?"
- After each message, type: y - press ENTER
- Finally you will get message: "/dev/hdax *** file system was modified ***" followed by statistics of number of files, blocks etc.
- At prompt, type: exit - press ENTER
- System will reboot, hopefully successfully and normal splash screen will reappear. Your problem has been fixed!
Notes
- Depending upon the number of partitions in your system, your LINUX root directory may be /dev/hda1, /dev/hda2 or /dev/hda3. If you placed LINUX on a second hard drive, it might be /dev/hdb1 or /dev/hdb2