LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-12-2006, 03:08 PM   #1
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
help -- updated kernel -- lost commands


Hello everyone I just update my smp kernel to the most recent kernel and now when I try to use modprobe or depmod it can't find the commands

using whereis both are there but I guess my comp can't find them...

what can i do to fix this?
THanks,

Nomb
 
Old 08-12-2006, 08:47 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
I am guessing you are changing to root using ' su ' and not ' su - '. My guess is /sbin is not in you default users path. Using su only is switching to root but still using the users enviroment variables. But using ' su - ' will switch to root and use root's enviroment variables. So as ' su ' try using the command as ' /sbin/modprobe '.

Guess is if su worked before without /sbin then you may have upgraded a package and it has changed users enviroment variables.

Brian1
 
Old 08-12-2006, 08:55 PM   #3
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
hmm interesting

su doesn't work
su - does work

how can i update that?
 
Old 08-12-2006, 09:15 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
I have not figured out exactly where the default paths are actually located. The file it is in I believe is not editable. It is a compile file I believe. The easiest fix is to add the /sbin to your path.

Edit /home/username/.bashrc file and add this line to it.
export PATH=$PATH:/sbin

Logout and and back in.

Brian1
 
  


Reply


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
FC2 updated kernel and lost cd burner azebuski Linux - Hardware 1 09-29-2004 09:47 PM
lost wireless connection after i updated suse! mcalvink Linux - Wireless Networking 3 08-22-2004 03:59 AM
Updated nVidia drivers and lost sound and network wasaabi4784 Linux - Newbie 1 08-19-2004 12:40 PM
Updated to SuSE 9.1, installed nVidia drivers, now lost GUI!!! LittleAngel Linux - Hardware 8 05-31-2004 04:59 PM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 02:27 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration