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
Solved

Linux : unable to boot : Kernel panic

Posted on 2012-12-26
14
902 Views
Last Modified: 2013-01-07
Hello,

After restarting my server, i receive a "Kernel panic : not syncing vfs unable to mount root fs on unknown-block"
The distro is : ubuntu-server 10.1 and i have a rescue disk where i have try in chroot to :

apt-get purge linux-image
update-grub

to fix the boot sequence like some guides founded on web but nothing change and i stay with my kerne-panic

Appreciate any  help

Thanks in advance
0
Comment
Question by:SA-IT
14 Comments
 
LVL 1

Expert Comment

by:odintsov
ID: 38720985
Hello,

Could you show full kernel boot log (not only error about vfs)?
0
 
LVL 44

Expert Comment

by:Darr247
ID: 38721180
I believe when you do
apt-get purge linux-image
you need to specify the latest kernel or it doesn't know which one to uninstall.
You should find those in the /boot/ subdirectory.
0
 

Author Comment

by:SA-IT
ID: 38721206
Hi Odintsov,

I found nothing on /var/log except outdated logfiles.
My kernel does'nt boot at all and the exact message is : "kernel panic 1.645097 : not syncing vfs unable to mount root fs on unknown-block"

My Linux system is installed on virtual machine but there is nothing changed on my environment.

I think system is trying to boot on a kernel who isn't install
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:SA-IT
ID: 38721213
Hi Darr247,
I have specified the kernel and with the "uname -a" commande i have see that the downgrade process successfuly .
I have made a "update-grub" and "upgrade-grub2" but i'm not sure grub is used on my server.

thanks for all
0
 

Author Comment

by:SA-IT
ID: 38721310
I have found way to display grub menu ( hold shift key ) and in rescue mode i have somes informations maybe usefull

(Look at the capture)

Thanks for all
0
 

Author Comment

by:SA-IT
ID: 38721365
i have found that my /boot partition was full.

there is probably the reason cause the issue?
0
 
LVL 44

Expert Comment

by:Darr247
ID: 38721717
How many kernels are installed?

What version of grub do you have, exactly?
Run
grub-install -v
to find out.
In 1.99 and newer, it only shows you the latest kernel in its menu, and you have to choose the Previous Linux versions
entry to display a list of the older kernels (on the initial menu it should also offer a chance to run memtest86). If you have 8 or 10 older kernels, you might want to pare those down to 3 or 4 to make more free space on your /boot partition... uninstalling/purging the oldest images first. I would reboot between removing each one, so if something goes wrong, you'll know at exactly what point it messed up. It's a good idea to keep at least 2 backup kernels in case you discover incompatibilites in the newest kernel[s].
0
 

Author Comment

by:SA-IT
ID: 38723351
Hi Darry,

There was a lot of kernel installed but i have cleaned yesterday with "apt-get remove linux-server-2.6.32-3*" to remove all version except last relase 2.6.32-45.
My grub version is 0.97

I have successfully power on my machine on very old kernel yesterday but with no eth  interface. Now
this is a list of files on /boot
 list on /boot
0
 

Author Comment

by:SA-IT
ID: 38723368
It's really strang because when i hold shift key on boot i get a grub menu where the version is différent

grub2?
Thanks all for ur help
0
 
LVL 44

Expert Comment

by:Darr247
ID: 38723888
You may have 0.97 installed, but grub 1.98 (as shown in the screen cap above) is being used.

0.97 is "legacy grub"; 1.98 and later is called grub2 (1.97 was grub2 beta).

You should refer to https://help.ubuntu.com/community/Grub2
for complete instructions to understand your version of grub... you can't just edit menu.lst like with legacy grub (grub2 does not use menu.lst at all... if it's present, that's because you have 0.97 installed, too).
0
 
LVL 62

Expert Comment

by:gheist
ID: 38734308
purge deletes everything ignoring dependencies. Congratulations with uninstalling kernel. Sort of there is a copy con kernel on install CD/DVD which you can install using upgrade procedure.

Effect will be similar removing upstart/initscripts and/or libc or lvm2.... Just some packages are needed to boot the system..
0
 

Author Comment

by:SA-IT
ID: 38750141
I have simply reinstall my server from scratch.
Thanks all for all proposition.
Best regards
0
 
LVL 44

Accepted Solution

by:
Darr247 earned 500 total points
ID: 38750537
In http:#a38721717 I said:
I would reboot between removing each one, so if something
goes wrong, you'll know at exactly what point it messed up.
It's a good idea to keep at least 2 backup kernels in case you
discover incompatibilites in the newest kernel[s].

Do keep that in mind in the future when removing old kernels.
0
 

Author Comment

by:SA-IT
ID: 38750647
thanks for advices
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remote desktop Ubuntu from Windows 10 5 92
error log using ftp 7 56
Web resource - Man pages for SUSE Enterprise Linux 11 1 41
Linux MD5 Hash 7 37
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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