Troubleshooting Ubuntu Boot Problems
December 01, 2009 — Code
A few weeks ago my computer (then Ubuntu 9.04 Jaunty) froze. I rebooted and received this error message:
Kernel Panic -- not syncing: No init found. Try passing init= option to kernel
I eventually determined that the cause was a bad RAID controller, but you might see this message due to some other disk problem. You might also see a message like:
Target filesystem doesn't have /sbin/init. No init found. Try passing init= bootarg.
I was a little disappointed with the various message board posts out there for troubleshooting such boot problems so I thought I’d document what I did. Hopefully it will help someone.
First, boot from the Ubuntu Live CD (either to command line or X-windows with a terminal app) so you get a working system without using the hard disk. To check the filesystem and correct minor problems you want to run
fsck. First, you have to find the disk and partition:
sudo fdisk -l
Usually it will be
/dev/sda1 but look over the output of
fdisk to be sure. To run
sudo fsck /dev/sda1
If you get a message about a bad superblock you may be in trouble, otherwise there’s a decent chance
fsck will fix your drive so that you can boot normally again.
More CodeNov 06, 2008 Form Builders in Rails
Oct 06, 2009 Simulate Has Many Through HABTM
Dec 09, 2009 Single Table Inheritance in Rails
Jan 18, 2010 Anatomy of a Ruby Web Application
Mar 09, 2010 Sending Email From Your Web Site
Apr 13, 2011 What the ɊȱɁͲ Is UTF-8? A Character Encoding Primer
Jun 29, 2009 Punting on Feedzirra Dependencies
Sep 15, 2009 Build Web Applications In Static HTML