cifs mount hang

Discussion in 'Linux Networking' started by zhscnd, Mar 13, 2014.

  1. zhscnd

    zhscnd New Member

    Joined:
    Mar 13, 2014
    Messages:
    2
    Likes Received:
    0
    I use mount -t cifs -o username=administrator,password=1234567890 //192.168.1.9/share /mnt/samba mount a shared directory of Windows. Then, use cp /mnt/samba/xxx.mpg /mnt/samba/yyy.avi copy the file. unplugged the machine(192.168.1.9)'s network cable when transferring the file. Now, the cp command was hang always.
    By looking at the cp's call stack, found the cp command hang in 0x00007f8009c42850 in close() from /lib/x86_64-linux-gun/libc.so.6.
    Is there any way to solve this problem? My operating system is ubuntu-12.04.3-server-amd64.
    thanks very much!

     
  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Joined:
    Aug 4, 2012
    Messages:
    1,868
    Likes Received:
    659
    don't disconnect the network cable?
     
  3. zhscnd

    zhscnd New Member

    Joined:
    Mar 13, 2014
    Messages:
    2
    Likes Received:
    0
    yes, I just want to know why the hung more one hours when disconnect the network cable. It is hung too long, why ?
     

Share This Page