All pastes #261095 Raw Edit

_davi

public text v1 · immutable
#261095 ·published 2006-11-28 22:19 UTC
rendered paste body
TXT MAGICO v1.6 - Compilando Kernel no slackware 11 por _davi davialbuquerque@msn.com

cd /usr/src
cp /diretorioondeesta/linux-2.6.18.3.tar.gz .
tar -xvzf linux-2.6.18.3.tar.gz
rm linux
ln -sf linux-2.6.18.3 linux
cd linux
make menuconfig
altera / salva / sai
make bzImage
make modules
make modules_install
cp arch/i386/bzImage /boot/vmlinuz-2.6.18.3
cp System.map /boot/System.map-2.6.18.3
cp .config /boot/config-2.6.18.3
cd /boot
mv vmlinuz vmlinuz-old
mv System.map System.map-old
mv config config-old
ln -sf vmlinuz-2.6.18.3 vmlinuz
ln -sf System.map-2.6.18.3 System.map
ln -sf config-2.6.18.3 config
pico /etc/lilo.conf

Verifique se as linhas abaixo existem. (substitua o hdxx por sua particao linux)

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdxx
label = Linux
read-only
# Linux bootable partition config ends

e adcione esta apontando para o seu kernel antigo, em caso de kernel panic

# Linux bootable partition config begins
image = /boot/vmlinuz-old
root = /dev/hdxx
label = Linux_Antigo
read-only
# Linux bootable partition config ends

ctrl + o pra salvar / ctrl + x para sair
lilo
reboot 

Em caso de perda do Lilo, voce pode reconfigura-lo:

De boot com cd do slackware 11, no terminal digite:
mkdir /mnt/linux
mount /dev/hdxx /mnt/linux
chroot /mnt/linux /bin/bash