Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-03-2004, 07:31 PM   #1
LQ Newbie
Registered: Apr 2004
Location: I come from Surrey
Distribution: mandrake 9.2/Windows XP
Posts: 1

Rep: Reputation: 0
Exclamation /usr/src/ what was supposed to be in it?

I did something incredibly smart when i was trying to recompile my fedora kernel. First i tried using the 2.6test1 rpm but it didn't work out for me.
Then i tried the 2.6.4 rpm where i got further but i got stuck cause it wouldn't let me make xconfig...anyways it was gettin kinda messy in there. For reasons unknown I decided to delete all the stuff in there so...i guess my question is was what is supposed to be in there by default and how or where can i get it back? My fedora seems to be running fine still but when i try to tar any of the 2.6 rpms it won't let me and gives me this

[root@localhost src]# tar xjvf linux-2.6.4-.tar.bz2
tar (child): linux-2.6.4-.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Old 05-03-2004, 07:45 PM   #2
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
there should be the linux kernel sources for development purposes (if the distro is well put together (in other words the makers didn't do anything stupid) then you can remove this directory without a problem , and still be able to use the machine...... however if the distro don't do like it should, then there will be sym-links from /include to the kernel sources (something that is highly NOT recommended))

to see if you actually need the kernel sources type

ls -l /include/asm

if its a sym-link it should point to the kernel sources, in that case you'll have to get the sources for the kernel you are currently running, a reinstall maybe?... but its not necessary unless you will be compiling from source codes)


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
/usr/src SeattleSux Linux - Newbie 3 12-23-2004 10:29 PM
/usr/src/??? iain.ross Linux - Software 5 08-24-2004 02:18 PM
/usr/src ??? gibbylinks Red Hat 1 10-24-2003 03:05 AM
/usr/src/linux ?? Ekpyrotic Linux - Newbie 6 07-16-2003 10:14 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:27 PM.

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