LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-07-2003, 12:25 PM   #1
chingasman
Member
 
Registered: Dec 2002
Location: Orange County, CA
Distribution: Mandrake 9.0 x2
Posts: 91

Rep: Reputation: 15
Changing kernel source folders


I need to change my kernel source folders. Currently its in /usr/src/linux-2.4.19-16mdk and needs to be in usr/src/linux
what steps should be taken to change the folders or do i just change the linking of the linux to the linux-xxxx folder?
 
Old 01-07-2003, 01:07 PM   #2
jetfreggel
Member
 
Registered: May 2002
Posts: 172

Rep: Reputation: 30
mv /usr/src/linux /usr/src/linux.old
mv /usr/src/linux-yourversion /usr/src/linux

good luck
 
Old 01-07-2003, 05:28 PM   #3
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
You'll usually want /usr/src/linux to be a symlink to the actual sources for the kernel you're using, i.e. /usr/src/linux-<version>.
It makes it simple in case you keep mutiple sources/kernel.
So, if you switch kernel or add a new one, you just delete the old link,
rm /usr/src/linux
and create a new one to the kernel you want to use/compile
ln -s /usr/src/linux-<version> /usr/src/linux.

This way /usr/src/linux always point to the source of the kernel in use.

HTH
 
  


Reply



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 Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM
Changing Access To Folders John_Emad Linux - Security 9 01-03-2005 01:52 AM
Changing ownership of folders Nurfen Linux - Newbie 1 08-01-2004 12:00 PM
Changing permission of folders and subfolders pablowablo Linux - Newbie 2 07-28-2004 12:11 AM
changing kernel source transeunt Linux - Newbie 2 12-10-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:59 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
Open Source Consulting | Domain Registration