LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-16-2011, 08:48 PM   #1
mvmannheim
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 1
Boot problem after installing Ubuntu 11.04 - "Kernel panic - not syncing VFS"...


So I upgraded to Ubuntu Desktop v12.04. After doing so, I'm unable to boot the machine.

The complete error message is:
Code:
"Kernel panic - not syncing VFS; Unable to mount root fs on unknown-block(0,0)"
followed by some address and register data, I assume...

Somehow, I think GRUB isn't getting found/loaded.

I'm able to load the install CD and run a terminal as root. All of my files are in /home and it looks like the root partition is ok.

The fstab file looks like:

Code:
proc		/proc		proc		defaults		0		0
# /dev/sda1
UUID…   	/   		ext3    realtime,errors=remount-ro     0        1
# /dev/sda5
UUID… 	none		swap		sw			0		0
/dev/scd0	/media/cdrom0…
/dev/fd0		/media/floppy0…
If I run> parted -l:
Model: ATA HTS…(scsi)
Disk /dev/sda: 40.0GG
Sector size (logical/physical): 512B/512B
Partition table: msdos

Code:
Number	Start	End		Size		Type		File System		Flags
1		32.5kB	38.5GB	38.5GB	primary	ext3				boot
2		38.5GB	40.0GB	1546GB	extended
5		38.5GB	40.0GB	1546GB	logical	linux-swap(v1)

Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only. Error: Can't have a partition outside the disk!
If I run> parted check 2
or
> parted rm 2
Code:
Error: could not stat device check - No such file or directory
It seems that somehow the partitions 2 & 5 are beyond the size of the hard drive (40.0GB), but I don't know how to fix that.

Any ideas would be greatly appreciated!
 
Old 12-17-2011, 03:21 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
That error means it found the kernel but not the root filesystem.

Looking at fstab, this is wrong
# /dev/sda1
UUID… / ext3 realtime,errors=remount-ro 0 1

You need the UUID, or, simpler, put in sda1 for that one instead of UUID...

You can find UUIDs in /dev/disk/by-uuid or suchlike place. Do similarly fo0r swap.
 
Old 12-17-2011, 12:02 PM   #3
mvmannheim
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 1
business_kid - thanks for the reply. Actually, I intentionally shortened the UUID for the post. In reality the fstab file contains the full UUIDs in each case.
 
Old 12-18-2011, 11:06 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
OK - uuid is not the problem.

Here's my line from /boot/grub/menu.lst
Quote:
title Slackware-13.1-2.6.38.4-xxx Kernel
root (hd0,4)
kernel /vmlinuz-2.6.38.4-xxx root=/dev/sda8 ro resume=/dev/sda9 pcie_aspm=force
This is a poor example, because the partition numbers are all over the shop. But that highlighted option tells the kernel where to look for the root filesystem, and it needs to find / there. Your setting there must be wrong. So the kernel looks in the wrong place and says "Hey, that's not a root filesystem", and spouts the error you saw.
 
1 members found this post helpful.
Old 12-18-2011, 02:34 PM   #5
mvmannheim
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 1
business_kid - thanks so much for your help! That did it! For some reason my menu.lst file had the root parameter set to root=UUID=7395...

After setting root=/dev/sda1 everything boots swimmingly.

Much appreciated!
 
Old 01-18-2014, 09:54 PM   #6
52Dave
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
kernel panic?

I recently downloaded Ubuntu 13.10 to a bootable usb drive which worked just fine the first 5 or 6 times, but just as I was finally sold and tried to install ubuntu on my machine I suddenly got the "kernel panic" message as shown at top of this thread.
What's more my computer chucked a hissy fit and froze so I had to unplug the power and remove the battery to shut down.
Unfortunately I don't speak geek so I can't understand any of the solutions offered above (a failing on my part of course).
While boot/grub exists, boot/grub/menu.lst does not.
Can anybody explain this to me in plain english?
 
Old 01-18-2014, 10:30 PM   #7
Rubian
Member
 
Registered: Dec 2013
Distribution: Arch Linux
Posts: 116

Rep: Reputation: 18
Quote:
Originally Posted by 52Dave View Post
I recently downloaded Ubuntu 13.10 to a bootable usb drive which worked just fine the first 5 or 6 times, but just as I was finally sold and tried to install ubuntu on my machine I suddenly got the "kernel panic" message as shown at top of this thread.
What's more my computer chucked a hissy fit and froze so I had to unplug the power and remove the battery to shut down.
Unfortunately I don't speak geek so I can't understand any of the solutions offered above (a failing on my part of course).
While boot/grub exists, boot/grub/menu.lst does not.
Can anybody explain this to me in plain english?
Just make a new USB.
 
Old 01-19-2014, 02:45 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
if you don't have menu.lst, it may be called grub.conf

Also newer UEFI capable versions of grub do very strange things and all bets are off there.
 
Old 01-21-2014, 03:30 AM   #9
52Dave
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
Kernel panic

G'day business kid and rubian
That didn't really help me much but thanks anyway. I had already started again froms scratch by recreating the bootable drive and this time it worked so I installed ubuntu straight away and so far so good.
Any ideas on how I get Toshiba utilities and web cam to work?
 
  


Reply

Tags
boot failure, thinkpad, ubuntu 11.04



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] can't boot linux after moving drives - "Kernel panic - not syncing: No init found" ET_ Linux - Newbie 4 09-21-2010 05:16 AM
custom boot cd fails to boot with "Kernel panic - not syncing : vfs" ramachandra_ankireddy Linux From Scratch 1 11-23-2008 05:10 PM
PXE Boot Error: "Kernel panic - not syncing: Attempted to kill init!" veeruk101 Linux - Networking 1 07-18-2007 03:30 PM
"Kernel panic: VFS: Unable to mount root fs" - Kernel fails to boot linux Freedom Seeker Linux - General 11 11-12-2006 07:48 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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