Solved

Ubuntu Linux Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Posted on 2008-10-18
5
6,618 Views
Last Modified: 2013-11-15
Hi all,

I have a problem with my Ubuntu system.  Last week I was installing available updates.  I left my computer alone and my wife turned it off while the updates were still being installed.  Now I can't boot into Ubuntu.  This is the error that I get:

[     1.072000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

I don't really want to reinstall Ubuntu since I will take me days to customize it like I had it.  Can someone please help me recover Ubuntu on my machine?

Details:
Ubuntu 8.04 / dual boot with Windows XP Home Edition. (GRUB loader works fine and allows me to choose an OS; XP loads, but not Ubuntu)
0
Comment
Question by:ubuntuguy
[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
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:larsga
ID: 22749665
The general steps would be:
- Boot from a Live-CD (the normal Ubuntu Desktop install cd will do the job nicely)
- Mount the HD partition that Ubuntu is on as rw.
- chroot to the ubuntu partition
- Run whatever commands you need to repair your system (in your case, a "sudo apt-get update && sudo apt-get upgrade" should probably be sufficient)
- Exit from chroot
- Unmount the partition
- Reboot

A bit more details can be found at http://ubuntuforums.org/showthread.php?t=157250

If you get stuck at one of the points in my list above, please don't hesitate to ask (the exact commands / what you need to click depends a bit on what live-cd you use, the steps I listed above are generic instructions that should work no matter which Linux you have).
0
 
LVL 1

Author Comment

by:ubuntuguy
ID: 22750080
Thanks Iarsga,

I mounted the partition in which Ubuntu is.  The name is "41.9 GB Media".  The problem is that I don't get an option to mount as RW.  I can mounted, but I don't get an option for read/write. When I go to properties and click on permissions, it says "the permissions of disk could not be determined". Under properties-> Volume-> Settings, I get the following options.
Mount Point:
File System:
Mount Options:

Should I choose Mount Point = "/", File System = Ext2, Mount Options = RW? or something similar?
0
 
LVL 4

Accepted Solution

by:
larsga earned 500 total points
ID: 22750159
Are you able to see what the device node is (that is, something like /dev/hda2 or /dev/sda3)?

If so, open a terminal and do this:

sudo su
mkdir /mnt/rescue
mount /dev/hda3 /mnt/rescue      (replace hda3 with whatever the correct partition is)
mount -o bind /proc /mnt/rescue/proc
mount -o bind /dev /mnt/rescue/dev
chroot /mnt/rescue /bin/bash

If the above give no errors, you should now have the equivalent of a root shell on the Ubuntu Linux on your HD. Do the sudo apt-get update/upgrade and whatever else is necessary to repair it. Then you 'exit' or Ctrl-D to exit out of the chroot. Then 'umount /mnt/rescue' and do a reboot.

If the above gives an error (like /bin/bash not found), then your Linux install is probably spread over multiple partitions (one for /boot, one for / and one for /home, for example). If so, please give me the output of 'sudo fdisk -l' and we'll figure out which is which.
0
 
LVL 1

Author Comment

by:ubuntuguy
ID: 22750299
Great!!! Thanks Iarsga.  I got past the GRUB menu.  Ubuntu wouldn't boot at first.  Went into recovery mode and it fixed itself.  It drags a bit now after logging in, but I got my system running again.

Thanks a lot again.
0
 
LVL 4

Expert Comment

by:larsga
ID: 22750344
No problem. Doing recovery on a Linux system that fails to boot is really surprisingly easy once you know how to go about it, and is a skill that I wish more Linux users had.

The basic steps (boot from external media. mount the partitions(s) below some directory (example /mnt/recovery), chroot to this directory, do the commands needed to fix the system, exit chroot, reboot) are valid for pretty much any Linux system and lots of other Unix systems too.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SonarQube on Linux vs Windows 3 73
Linux Desktop suggestion for Dell Inspiron 3043 13 63
LogmeIn using Linux Ubuntu 16.04 6 109
IP 10.0.1.2 / 255.0.0.0 61 77
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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