Solved

How to stop reboot after kernel panic?

Posted on 2006-07-19
6
582 Views
Last Modified: 2008-02-01
I am attempting to install xen-unstable. This appears to involve building a new kernel and booting from it.

The new kernel does not boot my machine. The boot starts, then I see some messages about loading various dm_ modules, then I see a failed attempt to locate any volume groups. This leads to not being able to find my root volume and shortly after this there is a kernel panic and the machine reboots.

How can I stop the reboot happening so that I can see what caused the panic? I know about the option to echo something into /proc, but this is not suitable as I don't get far enough through the boot process to be able to do this.

The machine started life as an FC5 machine, but is currently running the kernel from the latest xen-unstable. Or not running the kernel, as the case may be.
0
Comment
Question by:Anonymouslemming
  • 3
6 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 17141900
>I am attempting to install xen-unstable. This appears to involve building a new kernel and booting from it.

It does involve rebuilding a new kernel and booting from it:)

echo kernel.panic = 120 >> /etc/sysctl.conf

http://wiredgorilla.com/main/modules.php?name=News&file=article&sid=321

Assuming that the /etc/ directory is mounted ro at this stage of the boot process.

(   (()
(`-' _\
 ''  ''
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17142003
If earlier in the boot process, then:

echo 120 > /proc/sys/kernel/panic

changes the setting on the fly. Yo usay you don't get far enough through the boot process - I presume that you get to the 'grub' interface? I presume that this was the 'trick' that you couldn't use?

Adding

debug -b 3

at the end of the linux line in the grub loader causes the boot process to pause at certain locations with some kernels. (Type exit to continue).

Alternatively, you could try user mode linux until the kernel is up an running correctly:

http://user-mode-linux.sourceforge.net/

(   (()
(`-' _\
 ''  ''


0
 
LVL 5

Author Comment

by:Anonymouslemming
ID: 17142289
It turns out that the correct solution is to append noreboot to the kernel line (since the kernel is the xen hypervisor, not the Linux kernel).

Anything in proc won't work because no filesystems are being mounted, and sysctl mainly just writes to proc.
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17142350
You'll find that the Xen Hypervisor is in fact a Linux kernel, and although the file system is not mounted read/write, you can still access /proc after the initial part of the kernel booting process. I totally agree that the 'noreboot' on the kernel line is going to be the most elegant way to do it. . You need to put a Q in the Community Support TA for a points refund.

(   (()
(`-' _\
 ''  ''
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 17634936
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Postfix issues with spam/auth attempts under NAT 9 112
Backup Raspberri Pi over the netowrk to a Windows Share 5 52
ifconfig 4 72
plsql job on oracle 18 41
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

821 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