Link to home
Start Free TrialLog in
Avatar of atu
atu

asked on

Login problem,Please help me.

I have used Linux for more than one month but I think It's the best OS I have ever used. But Today I had problem when I tried to login: Here are an error msg:
/dev/hda2 contain a file system with errors,check forced.
duplicate or bad blocks in use.
/dev/hda2:Unexpected in consistency: Run fsck Manually.
**** An error occurred during the file system check
*****Droping you to a shell; the system will reboot when you leave the shell.
Give root password for maintenance.
Then I logged in as root. I did man fsck .and I knew that It 's command for find and repair file system in Linux. But I lack of experience about using Linux and I'm just wondering how can I use it to repair files system of Linux in my computer correctly. So I would like you to help me to solve that problem.
Regards
Mark.  
Avatar of somberlain
somberlain

oh man somethin like this happend to me.  this is what I did.  I booted off my linux install disk, when it asked me to pass options instead of just hitting enter i did a

mount root=/dev/hda1

(linux is on /dev/hda1 of my machine)  then after I booted up I got a console and logged in as root.  then I just did a

fsck /dev/hda1

and it checked it and fixed it all up.  stuff like this is the reason why its good to save your install disks and/or make boot disks, im too lazy to make boot disks tho so my install disk is also my rescue disk :)

this is just posted as a comment.  I dont like to lock questions.  if this works and you want to give me the points let me know and i'll repost my comment as an answer.
ASKER CERTIFIED SOLUTION
Avatar of marcelofr
marcelofr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of atu

ASKER

Thanks for helping.
Cheers
Mark.