You are not logged in.
Pages: 1
I just tried to compile my own kernel (with help from the wiki), for the first boot it worked fine. Then I changed something in the kernel and rebooted but now I cant boot into my linux.. Is there a way of getting to a terminal and recompiling the kernel?
The ultimate Archlinux release name: "I am your father"
Offline
yes, boot from install cd and :
mount /dev/hda2 /mnt #assuming that your system is on hda2
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
chroot /mnt
cd /usr/src/linux
and recompile kernel, install boot loader, and reboot.
Greetings
Krzysiek Wojszko
Offline
One other thing. After you follow the advice already given, consider the following. Before attempting to run with a different kernel (one you compiled or one you got from somewhere else, like the Arch archives), always make a copy of a working kernel and modify grub's menu.lst so that at least one menu selection points to that working kernel. This way, when your new kernel fails to boot, you just reboot and choose the one that worked from your grub menu.
Offline
Do i have to use this specific command to compile the kernel:
make -s clean bzImage modules modules_install
I am used to only doing : make && make modules_install
in gentoo..
Cheers
The ultimate Archlinux release name: "I am your father"
Offline
I'm using by:
make bzImage modules modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz
cp System.map /boot
lilo
but its possible to use makepkg and pacman to install
Greetings
Krzysiek Wojszko
Offline
I am used to only doing : make && make modules_install
in gentoo
That's all I ever do in any distro.
Offline
make bzImage modules modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz
cp System.map /boot
lilo
If you change "modules_install" to "modules_install install" then the next three lines are done for you (plus previous kernel and system map saved as ".old"). If you use grub so have removed lilo, then the "lilo" bit may throw up an error that can be ignored.
Offline
All of that's fine - the "classic" way to handle your kernel. However, your kernel and related files are orphans as far as pacman is concerned. Personally, I don't like orphans on my systems, so I use ABS and pacman for my kernels.
Each to their own, of course.
Offline
Pages: 1