NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
kernel files gone from boot partitionHi I just installed deb 4.0 dec.07 release via the internet, i downloaded the 40MB installer and off it went. all was cool during installation, but it would not boot into the system afterwards, no prob me thinks, thats just grub not set up right on the boot partition, so i restored an image (of the boot partition) that i dd'd earlier (but was set up for RHEL5) thinking that i could just copy the kernel files over again and update grub.conf. so, where are these kernel files (2.6.18-5-k7)? i cant find one to put on the boot partition. i downloaded the 640meg iso for my platform and booted to that but still cant find a kernel file? RHEL5 left a copy of the kernel on the main filesystem so i could just copy it back, but the debian install has made them links back to the boot partition so they are useless to me. i dont know how to install a kernel other that going through the whole install process again. it feels like such a simple thing to do, any and all help would be greatly appreciated. Jayse |
kernel files gone from boot
Did you remember to ask to have a kernel installed during the install process?
The easiest way to install just the kernel would go something like this:
1. Boot from a live CD (Ubuntu/Kubuntu/whatever) or from the install disc.
2. Get a command prompt (on the install CD, press [alt][F2] after you have selected a keyboard, language, and gone through the 'detect network' part - 'detect network' really means 'detect hardware')
3. mount your final system's root filesystem on some directory
cd /
mkdir myroot
mount /dev/hda1 /myroot (assuming /dev/hda1 is your rootdir)
If you have multiple mounts within root, mount them too:
mount /dev/hda2 /myroot/home
4. (re)mount a few special directories:
mount --bind /dev /myroot/dev
mount --bind /sys /myroot/sys
mount --bind /proc /myroot/proc
5. Switch to your installed system's root:
cd /
chroot /myroot /bin/bash
6. use the APT tools to find and install a kernel; if you added the install CD to the repository list during installation then life is easy:
apt-cache search "linux-image"
apt-get install linux-image-2.6.22-3-i686 (just an example)
7. adjust your bootloader configuration if necessary; for lilo, edit /etc/lilo.conf and run 'lilo'; for 'grub' just edit /boot/grub/menu.lst
8. reboot and hope it all works
kernel files gone from boot
nice one pinniped,
that worked a treat :)