nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux kernel deleted from /boot - how do I resinstall the kernel

This is a discussion on Linux kernel deleted from /boot - how do I resinstall the kernel within the Getting started tutorials forums, part of the Linux Getting Started category; If you have deleted the kernal from /boot by mistake, how will you reinstall the new kernel in linux rescue ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2007, 03:40 AM
Member
User
 
Join Date: Jul 2007
Location: Hyderabad
OS: Redhat RHEL, Solaris
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
vaibhav.kanchan is on a distinguished road
Default Linux kernel deleted from /boot - how do I resinstall the kernel

If you have deleted the kernal from /boot by mistake, how will you reinstall the new kernel in linux rescue mode?


You have entered a command and you get the error message bash: comamnd not found. who is responsible for this error message:

a) kernel b) shell c) command itself.
Reply With Quote
  #2 (permalink)  
Old 10-08-2007, 07:33 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Boot from the installation cd # 1
Type linux rescue at boot: prompt
Mount partition in r/w mode
Chroot partition (chroot /)
Install kernel from cdrom
Unmount cdrom and partition
Reboot the system
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 25-03-2008, 12:31 AM
Member
User
 
Join Date: Mar 2008
OS: Debian, Slackware, LFS
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
Tux-Idiot is on a distinguished road
Question

/boot is always in ro mode. unless its a kernel upgrade or kernel tweak process. how you deleted a file from read only mode?
alternate method:
if system is still alive?
mount -o remount,rw /boot
apt-get reinstall kernel-`uname -r`
mount -o remount,ro /boot
the alternate method is told by nixcraft. kudos to him/her!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Is Linux kernel is monolithic or modular kernel? chiku Linux software 3 27-08-2009 02:56 AM
problem with linux-2.6.12 kernel at boot time khadar Getting started tutorials 0 12-09-2007 03:38 PM
Display Linux kernel information sweta Getting started tutorials 0 27-07-2007 07:00 AM
Yum install kernel debuginfo packages kernel-debuginfo repo rockdalinux Getting started tutorials 0 15-06-2007 09:59 PM
What are the advances of Kernel 2.6 over Kernel 2.4 ricc Linux software 3 14-03-2006 12:42 PM


All times are GMT +5.5. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38