Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > /etc/exports file not read on boot

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 2 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 39
/etc/exports file not read on boot

I added some entries into my /etc/exports file. But when I boot my system, the file is not read. I check it by
Code:
sudo exportfs
— it returns nothing

Then I run
Code:
sudo expotfs -a
and then again
Code:
sudo exportfs
— and now all my exported folders are listed.

I'm running kubuntu 9.04
netimen is offline  


Reply With Quote
Old 2 Weeks Ago   #2 (permalink)
Linux Engineer
 
Lakshmipathi's Avatar
 
Join Date: Sep 2006
Location: 3rd rock from sun
Posts: 1,093
Are you sure nfs service is started - during booting?

Try using
Quote:
exportfs -va
for verbose mode.
__________________
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
Lakshmipathi is offline   Reply With Quote
Old 2 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 39
Quote:
Originally Posted by Lakshmipathi View Post
Are you sure nfs service is started - during booting?

Try using

for verbose mode.
How do I make it starting during booting?

I typed sudo exportfs -va and got
Code:
exporting NNN.local:/home/netimen/Documents
exporting NNN.local:/home/netimen/Pictures 
exporting NNN.local:/home/netimen/Videos   
exporting NNN.local:/home/netimen/Music    
exporting NNN.local:/
It exported all what I had asked it in config file
netimen is offline   Reply With Quote
Old 2 Weeks Ago   #4 (permalink)
Linux Engineer
 
Lakshmipathi's Avatar
 
Join Date: Sep 2006
Location: 3rd rock from sun
Posts: 1,093
Seems like you need to edit fstab file to mount NFS partitions.I googled out this redhat link. NFS Client Configuration Files

Note:
1.Take backup of fstab file before modifing it.
2.Beware: Wrong entry in fstab,won't allow you to boot the system .You should have Installation CD ,in order to login to "rescue mode" and correct the errors.
__________________
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
Lakshmipathi is offline   Reply With Quote
Old 2 Weeks Ago   #5 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 39
Quote:
Originally Posted by Lakshmipathi View Post
Seems like you need to edit fstab file to mount NFS partitions.I googled out this redhat link. NFS Client Configuration Files

Note:
1.Take backup of fstab file before modifing it.
2.Beware: Wrong entry in fstab,won't allow you to boot the system .You should have Installation CD ,in order to login to "rescue mode" and correct the errors.
No, not that. The problem is I can't even manually mount the folders my system exports on other machines until I manually type sudo exportfs -a on my system

I'd have to edit the fstab file if I wanted to mount some folders exported by other machines on my system.
netimen is offline   Reply With Quote
Old 1 Week Ago   #6 (permalink)
Linux Engineer
 
Lakshmipathi's Avatar
 
Join Date: Sep 2006
Location: 3rd rock from sun
Posts: 1,093
Quote:
The problem is I can't even manually mount the folders my system exports on other machines until I manually type sudo exportfs -a on my system
Sorry for the delay.(I'm on a vacation leave ) If this is your problem "I can mount local directories on remote machines only after running exportfs command on local machine". then I believe it's standard procedure to export directory.
First edit /etc/exports file and then use exportfs command to complete the task of exporting files to remote machines.
__________________
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
Lakshmipathi is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:37 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2