Kernel Panics (Italiano)

From ArchWiki
Revision as of 17:54, 18 February 2008 by Zmax (talk | contribs) (New page: Category: System recovery (English) Category:HOWTOs (English) {{i18n_links_start}} {{i18n_entry|English|:Kernel Panics}} {{i18n_entry|Español|:Kernel Panics (Español)}} {{i18n_e...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

This page describes how to fall back to a previously installed kernel version if the current one fails.

Start from the installation CD

The first step is booting the installation CD. When started, type arch, like you would when installing arch.

# arch

Chroot to your normal root

When booted, you have a small but working mini-Linux environment with some basic tools. Now, you have to mount your normal root disk to /mnt.

# mount /dev/hdXY /mnt

If you use a boot partition, don't forget to mount it

# mount /dev/hdaXY /mnt/boot

Newer kernels use an initial ramdisk to set up the kernel environment. When you reinstall a kernel, that initial ramdisk will be regenerated with mkinitcpio. One of mkinitcpio's features is that it does autodetection to find out what kernel modules are required for starting up your computer. For this autodetection to work, /dev, /sys and /proc need to mounted in your chroot:

# mount -t proc none /mnt/proc
# mount -t sysfs none /mnt/sys
# mount --bind /dev /mnt/dev

Now, we will chroot to this disk, so you can use it like you booted your computer "normal". Of course, a lot will not work.

# chroot /mnt

Roll back to previous kernel version

If you keep your downloaded pacman packages, you now can easily roll back. If you didn't keep them, you have to find a way to get a previous kernel version on your system now.

Let's suppose you keep the previous versions. We will now install the last working one.

# pacman -U /var/cache/pacman/pkg/kernel26-

Maybe you'll have to change the version numbers to the version that last worked for you, but it won't make a big difference.


Now the working kernel is reinstalled, you can safely reboot your PC, and boot your computer as usual. Don't forget to check the arch-newspage to check what went wrong with the kernel build.