LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Deleted Entire usr/src/linux Directory (https://www.linuxquestions.org/questions/linux-newbie-8/deleted-entire-usr-src-linux-directory-747207/)

JakeyHards 08-13-2009 02:38 AM

Deleted Entire usr/src/linux Directory
 
While going through the menuconfig process, I accidentally exited without saving, thus deleting my entire linux directory and therefore my kernel. Can someone let me know what I would need to do to fix this problem?

Finally making the jump to Linux after so long, and after about 10 tried at installing Fedora 11 off of two corrupt DvDs, I installed Slackware and am currently loving every minute of it, the help would be greatly appreciated.

jeromeNP7 08-13-2009 04:42 AM

The /usr/src/linux directory contains only source code for the kernel, but not the running kernel itself. Your system is not harmed otherwise. You can anytime download a full set of linux kernel code again. I assume that you didn't modify the kernel source code, but rather configured the building process - in that case you will have lost only your building configuration settings.

Linux

malekmustaq 08-13-2009 08:55 AM

JackyHards,

And if you want to get the same copies of kernel source codes and config you may get it from your installation CD, it is located at /mounted-CD-root/source/k
you may copy the "source" folder (for all available source codes) or only the "k" folder which contains the kernel source.

You can also obtain a new source from the web. Use google there are plenty.

hope this helps.

good luck.

vonbiber 08-13-2009 09:05 AM

Quote:

Originally Posted by JakeyHards (Post 3641511)
While going through the menuconfig process, I accidentally exited without saving, thus deleting my entire linux directory and therefore my kernel. Can someone let me know what I would need to do to fix this problem?

Finally making the jump to Linux after so long, and after about 10 tried at installing Fedora 11 off of two corrupt DvDs, I installed Slackware and am currently loving every minute of it, the help would be greatly appreciated.

you should keep a copy of your current kernel config somewhere,
so that whenever you need to build a new kernel you can use it to
make oldconfig

to make a copy of your config in, say, your home directory,
you do:

zcat /proc/config.gz > ~/config-$(uname -r)

and you'll get a filename with the current kernel
version you're using

As for the sources you can get the latest kernel from
this address:

http://www.kernel.org/


All times are GMT -5. The time now is 01:38 PM.