By default after a kernel panic Linux just sits there and waits for a user to hit the restart button. That can be a bad thing if it’s a remote server.
To check if its enabled try this:
# cat /proc/sys/kernel/panic 0
The returned 0 is the time the kernel will wait before it reboots. If it is 0 or lower, it won’t reboot by itself.
To set the kernel to reboot do this command
# echo "5" > /proc/sys/kernel/panic
Where 5 is replaced with the number of seconds to wait till reboot after a kernel panic.
To check the time was set right do this:
# cat /proc/sys/kernel/panic 5
To make it more permanent do this:
# echo "kernel.panic=5" >> /etc/sysctl.conf
Adding the following to your kernel parameters in your bootloaders configuration might also help:
panic=5
NOTE: Substitute 5 with the number of seconds to wait till reboot after a kernel panic.
Source: http://gentoo-wiki.com/TIP_Kernel_Panic_Reboot
Posted by Hans-Henry Jakobsen
This is a great page with som nice bash scripts describing how to remove unwanted modules from your kernel.
Tags: bash, cut, grep, kernel, lsmod, modinfo, sed, xargs
Posted by Hans-Henry Jakobsen
By default after a kernel panic Linux just sits there and waits for a user to hit the restart button. That can be a bad thing if it’s a remote server.
(more…)
Tags: kernel, sysctl.conf
Posted by Hans-Henry Jakobsen
ISO images are files containing the data of a CD (almost bit per bit). They can be mounted, using the loopback device. ISO images can only be mounted read-only (use mkisofs to create images).
Kernel Requirements
To mount ISO images you need the following in your kernel(as module or builtin):
You also might want this for mounting non-linux ISO images:
Linux Kernel Configuration: Joliet CDROM Extensions(2.6)
File Fystems –> CD-ROM/DVD Filesystems
< *> ISO 9660 CDROM file system support
[*] Microsoft Joliet CDROM extensions
Mounting
To mount the ISO images, you’ll need to have root access. Login as root or use sudo, and execute:
mount -t iso9660 -o loop,user image.iso /wheretomount
Drop ,user if you don’t want users to access the ISO files.
Note: If this fails with an error concerning /dev/loop then as root issue the command:
# modprobe loop
Alternatively you may want to add loop to the list of modules that you autoload at boot:
# nano -w /etc/modules.autoload.d/kernel-2.6
and add loop to the bottom of your list of modules.
Hint 1: You can use cdemu to mount BIN images (It’s in portage). You can also use bin2iso to convert them to ISO (also in Portage).
Hint 2: You can use mdf2iso to convert MDF/MDS files to ISO (It’s in portage). Or you can mount a .mdf file with:
mount image.mdf /wheretomount -o loop=/dev/loop0
Hint 3: You can use nrg2iso to convert Nero’s .nrg files to ISO (It’s in portage). Or you can mount a .nrg file with:
mount -o loop,offset=307200 image.nrg /wheretomount
Hint 4: You can use ccd2iso to convert Clone CD’s .img files to ISO (It’s in portage).
SVCD and VCDs
SVCD and VCD ISO files can be played directly using mplayer or converted using mencoder.
Tags: dvd, iso, kernel, modprobe, mount
Posted by Hans-Henry Jakobsen