LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2009, 03:38 AM   #1
JakeyHards
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Question 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.
 
Old 08-13-2009, 05:42 AM   #2
jeromeNP7
Member
 
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
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

Last edited by jeromeNP7; 09-04-2009 at 09:55 PM.
 
Old 08-13-2009, 09:55 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,615

Rep: Reputation: 441Reputation: 441Reputation: 441Reputation: 441Reputation: 441
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.
 
Old 08-13-2009, 10:05 AM   #4
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 420

Rep: Reputation: 86
Quote:
Originally Posted by JakeyHards View Post
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 09:43 AM
invisible directory /usr/src/linux-2.6.21... PankajDS Linux - General 1 01-17-2008 02:28 PM
updating kernel, no '/usr/src/linux' directory? rubbercash SUSE / openSUSE 2 04-30-2005 02:00 PM
cd /usr/src cd linux no such file or directory Peacedog Slackware 2 12-31-2003 04:20 PM
Kernel Compiling not possible, Directory /usr/src/linux-2.4 isn't there rover Linux - Software 4 09-24-2003 09:05 AM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration