Solved

Login problem,Please help me.

Posted on 1998-07-22
3
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

623 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