/dev/hda1 contains a file system with erors, check forced
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/dev/hda1 contains a file system with erors, check forced
I bought an old IBM SureOnbe POS terminal for my daughter that contaions Linux as the operating system. I have never used Linux before. After starting the terminal two time it locked on me.
It gives the following messag:
/dev/hda1 contains a file system with errors, check forced
Duplicate or bad blocks in use!
/dev/hda1: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY
(i.e. without -a or -p options)
*** An error occured during the file system check
*** Dropping you to a shell: the system will reboot
*** When you leave the shell
Give rootpassword for maintenance
(or type Control-D for normal startup):
--------------------
I have connected a keyboard, and the system reacts to Control -D. However it does not react to any numers that I type and I do not know the rootpassword.
This is no small ball of yarn to unwind. There are several things to try. First of all, does this system have a CD-rom drive? If yes, then I would get a live CD and boot that, and use that to try and fix the disk problems.
If there is no other way to boot the system, you are stuck with trying to either guess the root password, or there are a few tools around to change it. Passwords are well protected on linux systems, they are in an encrypted file, so it is almost impossible to hack them.
I would guess this is a Red Hat system, since that is what IBM supported for a long time. ( and still does ).
Another approach is to buy a new hard drive, since we already know there are disk problems, that is not a bat approach. How are you at opening up a system, and removing, and replacing a drive? If you have little or no experience, it might be advisable to find some help. It isn't all that difficult, but there are things to know, like what type of drive it is. IDE, SCSI, SATA etc. If you are lucky, the drive is IDE. There are lots of inexpensive replacements around. If you change the drive, then you can install what ever you like.
Hope this helps.
BTW, if you post the Machine Type and Model, you can go to the IBM web sites and find lots of useful information, including the manuals in PDF format for the hardware.
Last edited by camorri; 11-08-2009 at 06:20 AM.
Reason: Added info.
The system does not have a CD, but it does have a floppy drive. I downloaded a program called Brub2 on a bootable CD and thoughtI might be able some commands that I found such as fsck. I was able to get to a Grub> comment prompt, but it does not recognize the fsck command. Any help on getting the fsck comment top work, or would this make no sence at all in my case.
I am afraid that changing the hard drive is not worth the investment, as I bought this registry as a toy for 25 bucks. It worked the first couple of times but went into trouble after we powered off the system with the powerbutton.
In linux when you type a passwd it will seem like nothing is happening, this is a safety feature. As you first boot the system do you get a Grub menu? If the system has Ubunut installed you may only see a prompt to Press Esc to get a Grub menu. Post back and let us know.
Just do a google search on how to recover a lost passwd on www.google.com/linux I could write it down for you but being your first post that may be against the LQ rules for me to do so.
Last edited by mrrangerman; 11-08-2009 at 07:17 AM.
Reason: add info
If I boot the system without the bootable floppy I get only the messages as mentioned in my first post on this subject. With the bootable floppy in the drive I get the Grub menu, but being a Novice I have no idea how I should use it. I do not know if Ubuntu is installed. It seams I only get access to comment promt via floppy.
Thanks a lot Michael for this great tip.
I have downloaded the zip-file on a windows system and now I will need to make
a bootable floppy from it. Theinstrcutions say that I need a dos-prompt (not in windows)to do this,
but I do not know how I get a dos prompt after start up, as this was a feature only under windows 95.
Any idea how I can get a bootable floppy under windows?
I realizethat this is a Linus forum, but the only way to get this floopy is under windows unfortunately.
Thanks again for your help.
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47
Rep:
Hmpf. When your machine boots up (before the operating system starts) have you a grub bootloader prompt ?. If so you could use this to boot into single user mode, change the root password, and run fsck manually.
Hmpf. When your machine boots up (before the operating system starts) have you a grub bootloader prompt ?. If so you could use this to boot into single user mode, change the root password, and run fsck manually.
I do not get a grub bootloader prompt at all. Is there any way to force this to happen? I only can get a promt when starting from a floppy, but in that case the fsck command does not work. Also I am a complete novice with Linux, so not sure how to get into "single user mode".
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47
Rep:
Quote:
Originally Posted by JFvdPol
I do not get a grub bootloader prompt at all. Is there any way to force this to happen? I only can get a promt when starting from a floppy, but in that case the fsck command does not work. Also I am a complete novice with Linux, so not sure how to get into "single user mode".
There's no countdown to select an operating system?
Try:
grub> find /boot/grub/stage1
(This will give a partition, needed for the next step..)
grub> root (hd?,?)
(Replace ? with what was received above, and finally..)
grub> setup (hd0)
Reboot. You should (if installed a newer grub, have a grub boot prompt at startup). From here you can edit the kernel bootup with argument '1' to boot into init 1.
It's probably an old Linux. Why not download Ubuntu, make a CD and reinstall?
Even if you can fix this (and the previous owner may have deliberately scratched the fs), why would you want something installed by unknown persons? It could be full of trojans for al you know. Yu say it was a POS terminal? It may not have much beyond the terminal app on it!
Overwrite it. She'll be happier with a modern Linux anyway.
It's probably an old Linux. Why not download Ubuntu, make a CD and reinstall?
Even if you can fix this (and the previous owner may have deliberately scratched the fs), why would you want something installed by unknown persons? It could be full of trojans for al you know. Yu say it was a POS terminal? It may not have much beyond the terminal app on it!
Overwrite it. She'll be happier with a modern Linux anyway.
The system only has a floppy and no USB to connect a cd player to it. It is over 10 years old. How to connect a CD-player in this case?
... Theinstrcutions say that I need a dos-prompt (not in windows)to do this,
but I do not know how I get a dos prompt after start up, as this was a feature only under windows 95.
Any idea how I can get a bootable floppy under windows?
In windows click on Start->Execute... (or run...) and type "cmd" and then Enter. This will start the so called dosshell. You may also find the dosshell somewhere under "All Programs" in Windows its called something like "cmd".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.