LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Crash (https://www.linuxquestions.org/questions/linux-newbie-8/crash-125161/)

alcanon 12-12-2003 04:54 AM

Crash
 
I have my first time OS crash in Linux. My son inadvertently switch off the machine in the Linux environment without my knowledge. When I re-started the error messages were;

Your system appears to have shutdown uncleanly
WARNING: Couldn't open /etc/fstab: Input/output error
fsck.ext2/:

and it didnt continue to boot. I dont know how to repair it.
Pls help.

alcanon

Distro: Redhat 9.0

jkobrien 12-12-2003 07:00 AM

Do you have a rescue disk?

You just need to run fsck on your linux partitions.

John

alcanon 12-12-2003 07:44 AM

No rescue disk. I forgot to make one. Where to run fcsk? whats the syntax?

alcanon

BrianNJ 12-12-2003 07:58 AM

can't the installation cd be used as a rescue disk?

jkobrien 12-12-2003 08:13 AM

Yes it can. If your BIOS won't boot from cdrom, you'll have to enable it. That's system dependant so, if it's not, you'd have to work it out yourself - usually hit 'F12' or something during boot.

Then boot up with your installation CD, make sure your hard drives are unmounted and then, for example, 'fsck /dev/hda1', or 'fsck /boot'.

I don't know where fsck is on the CD's, but root around, it's there somewhere.

John

milhan 02-10-2007 02:03 PM

Quote:

Originally Posted by jkobrien
Yes it can. If your BIOS won't boot from cdrom, you'll have to enable it. That's system dependant so, if it's not, you'd have to work it out yourself - usually hit 'F12' or something during boot.

Then boot up with your installation CD, make sure your hard drives are unmounted and then, for example, 'fsck /dev/hda1', or 'fsck /boot'.

I don't know where fsck is on the CD's, but root around, it's there somewhere.

John

will an ubuntu installation or live cd work to fix a Fedora Core 3 /etc/fstab problem?

I, basically, have the same problem above. I am getting

Code:

error reading /etc/fstab: Input/output error
when i am trying to cat the /etc/fstab file. FC3 does not boot because of the problem on that file. the error when I am trying to boot FC3 is:

Code:

Warning: Your /etc/fstab does not contain the fsck passno field.
I will kludge around things for you, but you should fix your
/etc/fstab file as soon as you can.

fsck.ext2: Is a directory while trying to open /  (FAILED)

*** An error occured during the file system check.
*** Dropping you to a shell; the system will reboot when you leave the shell.

any help will be appreciated..

jkobrien 02-12-2007 05:07 AM

Hi cedid,

Sorry, I'm a bit rusty at all that stuff at the moment, but yeah the fsck tool on any installation cd should be essentially the same (some might have newer versions than others is all), and should be able to help you fix up your problems.

I haven't had to mess with it in a while - so please read up the man pages first though!

Good luck,

John


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