LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hda5 duplicate blocks. What to do as superuser? (https://www.linuxquestions.org/questions/linux-newbie-8/hda5-duplicate-blocks-what-to-do-as-superuser-105720/)

die-sanc 10-18-2003 08:19 PM

hda5 duplicate blocks. What to do as superuser?
 
Hi,
I got a message like this after unproper shutdown, Im starting with Linux, and Im not sure what I should do to fix this as superuser.
Thanks

/dev/hda5 contains a file system with errors, check forced.
/dev/hda5: Duplicate or bad block in use!
/dev/hda5: Duplicate blocks found... invoking duplicate block passes.
Pass 1B: Rescan for duplicate/bad blocks
/dev/hda5: Duplicate/bad block(s) in inode 20849:/dev/hda5:
84238/dev/hda5:
84238/dev/hda5:
/dev/hda5: Pass 1C: Scan directories for inodes with dup blocks.
/dev/hda5: Pass 1D:Reconciling duplicate blocks
/dev/hda5: (There are 1 inodes containing duplicate/bad blocks.)
/dev/hda5: File /var/log/messages (inode #20849, mod time Tue Feb 8
20:30:57
2000)
has 2 duplicate block(s), shared with 0 file(s):
/dev/hda5:
/dev/hda5: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
***An error occurred during the file system check.
***Dropping you to a shell; the system will reboot
***when you leave the shell
Give root password for maintenance
(or type Control-D normal startup):

Imyrryr 10-18-2003 09:51 PM

from here log in as your root password and run '/sbin/fsck.ext3 /dev/hda5' let it fix any problems and then restart the system correctly

I'm taking it for granted that you're running the ext3 file system if not you can run 'e2fsck -p /dev/hda5' if your running ext2 file system


All times are GMT -5. The time now is 07:07 PM.