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 12-23-2004, 05:16 PM   #1
LQ Newbie
Registered: Dec 2004
Location: seattle
Posts: 2

Rep: Reputation: 0
Unhappy /usr/src

Hello my first post!

I installed slack 10 everything is A-ok. Except I found out /usr/src did not
have 2.4.28 tar.bz2--I was looking for /usr/src/linux. So I downloaded it.
I made a directory called linux-2.4.28. I cd'd into this unbzipped. Then another directory was made, linux-2.4.28. It's redundant directory name. Will this naming affect my recompiling efforts in the future?

I'm scared to do anything because of this.
Old 12-23-2004, 05:57 PM   #2
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 491

Rep: Reputation: 33
When you unzip a .bz2 file, it creates a new directory. Just delete the one you created.
Old 12-23-2004, 06:58 PM   #3
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
extract the .bz2 file, it will create a new directory, and leave the tarball as well. just move the newly-created dir to /usr/src. then cd into /usr/src, and create a link to the new dir:

ln -s linux-2.4.28 linux
Old 12-23-2004, 10:29 PM   #4
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
i think the kernel source directory has to be the actual compile directory where your kernel was built
not just a fresh source download
your distribution had no doubt a package kernel-source or whatever that is proper and installs to the right place.
The kernel can be built anywhere and the build directory will work just fine

/usr/src/linux is something left over from days long gone and was traditionally just a symbolic link to the current running kernel source directory -- this is no longer needed -- but shouldn't hurt anything
the proper link now is made when you install the kernel and is in /lib/modules/`uname -r`/build


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/??? iain.ross Linux - Software 5 08-24-2004 02:18 PM
Need to Untar into usr/src... supes Linux - Newbie 5 04-17-2004 04:01 PM
/usr/src ??? gibbylinks Red Hat 1 10-24-2003 03:05 AM
ls returns nothing in /usr/src harpreet Linux - Newbie 2 09-01-2003 08:02 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

All times are GMT -5. The time now is 12:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration