LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2005, 01:59 PM   #1
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Rep: Reputation: 15
Question exportfs -r "command not found"


I am working on the network unattended installation of Mandriva linux and I have the following problem.

I have to create export files on my server computer and i have to copy whole installation cd in a directory on the server. After that I have to modify "/etc/exports" file which contain the line: "/nfscd/cdrom 192.168.5.0/255.255.255.0(ro,root_squash)" and then I have to update NFS exports using: "exportfs -r" command and then the computer reponds "command not found". How to solve this problem?

One more thing: there is a file name "exportfs.ko.gz" in "/lib/modules/2.6.11-6mdk/kernel/fs/exportfs" catalogue; I can reach this file in X but not in the shell. I am logged in as a root.

Any answer will be appreciated
 
Old 06-06-2005, 02:18 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's normally in /sbin or /usr/sbin, directories which are not noramlly on non-root path statements. if your'e su-ing to root you are likely to not be updating your path accordingly. try and use an absolute path or use "su -" instead of just "su"

the exportfs.ko.gz is a kernel module, not a program, you won't need to access it directly.
 
Old 06-06-2005, 02:27 PM   #3
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
"su -" didn't work, is there any other way to update paths?
 
Old 06-06-2005, 02:36 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
log in properly to root, from a real console - Ctrl + Alt + Fn
 
Old 06-06-2005, 02:41 PM   #5
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
ctrl+alt+f2

login: root
password: *********
[root@localhost ~]# su -
[root@localhost ~]# exportfs -r
-bash:exportfs: command not found
 
Old 06-06-2005, 03:00 PM   #6
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
As you see it didn't work, i am little bit angry
:-(
 
Old 06-06-2005, 04:44 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no point su-ing when you're already root.... let's just make sure it does exist first.... /sbin/exportfs or /usr/sbin/exportfs
 
Old 06-06-2005, 06:01 PM   #8
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
It doesn't exist there, but I think that I know what the problem is, I used automated installation on that computer and maybe file wasn't copied to hard drive during the installation.

I have a notebook and on that computer "exportfs" is present because it was a normal install, I think that I will use notebook as the server to test.

I have one more question. What is the easiest way to set up NFS server?

And one more: how to change network name?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
NFS problems - "/usr/sbin/exportfs" just hangs meeble Linux - Networking 4 07-03-2008 07:14 AM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
exportfs: /etc/exports:1 unknown keyword "show" ukrainet Linux - Newbie 2 12-15-2004 07:18 AM
Benoit's Alcatel - pppd call adsl "command not found" GM287 Linux - Networking 5 04-04-2004 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:40 AM.

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