Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    41

    /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

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    Are you sure nfs service is started - during booting?

    Try using
    exportfs -va
    for verbose mode.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    41
    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

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    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.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Posts
    41
    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.

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    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.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •