LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-28-2008, 10:08 AM   #1
raconway
LQ Newbie
 
Registered: May 2008
Location: Lille, France
Distribution: debian
Posts: 2

Rep: Reputation: 0
can't get to run level 2; /dev/root not a directory


Hello,

I'm in deep shit I think!

I picked up a new kernel image (2.6.24-1-686) using apt-get, along with some other stuff doing my weekly update-upgrade thing. I changed the lilo.conf file and ran lilo. I then rebooted, whereupon things went from good to catastrophic! The boot as such worked, but I got a "no more processes left in this run level" message.

I booted single user and that went ok but doing an init 2 gave me the same problem. Shunting all the stuff in /etc/rc2.d changed nothing. Booting the previous kernel changed nothing either! Running lilo -q gives me "/dev/root: not a directory", which it isn't - it's a (b) block device.

On the face of it my problem has nothing to do with the kernel but something to do with the apt-get upgrade, and needless to say I didn't pay any attention to what went on when I ran the command...

Has anyone got an idea of what is going on here: has someone put a spell on me or have I done something really stupid? What does the /dev/root message mean, i.e. should this be a directory or should it be a block device? What can I do about this? Is the /dev/root thing a symptom or is the no more processes being caused by something else entirely?

In other words, where do I go from here? Any ideas?

thanks,

Allen.
 
Old 05-28-2008, 10:26 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Get back into single user mode on the previous kernel and remove the new one. Change from Lilo to Grub (it's much better these days), then check the Grub menu.list in /boot/grub to see if everything is OK and reboot. Now, forget apt-get and start using aptitude. As from Etch onwards, the Debian dev's recommend aptitude over apt-get. Now try installing that new kernel again. (I used aptitude on Lenny for 2 servers and upgraded w/o any hassle to the 2.6.24 kernel)
 
Old 05-28-2008, 09:35 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
If you don't mind, I won't try to reproduce the problem on my server --that's I think the only machine I still use lilo.

It seems whether you have a problem with either lilo.conf or lilo itself. I bet on lilo.conf. Did you check this file against a known good one? AFAIK /dev/root doesn't appear anywhere. What happens if you do lilo -v -q?

Dutchmaster's suggestion to install grub is not elegant (because you don't find out your problem and it might hit you again) but it would be very effective though. Grub is easier to use.

I think I understand you are still able to boot in single user mode. So find oout how to use grub-install and go ahead. There are dozens of examples on the Internet, I won't repeat them here.

jlinkels
 
Old 06-10-2008, 07:50 AM   #4
raconway
LQ Newbie
 
Registered: May 2008
Location: Lille, France
Distribution: debian
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks both of you for the moral support! In fact the problem was very mundane and what I thought were symptoms were mirages for the unwary (i.e. me)

I think now that the "no more processes left in the runlevel" message must just be the way init (or Linux) says that all the scripts found in the rc2.d directory have been run.

The lilo problem with /dev/root was not significant. In any case following your advice, and the fact that I didn't know what to do, I swapped lilo for grub and aptitude for apt-get. So something good has come out of this humbling experience!

I eventually realised that the problem was all down to Xorg!! Something went amiss during an apt-get upgrade and modules that should have been there, weren't. I installed them and hey presto! I have a system I can use once more!

Moral of the story? Look carefully at the log files. Know what you're doing or keep copies of the log files that correspond to a working installation. Needless to say I'll be taking the 2nd route! Oh, and beware of updates - it may not be the software, it may be you replying wrongly to questions.

Thanks again, and sorry for all those sleepless nights I'm sure I gave you (you bet!).
 
  


Reply



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
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 04:55 PM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 03:31 AM
What is Run Level? Khmer Linux - General 5 10-18-2005 12:25 PM
Run Level 3 webwolf70 Mandriva 5 01-17-2005 10:41 PM
Run level Joey.Dale Linux - General 4 06-18-2003 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:11 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
Open Source Consulting | Domain Registration