Solved

Linux refuses to boot!

Posted on 2000-03-07
8
252 Views
Last Modified: 2010-04-20
Hi there,

I have a problem trying to get my linux PC to boot. The machine must not have been cleanly shutdown and now every time i try and boot it i get the following :-

...
...
INIT version 2.74 booting
Loading default keymap/etc/rc.d/rc.sysinit: /dev/null: Read-only file system    [FAILED]
Setting default font     [OK]
Setting hostname inet.com [OK]
Checking root filesystem

This is were it hangs, i get no disk activity at all, and i have left it for about 40mins+

Any help with this would be greatly appreciated.

Regards
Lee.

(By the way i am running RedHat 6.0)
0
Comment
Question by:LEEJG
[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
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2591274
It sounds like the state of the file systems at boot wasn't clean and fsck, when it ran, couldn't fix them. Try booting single user ("linux single" at the lilo boot prompt) and running fsck manually on each file system. You could have a damaged file system or, worst case, a failing disk drive. If it looks like the disk, it would be good to check the biso settings to be sure they haven't changed.
0
 

Author Comment

by:LEEJG
ID: 2591390
Hi jlevie

Thanks for you quick response :-)

I can now get to a bash# prompt and see my filesystem (Using "linux single"), but everytime i try and use :-

fsck -t ext2 /dev/hda5
or
fsck /
or
fsck -t ext2 /

I get the following :-
Parallelizing fsck version 1.14 (9-jan-1999)

With no disk activity at all or any messages.

Any Ideas?

Thanks
Lee.
0
 

Author Comment

by:LEEJG
ID: 2591399
also if i shutdown the PC again i get the original problem

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:bernardh
ID: 2593324
try the command e2fsck -p /dev/hdXX where XX is the device needed to get fixed, say /dev/hda5.

answer all questions with the default (usually yes or ignore). basically, e2fsck is run in similar situations as scandisk would be run during startup in a windows box.

after all the check, shutdown your box with the command: shutdown -r now, reboot or halt
0
 
LVL 3

Expert Comment

by:freesource
ID: 2593359
-p    Automatically  repair  ("preen")  the  file  system without any questions.

It's possible your superblock is corrupt, so you may have to do something like this:

e2fsck -b 8192 /dev/hdXX

You'd be better off doing all this from an emergency disk with the partition you want to fix unmounted.
0
 
LVL 3

Accepted Solution

by:
jyu_88 earned 200 total points
ID: 2594545
did you upgrade kernel or sth along that line lately? You also needs to upgrade  a package called 'e2fsprogs' or 'e2fsutils' whichever contains e2fsck.

I did a 5.2->6.1 jump and had similar problem. upgrade the above-mentioned pacakge, then, I am there.
0
 

Author Comment

by:LEEJG
ID: 2595276
Thankyou jyu_88, i downloaded the latest version and installed,

Its Now working!!!!!

Many thanks, to all the experts that have helped me.

Lee.
0
 

Expert Comment

by:ibwan
ID: 8562676
how to upgrade 'e2fsprogs' and upgrade kernel
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 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