-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhow-to-share-win-folder-with-linux.txt
More file actions
42 lines (25 loc) · 1.24 KB
/
Copy pathhow-to-share-win-folder-with-linux.txt
File metadata and controls
42 lines (25 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
sudo mount -v -t cifs //192.168.1.200/IrVo /media/winshare -o uid=debian,gid=debian,file_mode=0775,dir_mode=0775,credentials=/home/debian/.smbcredentials,vers=3.0
1. win side: setting share folder
IrVo, and it can be windows file exploer reached by
\\192.168.1.200/IrVo
2. linux side
a) install cifs
sudo apt-get install cifs-utils
or (On older systems)
sudo apt-get install smbfs
3. edit /home/debian/.smbcredentials
$cat /home/debian/.smbcredentials
username=wus1
password=xxxxxsudo
#note: no new line at the end of file!!!
---------find UUID ----------
debian@sr-imx8:/mnt$ sudo blkid
[sudo] password for debian:
/dev/mmcblk1p1: UUID="46388452-4a9a-4d4b-8a22-b2a59e7288e5" TYPE="ext4" PARTUUID="e85a04f2-01"
-------------------------------
4. edit /etc/fstab (this will auto mount from boot)
$cat /etc/fstab
UUID=46388452-4a9a-4d4b-8a22-b2a59e7288e5 / auto defaults 0 0
//192.168.1.200/Users /media/winshare cifs uid=debian,gid=debian,file_mode=0775,dir_mode=0775,credentials=/home/debian/.smbcredentials,vers=3.0,noperm 0 0
5. debug (it works! verified!!!)
$sudo mount -v -t cifs //192.168.1.200/IrVo /media/winshare -o uid=debian,gid=debian,file_mode=0775,dir_mode=0775,credentials=/home/debian/.smbcredentials,vers=3.0