Solved

Login problem,Please help me.

Posted on 1998-07-22
3
216 Views
Last Modified: 2010-04-20
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.  
0
Comment
Question by:atu
3 Comments
 

Expert Comment

by:somberlain
ID: 1637603
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.
0
 
LVL 3

Accepted Solution

by:
marcelofr earned 100 total points
ID: 1637604
somberlain is right. But he needn't to boot from floppy. All you need to check a filesystem is that it isn't mounted or mounted readonly, which is exactly the state you got when you gave root passwd for maintenance.

fsck -y /dev/hda2

don't ask you to confirm each repair... anyway, you won't repair it by hand, will you? When Linux boots, if it finds that a filesystem was not cleanly unmounted, it automatically fscks the filesystem. But if the error worth you to know, then you will have to do it by hand, for example if your disk has a bad block...

Good luck
0
 

Author Comment

by:atu
ID: 1637605
Thanks for helping.
Cheers
Mark.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now