NFS 2.3-5 under Cygwin 1.5.25-15 Problem

Mike McWilliam pilot.mm@gmail.com
Mon May 11 06:19:00 GMT 2009


Hello All

        I am pretty sure I have found a bug with the NFS module. I
have checked the mailing list, web searches, and whatever else is out
there. I think this problem is unique. I just want to inform the
Cygwin Community so you are all aware.

        The remote windows machine has a USB drive attached. The NFS
server keeps mixing up the system drive with the USB drive. The mix up
seems to be random, sometimes the system drive is maping to the USB
drive, other times it is the other way around. Never are both drive
incorrectly mapped. Whether one is mapped to the other depends on how
the drives are mounted.

         I have given the information on my machines below. In
addition I have given the /etc/export along with exerpts of the bash
session. Hopefully that is enough information to get a handle on what
the bug is.

         I am going to make an attempt at installing the windows NFS
server. We will see how that works. So I am not totally stuck and at
the moment I don't need advice.

Take Care
Mike

========================
===     Remote machine      ===
========================

Windows XP with service pack 3
Cygwin Version: 1.5.25-15
NFS Version: 2.3-5



========================
===     Local Machine          ===
========================

Suse 10.0
Mount version: 2.12q
NFS Client Version: 2.12.3-2



========================
===     /etc/export (remote)    ===
========================

/                   192.168.0.100(rw)



========================
===     BASH SESSION:     ===
========================

# First Test with basic mount command
# The system drive (C:\) always maps to the USB drive (J:\)
# ==========================================

linux:/mnt # mount 192.168.0.105:/cygdrive/c /mnt/external_Drive/
linux:/mnt # cd external_Drive/
linux:/mnt/external_Drive # ls
.  ..  Archive  Linux  RECYCLER  System Volume Information  Windows
    # Note that this is the contents of the usb drive on J:\
linux:/mnt/external_Drive # cd ..
linux:/mnt # umount external_Drive

# Mounting with Different Options After Reading Posts
# At first the system drive behaves properly, but once accessing the
USB drive, the system drive maps to the USB drive
# ====================================================================================

linux:/mnt # mount -t nfs -o vers=2 192.168.0.105:/ /mnt/external_Drive/
linux:/mnt # cd external_Drive/
linux:/mnt/external_Drive # ls
.  ..  bin  cygdrive  Cygwin.bat  Cygwin.ico  dev  etc  home  lib
proc  tmp  usr  var
linux:/mnt/external_Drive # cd cygdrive/
linux:/mnt/external_Drive/cygdrive # cd c/
linux:/mnt/external_Drive/cygdrive/c # ls                # This
properly displays the contents of C:\
.             avi_log.txt  cygwin                  MSDOS.SYS     ntldr
        Program Files  Software                   TEC80
  VXIPNP
..            boot.ini     Documents and Settings  Nexus
Packages      Recycled       swp35                      temp
        WINDOWS
AUTOEXEC.BAT  CONFIG.SYS   IO.SYS                  NTDETECT.COM
pagefile.sys  RECYCLER       System Volume Information
tempSWBackupDirectory
linux:/mnt/external_Drive/cygdrive/c # ls ../d/         # This
properly displays the contents of D:\
.  ..  ANSYS110SP1_WIN32.zip  CFX110SP1_WIN32.zip
ICEMCFD110SP1_WIN32.zip  TAS110-105_WIN32.zip
linux:/mnt/external_Drive/cygdrive/c # ls ../e/          # This
properly displays the contents of E:\
.  ..  CFD_Instalation_Files  Config.Msi  ME_664_CFD  NREL_Design_Code
 Program Files  Recycled  System Volume Information  Windows
linux:/mnt/external_Drive/cygdrive/c # ls ../f/           # This
properly displays the contents of F:\
.  ..  Recycled  System Volume Information  tmp_Back_Up
linux:/mnt/external_Drive/cygdrive/c # ls ../g/         # This
properly displays the contents of F:\
.  ..  C_Drive_Temp_Backup  Recycled  System Volume Information
linux:/mnt/external_Drive/cygdrive/c # ls ../j/          # This
properly displays the contents of F:\
.  ..  Archive  Linux  RECYCLER  System Volume Information  Windows
linux:/mnt/external_Drive/cygdrive/c # ls                # Incorrectly
this displays the contents of J:\ the USB drive
.  ..  Archive  Linux  RECYCLER  System Volume Information  Windows
linux:/mnt/external_Drive/cygdrive/c # cd ..
linux:/mnt/external_Drive/cygdrive # cd ..
linux:/mnt/external_Drive # cd ..
linux:/mnt # umount external_Drive

