LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-08-2009, 03:15 AM   #1
JFvdPol
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
Angry /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.

Does anyone have any idea what to do now?
 
Old 11-08-2009, 06:19 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,151

Rep: Reputation: 504Reputation: 504Reputation: 504Reputation: 504Reputation: 504Reputation: 504
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.
 
Old 11-08-2009, 06:54 AM   #3
JFvdPol
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 11-08-2009, 06:55 AM   #4
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
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
 
Old 11-08-2009, 07:08 AM   #5
JFvdPol
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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 for helping me.
 
Old 11-08-2009, 07:35 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,812

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
http://www.toms.net/rb/

This is a complete OS and should be able to repair the disk. I would guess that this system uses an ext2 filesystem. Boot the floppy and run e2fsck.

Last edited by michaelk; 11-08-2009 at 07:37 AM.
 
Old 11-08-2009, 08:06 AM   #7
JFvdPol
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 11-08-2009, 08:14 AM   #8
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
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.
 
Old 11-08-2009, 08:37 AM   #9
JFvdPol
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JamesChamberlain View Post
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".
 
Old 11-08-2009, 08:46 AM   #10
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
Quote:
Originally Posted by JFvdPol View Post
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.
 
Old 11-08-2009, 09:31 AM   #11
JFvdPol
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
http://www.toms.net/rb/

This is a complete OS and should be able to repair the disk. I would guess that this system uses an ext2 filesystem. Boot the floppy and run e2fsck.
Is there any way to do this from Windows XO or do I need to install Ubuntu?
 
Old 11-08-2009, 09:51 AM   #12
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
My first thought:

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.
 
Old 11-08-2009, 09:58 AM   #13
JFvdPol
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pcunix View Post
My first thought:

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?
 
Old 11-08-2009, 10:02 AM   #14
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello JFvdPol and welcome to LQ,

Quote:
Originally Posted by JFvdPol View Post
... 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".

Markus
 
Old 11-08-2009, 10:25 AM   #15
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
Quote:
Originally Posted by JFvdPol View Post
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?
If it has IDE ( and it almost surely does), you can connect an IDE CD.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/hdc1 contains a file system with errors, Check Forced mvrieze Slackware 5 01-10-2012 10:24 AM
LXer: Forced File System Check After 30 Boot Ups - How to Improve it. LXer Syndicated Linux News 0 04-15-2008 01:20 PM
File system check forced tytower MEPIS 1 01-15-2007 02:09 PM
Forced Root File System Check? snobird Linux - Newbie 5 11-20-2006 10:17 PM
Boot process dies during forced file system check mepaco Fedora - Installation 1 04-11-2006 07:42 AM


All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration