Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Login problem,Please help me.

Posted on 1998-07-22
3
Medium Priority
?
221 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 400 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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 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…
Suggested Courses

715 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