# Mounting the seperate windows volumes to seperate folders
# This time the USB drive displays the contents of the system drive
# ===============================================

linux:/mnt # mkdir windows_box
linux:/mnt # cd windows_box/
linux:/mnt/windows_box # mkdir c d e f g j
linux:/mnt/windows_box # mount -t nfs -o vers=2
192.168.0.105:/cygdrive/c/ /mnt/windows_box/c
linux:/mnt/windows_box # mount -t nfs -o vers=2
192.168.0.105:/cygdrive/d/ /mnt/windows_box/d
linux:/mnt/windows_box # mount -t nfs -o vers=2
192.168.0.105:/cygdrive/e/ /mnt/windows_box/e
linux:/mnt/windows_box # mount -t nfs -o vers=2
192.168.0.105:/cygdrive/f/ /mnt/windows_box/f
linux:/mnt/windows_box # mount -t nfs -o vers=2
192.168.0.105:/cygdrive/g/ /mnt/windows_box/g
linux:/mnt/windows_box # mount -t nfs -o vers=2
192.168.0.105:/cygdrive/j/ /mnt/windows_box/j
linux:/mnt/windows_box # cd c/
linux:/mnt/windows_box/c # ls                # Correctly displaying
the contents of C:\
.             avi_log.txt  cygwin                  MSDOS.SYS     ntldr
        Program Files  Software                   TEC80
  VXIPNP
..            boot.ini     Documents and Settings  Nexus
Packages      Recycled       swp35                      temp
        WINDOWS
AUTOEXEC.BAT  CONFIG.SYS   IO.SYS                  NTDETECT.COM
pagefile.sys  RECYCLER       System Volume Information
tempSWBackupDirectory
linux:/mnt/windows_box/c # cd ..
linux:/mnt/windows_box # cd j/
linux:/mnt/windows_box/j # ls                # Incorrectly displaying
the contents of C:\ should be displaying the contents of J:\ the USB
drive
.             avi_log.txt  cygwin                  MSDOS.SYS     ntldr
        Program Files  Software                   TEC80
  VXIPNP
..            boot.ini     Documents and Settings  Nexus
Packages      Recycled       swp35                      temp
        WINDOWS
AUTOEXEC.BAT  CONFIG.SYS   IO.SYS                  NTDETECT.COM
pagefile.sys  RECYCLER       System Volume Information
tempSWBackupDirectory
linux:/mnt/windows_box/j # cd ..
linux:/mnt/windows_box # cd d/
linux:/mnt/windows_box/d # ls                # Correctly displaying
the contents of D:\
.  ..  ANSYS110SP1_WIN32.zip  CFX110SP1_WIN32.zip
ICEMCFD110SP1_WIN32.zip  TAS110-105_WIN32.zip
linux:/mnt/windows_box/d # cd ..
linux:/mnt/windows_box # cd e/
linux:/mnt/windows_box/e # ls                # Correctly displaying
the contents of E:\
.  ..  CFD_Instalation_Files  Config.Msi  ME_664_CFD  NREL_Design_Code
 Program Files  Recycled  System Volume Information  Windows
linux:/mnt/windows_box/e # cd ..
linux:/mnt/windows_box # cd f/
linux:/mnt/windows_box/f # ls                # Correctly displaying
the contents of F:\
.  ..  Recycled  System Volume Information  tmp_Back_Up
linux:/mnt/windows_box/f # cd ../g/
linux:/mnt/windows_box/g # ls                # Correctly displaying
the contents of G:\
.  ..  C_Drive_Temp_Backup  Recycled  System Volume Information
linux:/mnt/windows_box/c # cd ..
linux:/mnt/windows_box # umount c/
linux:/mnt/windows_box # umount d/
linux:/mnt/windows_box # umount e/
linux:/mnt/windows_box # umount f/
linux:/mnt/windows_box # umount g/
linux:/mnt/windows_box # umount j

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list