Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux hanging from windows shared directory command

Shulou Source: shulou.com Published: 2022-06-02 09:13:14 11月15日 Update

Mount: for example, mount a shared folder on the windows server to the linux / dev/windows directory

1. First, set up a "gongxiang" directory on the windows server that can ping, and set administrator and everyone permissions.

2. Check, start-run-enter:\\ 192.168.1.110 can access

3. Create a "windows" directory under the linux / mnt directory

4. On the Linux command line, enter:

Mount-t cifs-o user=administrator,passwd=Tlala@jx / / 10.9.3.45/gongxiang / dev/windows/

(or: mount.cifs-o username= "Administrator", password= "PasswordForWindows" / / 10.10.0.192/test / mnt/share)

5. Check whether "df-h" is mounted

Uninstall: umount / mnt/share that is: umount / dev/windows/

Note: if the uninstall is not successful, exit the directory you want to uninstall.

Tags: Directory server service input command success file folder permissions check run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Docker macOS OPPO Reno Huawei