symbolic links
Ok so I have my 2.6 kernel installed and booting just fine with grub. However, I can't seem to make the symbolic link between by 2.6 kernel directory (/usr/src/linux-2.6.0) and the /usr/src/linux directory. I was trying to emerge a package in gentoo and it said the kernel version was not determined. I was trying to make the link with ln -s but it said linux/linux-2.6.0 : file exists. Is there something else I am doing wrong? I still have my 2.4 kernel installed as well, because I am still testing things with 2.6 before I commit.
|
did you do it the wrong way? :) I mean, the command goes like this:
ln -s source_directory symlink_name where source_directory is the dir you want to be linked (/usr/src/linux-2.6.0) and symlink_name is the name of the symlink you want to create (/usr/src/linux). the symlink_name component must not already be there, because if it does, it would be overwritten and that's not done. so if you did ln -s /usr/src/linux /usr/src/linux-2.6.0 then you got the error because a dir called /usr/src/linux-2.6.0 already exists (but on the other hand, there is no - or at least should not be - a thing called /usr/src/linux). so, to get this correct: 1) if you already have a symlink called /usr/src/linux, remove it: file /usr/src/linux (now this should print a line like this -> XXX: symbolink link to 'YYY' and if it does, then it is a symlink and can safely be erased. if you get an error which tells you that there is no such thing as /usr/src/linux, just move on, over the next step) rm /usr/src/linux 2) create the symlink to the 2.6.0 directory: ln -s /usr/src/linux-2.6.0 /usr/src/linux and you should be fine. |
Ok, you were right that worked just fine. I didn't know that the /usr/src/linux shouldn't have already been there ... I actually created that directory and tried to link it, but what you said makes sense. As always thanks for the help!
|
heh, no problem :)
|
Ok. Now how is it done in the GUI, KDE or Gnome. Please and thank you.
|
how to chnage existing symbolic link
Is anybodu knew how to chnage existing symbolic link?
i have created symbolic link ln -s <folder> <link folder> but now i want link another folder to the same link without using unlink command currenty linkfolder->folder then i tried ln -s <Another folder> <link folder> so it should be linkfolder->Another folder In short i want to override previous link is there any command for that? please let me know |
Quote:
"ln -sf source new_link" maybe this may help |
All times are GMT -5. The time now is 09:10 AM. |