• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

great, another problem, my /usr/src is there and yet not there

Barnaby W. Füi

Elite Member
i wont explain, i'll just paste from a console and that should explain it for you.

c1816619-b:/home/death# cd /usr/src
bash: cd: /usr/src: No such file or directory

c1816619-b:/home/death# ls /usr/
X11R6 bin games include info lib local man sbin share

c1816619-b:/home/death# locate src
/home/death/.bbkeysrc
/usr/lib/mozilla/searchplugins/bugzilla.src
/usr/lib/mozilla/searchplugins/dmoz.src
/usr/lib/mozilla/searchplugins/google.src
/usr/lib/mozilla/searchplugins/lxrmozilla.src
/usr/lib/mozilla/searchplugins/mozilla.src
/usr/lib/mozilla/searchplugins/NetscapeSearch.src
/usr/local/src
/usr/share/apps/knotify/eventsrc
/usr/share/man/man3/wcsrchr.3.gz
/usr/share/man/man5/bbkeysrc.5.gz
/usr/share/mimelnk/text/x-c++src.desktop
/usr/share/mimelnk/text/x-csrc.desktop
/usr/src
/usr/src/linux-2.4.17
/usr/src/linux-2.4.17/linux
/usr/src/linux-2.4.17/linux/.config
/usr/src/linux-2.4.17/linux/.depend
/usr/src/linux-2.4.17/linux/.hdepend

ok it goes on and on there obviously, i'm not gonna paste all that.

so if i do a locate, /usr/src is there, yet when i try to do anything with it, it is gone. this is just after a kernel compile, wtf is going on?

and i am root while doing this.
 

locate searches a database of what your filesystem looked like last time updatedb was run
(probably by crond at about 4am the night before), so you can delete a file and still have it
be found in locate and slocate.

by the same token, you can add a file and have it not be found in locate...wont show up
until the next day (or until you manually run updatedb).

locate is kindof like the indexing service in win2k.
 
Well, the directory is not there.... at least /usr/src is not there. You checked that with the ls...

Now locate uses a database where it stores the list of all files in your system. You can find it there in
the database probably because it hasn't been updated yet (there's a command to do that, but most
distro have an automatic cron/at job to do it).

My best guess is that you erased without knowing...
 
But you could have moved it... mv command....

You compiled the kernel and did what next?? Moved the kernel image to /boot ?? How did you do it??
 
Use find instead of locate, it searches the current filesystem instead of a generated database.

find / -type d -name 'src' will find all directories named src.
 
One way to track what you did, assuming you use bash, and you havent typed in enough commands to push whatever you did out the back of the log, is to have a look in the ~/.bash_history file.
Search for all mv and rm commands, "more ~/bash_history|egrep 'mv|rm'".
 
Back
Top