Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I managed to delete all of my initrd images in order to make space for new updates (I know - stupid)- is there a way to upload them back or do I have to reinstall my OS completely? I don't have the live cd, but I could download it onto a usb drive I suppose. And when I start my computer I can only access the grub of course.

I am fairly new to linux so please keep that in mind.

Thank you for your help, I really appreciate it, I'm going crazy without my computer.

share|improve this question

marked as duplicate by bodhi.zazen, Radu Rădeanu, Eric Carvalho, BuZZ-dEE, Florian Diesch Jan 6 at 21:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers 2

You can manually download the .deb package from the official repository server http://security.ubuntu.com/ubuntu/pool/main/l/linux/. Just use your web browser. There you have to find the kernel you need. In my case its called linux-image-3.2.0-35-generic_3.2.0-35.55_amd64.deb. So i made a folder in my home dir.

#mkdir linux-image
#cd linux-image
#wget http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-3.2.0-35-generic_3.2.0-35.55_amd64.deb
#dpkg -x linux-image-3.2.0-35-generic_3.2.0-35.55_amd64.deb .

Now you should see the files from this package extracted in the current directory.

#ls -l boot/
-rw-r--r-- 1 root root  792715 Dez  5  2012 abi-3.2.0-35-generic
-rw-r--r-- 1 root root  140505 Dez  5  2012 config-3.2.0-35-generic
-rw------- 1 root root 2885822 Dez  5  2012 System.map-3.2.0-35-generic
-rw------- 1 root root 4968400 Dez  5  2012 vmlinuz-3.2.0-35-generic

There are your searched files, Now you just need to copy them into the /boot folder from your system.

The initrd needs to be generated. I would recommend to boot from a live system, chroot into your old system, and generate it by update-initramfs -c -k <version>.

share|improve this answer
add comment

The same thing happened to me today. My volume was filled to capacity and I was forced to delete some files to make room but I deleted the initrd files from my old kernels (all of them) and now I am unable to boot to 13.10 and it gives me a Kernel panic error.

Can I just install a new kernel/intrd rather than fix the old kernels? I don't want to reinstall because that would erase my hard drive. If that's doable I prefer to just install a new kernel to go along with the upgrade of 13.10.

Thanks for your help!

-Fred

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.