LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack 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
Senior Member
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware 13.37 & Cyanogenmod 6.0
Posts: 4,073

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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
Senior Member
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware 13.37 & Cyanogenmod 6.0
Posts: 4,073

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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!
 
  


Reply

Tags
boot failure, thinkpad, ubuntu 11.04


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 01:03 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration