Board logo

標題: mounting a win7 share drive to linux [打印本頁]

作者: ciscotomx    時間: 2014-12-17 04:17     標題: mounting a win7 share drive to linux

I found this problem not only happen for linux world (android, raspberry Pi, debian etc..)..

I have a win7 PC, with 5 HDD in it. and they all share out:
HDD1 MBR
HDD2 MBR
HDD3 GPT,
HDD4 MBR
HDD5 MBR

I found I can only mount the HDD3 successfully, and the same config just can't mount the rest MBR HDDs, however access from another windows PC is totally ok.

when I tried to mount those MBR HDDs, I got the error(5) message:
pi@Raspyfi:/home$ sudo mount -a
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Using the same command/config for MBR HDD just won't work..
any Ching here met and solved the same problem? can you share a bit?

Thanks!
作者: 4c39    時間: 2014-12-17 14:10

Are you using Windows 7's Network share? If yes, use mount.cifs.
作者: ciscotomx    時間: 2014-12-17 14:18

回覆 2# 4c39


    yes. but why one of the drives can mount successfully while the rest just can't make it? this really bothers me..
作者: sunlite    時間: 2014-12-17 16:34

回覆 1# ciscotomx

please also post your fstab
作者: ciscotomx    時間: 2014-12-17 20:09

本帖最後由 ciscotomx 於 2014-12-17 20:13 編輯

回覆 4# sunlite


    my fstab looks like this:

/dev/mmcblk0p3 /               ext4    noatime,nouser_xattr,errors=remount-ro 0   1
/dev/mmcblk0p1  /boot        vfat    utf8            0       0
Ramdisk   /run/shm        tmpfs   defaults,size=256M,noexec,nodev,nosuid       0   0
//192.168.1.28/e      /home/pi/NAS/Music      cifs    sec=ntlm,username=NAS,password=xxx,_netdev,dir_mode=0777,file_mode=0777      0       0
//192.168.1.28/f      /home/pi/NAS/pdf         cifs    sec=ntlm,username=NAS,password=xxx,_netdev,dir_mode=0777,file_mode=0777      0       0

when I run mount -a
pi@Raspyfi:~$ sudo mount -a
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
pi@Raspyfi:~$

only //192.168.1.28/e got mount successfully
作者: sunlite    時間: 2014-12-19 18:36

回覆 5# ciscotomx

please also post the output of
$ smbclient -L 192.168.1.28
   
You can cut out other unrelated stuff.
作者: toylet    時間: 2014-12-19 18:37

提示: 作者被禁止或刪除 內容自動屏蔽
作者: ciscotomx    時間: 2014-12-19 20:36

回覆 6# sunlite


    pi@Raspyfi:~$ sudo smbclient -L 192.168.1.28
WARNING: The security=share option is deprecated
Enter root's password:
session request to 192.168.1.28 failed (Called name not present)
session setup failed: NT_STATUS_LOGON_FAILURE

eh.. how to use the username option?
作者: ciscotomx    時間: 2014-12-19 20:37

回覆 7# toylet


    funny thing is, even I did nothing, now HDD3 can't mount, and HDD2 mount successfully..
作者: sunlite    時間: 2014-12-20 07:42

回覆 8# ciscotomx

You don't need to enter the root password, there is an anonymous mode if you just press enter for  the password prompt.
作者: ciscotomx    時間: 2014-12-21 02:13

回覆 10# sunlite


    eh.. even the windows share folder is password protected?
作者: toylet    時間: 2014-12-21 22:57

提示: 作者被禁止或刪除 內容自動屏蔽
作者: ciscotomx    時間: 2014-12-21 23:46

回覆 12# toylet


    eh.. no.. all those share drives are shared out and almost non-stop read/write by other PCs...
作者: toylet    時間: 2014-12-21 23:48

提示: 作者被禁止或刪除 內容自動屏蔽
作者: ciscotomx    時間: 2014-12-22 00:08

回覆 14# toylet


    checked... already on that option...
作者: sunlite    時間: 2014-12-22 12:15

回覆 11# ciscotomx

The command is able to list what services being shared, not actually accessing the files.
作者: sunlite    時間: 2014-12-22 12:26

回覆 13# ciscotomx

Are you using Windows 7 to share the disks? If yes, that could be the problem. With Windows 7, only 20 concurrent connections can be made.
作者: ciscotomx    時間: 2014-12-22 14:24

回覆 17# sunlite


    yes, windows 7, but 20 concurrent connections are a lot.. I just have 4 PCs accessing those share drives..
作者: sunlite    時間: 2014-12-22 14:38

回覆 18# ciscotomx

It is not just one connection from one PC. One computer may open multiple connections to retrieve a simple file.
作者: ciscotomx    時間: 2014-12-22 14:47

回覆 19# sunlite


ok.. got you...
作者: sunlite    時間: 2014-12-22 14:54

回覆 20# ciscotomx

Actually, you can test if it is the case. Stop accessing the file server from any PC. Reboot the file server to make sure no connections to it. Now see if you can mount all the drives in the linux machine.
作者: ciscotomx    時間: 2014-12-22 14:57

回覆 21# sunlite


    yes. that's what I am going to test tonight.
作者: toylet    時間: 2014-12-22 21:28

提示: 作者被禁止或刪除 內容自動屏蔽
作者: crud    時間: 2014-12-24 13:57

does your version of samba, or mount.cifs supports ntlm or ntlmv2?
作者: ciscotomx    時間: 2015-1-7 16:05

dump the win7 solution, went directly to windows server 2012 datacenter, problem solved....
作者: sunlite    時間: 2015-1-8 10:05

回覆 25# ciscotomx

I have been waiting for your followup. Glad that the problem is fixed.
作者: ciscotomx    時間: 2015-1-8 10:36

回覆 26# sunlite


    thanks much. I tried everything with the win7 share, including shut down all other network devices at home, lol.  saw some posts at google saying updating win7 registry can help, but I can't locate the registries mentioned in those posts. tired of the try and fail... just setup win2012 server in my new ESXi server and it looks perfect now. :D





歡迎光臨 電腦領域 HKEPC Hardware (https://www.hkepc.com/forum/) Powered by Discuz! 7.2