Solved

Linux refuses to boot!

Posted on 2000-03-07
8
244 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
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
 
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
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.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change time in cron 4 65
Remove a folder in Linux 9 90
Hacked File Timestamps 4 47
Error Message during CentOS 7 Minimal Install 3 33
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.:
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…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now