LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-27-2010, 09:57 PM   #1
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Rep: Reputation: 15
Ubuntu 9.04 boot hangs at "/etc/rc2.d/s00stop-readahead start"


Made a stupid n00b mistake and now I can't recover. I wanted to see more info in the message logs during boot so I edited the /etc/init.d/rc file and removed the '#' before the debug line hoping that I would get more verbose bootup messages. Well, after rebooting the system hangs with the following as the last 2 lines on the screen:

/etc/rc2.d/s00stop-readahead start
splash_progress 133

I rebooted several times and it hangs at the same place.

I've tried the recovery boot, dropping to root shell to change the /etc/init.d/rc file back by adding in the # but apparently I am unable to write to the file (something about no swap available). So I can't get back into the system to change the rc file back to normal.

Appreciate any assisance in getting my rc file back to normal.
 
Old 04-27-2010, 10:23 PM   #2
phenyloxime
LQ Newbie
 
Registered: Sep 2009
Posts: 28

Rep: Reputation: 2
Maybe try using a recovery distro that you can boot from a cd or a usb-thumbstick (assuming you have access to another computer with which to burn the cd !). Boot into the recovery system and then fix the file.
 
Old 04-27-2010, 10:30 PM   #3
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
I was able boot into recovery mode using GRUB. Problem is that when I try to edit the rc file I'm not able to save the changes. In VI I get the error message "E303: Unable to open swap file for "/etc/init.d/rc", recovery impossible". Any clue about how to overwrite the rc file without reinstalling the entire distro?
 
Old 04-27-2010, 11:13 PM   #4
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
After looking around a bit more I found that if I add the following to the end of the kernel parameters on the recovery mode boot options:

rw init=/bin/bash

Once I booted into the recovery mode I was able to edit the rc file and re-comment out the debug line. All is good.
 
  


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
[SOLVED] There is no "menu.lst" in my Ubuntu "/boot/grub/" folder. msbstar Linux - Newbie 18 09-15-2012 02:26 PM
Boot hangs at "activating swapfile swap" in Ubuntu 9.04 gray53 Linux - Software 6 08-24-2009 06:41 AM
Ubuntu hangs on "Loading hardware drivers" during install.. help! sherwinan Ubuntu 9 01-21-2009 03:19 PM
LXer: Linux, 2.6.23-rc2,"-rc2 is the new -rc1" LXer Syndicated Linux News 0 08-04-2007 08:31 PM
kde 3.2 COnfigure desktop hangs, "start" meue freezes qwijibow Linux - Software 3 02-08-2004 06:06 AM


All times are GMT -5. The time now is 06:25 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