UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using Ubuntu 12.04. The update manager asked for updates and I clicked. After a successful update, I had to restart the machine. On restarting now I get this :
Code:
[1.333062] Kernel Panic - not syncing: No init found. Try passing init=option to kernal. See Linux Documentation/init.txt for guidance.
[1.333106] Pid: 1, comm: swapper/0 Not tainted 3.2.0-30-generic #48-Ubuntu
[1.333141] Call Trace:
[1.333177] [<ffffffff816418a7>] panic+0x91/0x1a4
[1.333213] [<ffffffff8163e2f6>] init_post+0xc5/0xc5
[1.333249] [<ffffffff81cfbd74>] kernel_init+0x164/0x164
[1.333284] [<ffffffff81664b74>] kernel_thread_helper+0x4/0x10
[1.333319] [<ffffffff81cfbc10>] ? start_kernel +0x3bd/0x3bd
[1.333354] [<ffffffff81664b70>] ? gs_change+0x13/0x13
Is there a way to fix this ? Similar errors show in recovery console so can't TTY from there.
[My machine has 2 SATA hard-drives, the 2nd one also has Ubuntu 12.04 which I can boot from]
The error that caused the problem is listed somewhere before the part you posted, where the kernel tells you that it's missing the drive that contains your root file system. (The drive is usually identified by a UUID=.... line in /etc/fstab, so you may have some error there.)
Since you can boot from your second drive it should be fairly easy for you to mount the root partition of the first drive and correct the problem.
You could just try running grub-mkconfig on the second drive. That should give you a grub.cfg file that will let you start Ubuntu from either drive.
The error that caused the problem is listed somewhere before the part you posted, where the kernel tells you that it's missing the drive that contains your root file system
I couldn't see any such text before this.
Quote:
Since you can boot from your second drive it should be fairly easy for you to mount the root partition of the first drive and correct the problem.
How ? I booted via the 2nd hard-drive and opened /media/85da....7f0a/etc/fstab and I get this :
Code:
proc /proc proc nodev,noexec,nosuid 0 0#/ was on /dev/sda1 during installationUUID=85da....7f0a / ext4 errors=remount-ro 0
usually it can't find the root drive when that error shows.
Switch on, Try hitting e on your choice of boot option, e again on the line that has the kernel on it. There's a 'root=<something> and that may be wrong. It wants the system root drive.
"[ 9.562270] init: failsafe main process (769) killed by TERM signal" is strange, but what generated the SIGTERM is not too clear from that extract. I notice, however, that this is from an attempted fail-safe boot. The first message file from which you posted the kernel panic message reported the panic after 1.33 seconds, while this last one lasted 9.6 seconds.
Look at the creation dates of the various dmesg.n.gz files to see if one of them might be a compressed, saved version of the messages generated by the boot that crashed.
Is there some reason why you can't post the whole dmesg file?
Last edited by PTrenholme; 09-11-2012 at 06:13 PM.
OK if you're getting that far into the boot, I withdraw the remark about not finding the root drive. So, something is crashing init. I see a Nvidia module and vesafb, and I predict that one will end in tears, but otherwise you haven't shown us an error.
As you can get in to the system, try adding the word 'debug' to the kernel boot line (manually if you like) to get more explicit messages, and try this command
ldd /sbin/init |grep found
to which the output should be nothing - nada. If it mentions anything, it's missing.
The debug option suggested by business_kid, above, might be helpful.
To add that option, boot your working system and, from a terminal window issue the command sudo gedit /media/85.../boot/grub/grub.cfg. Then page down in the file (or search for) the first line that starts with " linux /boot/vmlinuz..." and add " debug" at the end of the line and save the file.
Then reboot and try to boot the failing installation. After it fails, you should have some information in /var/log/syslog.
When I tested this procedure, I could display the interesting part of that file using the command grep 'Sep 12 12:' /var/log/syslog (The 'Sep 12 12:' selects the lines generated today (Sep 12) between noon and 13:00, which is when I rebooted my virtual Ubuntu system. Your date and time will, of course, be different. Do a tail /media/85.../var/log/syslog to see what you need to put in the search part of the grep command.)
[ 9.125973] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 9.125982] nvidia 0000:01:00.0: setting latency timer to 64
[ 9.125988] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none
[ 9.126126] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 295.40 Thu Apr 5 21:37:00 PDT 2012 [ 9.562270] init: failsafe main process (769) killed by TERM signal
[ 9.596784] vesafb: mode is 1280x1024x32, linelength=5120, pages=0
[ 9.596786] vesafb: scrolling: redraw
[ 9.596789] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 9.601601] vesafb: framebuffer at 0xe1000000, mapped to 0xffffc90009d80000, using 5120k, total 5120k
[ 9.602583] Console: switching to colour frame buffer device 160x64
[ 9.602609] fb0: VESA VGA frame buffer device
This seems to be it. It seems to be throwing out the Nvidia driver for some reason. Try a reinstall of that, as a first move. But there are/were issues with Nvidia drivers and newer kernels - and nvidia were not playing ball, last I heard. I'm using AMD/ATI myself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.