Current location - Quotes Website - Personality signature - Cifslinux mounts cifslinux.
Cifslinux mounts cifslinux.
How does Ubuntu connect to the local server?

Ubuntu needs to install Samba to connect.

1. You need to confirm that samba-client is installed first. Yumlistsamba-client2。 If samba-client is not installed, the installation command is as follows: yumitstallsamba-client 3. Check the * * * enjoyment of local servers. Smbclient-L//IP address -U username 4. Create a mount point and create a mount directory in the local directory space.

Mkdir-p/mnt/MYSHARE5。 Use the mount command to mount the * * * shared folder.

Mount-tcifs-ouser= user name, password = * * shared password, iocharset = utf8, codepage = cp936/* * * shared IP address or NetBIOS name/* * shared directory ".

Note: cifs uses the network file types commonly used in Linux, and "-o" indicates the mount parameter. Usually provide a * * * shared username and password to connect.

What is an example of automatically booting a new hard disk in a directory in linux?

1, enjoy the Windows machine settings folder * * *, and install CIFS-utils; on the virtual machine; ; 2. Execute with root privileges

Mount-tcifs// destination host IP/*** Shared folder name mountpoint-o username = Windows * * * Shared user name, password= password.

. Actually, you can also write fstab. For more information, please refer to MountWindows Sharespace.

How to mount windows*** Shared Folder under linux?

Configuration method of accessing Windows*** shared directory under Linux

1. Set the * * * shared directory on Windows.

For example, set d:RedHat_disk to * * * shared directory.

2. Create a user on Windows, such as tommy, with a password of1111.

3. Add tommy user to the access group of * * * shared directory d:redhat_disk, and set tommy.

Have * * * full control (read and write) of the directory.

4. Install samba-client client under Linux.

# yuminstallsamba- client

5. Install the cifs-utils software package.

#yuminstallcifs-utils

6. Create a mount point under Linux.

#mkdir/mnt/Windows

7. Mount the * * * shared directory d:redhat_disk on Windows to the /mnt/Windows directory under Linux.

# mount-tcifs-ousername = tommy// 192. 168. 1. 123/red hat _ disk/mnt/Windows

Enter the password:11111

8. If the mount is successful, you can enter /mnt/Windows and create a new file to see if it can be seen on Windows.

9. In the /etc/fstab file, add the mounting information of the * * * shared directory.

// 192. 168. 1. 123/red hat _ disk/mnt/Windowscifsusername = tommy,password = 1 1 1 1 100

10, so far, the * * * shared directory on Windows/192.168.123/red hat _ disk has been successfully mounted on Linux, and it will be automatically mounted to the /mnt/Windows directory after Linux restarts.

What does samba mean by mounting cifs?

1. concept

Samba is a software running on unix/linux. It is divided into server-side and client-side to realize the functions described in cifs protocol. For windows and unix/linux, please refer to the file * * *.

CIFS: File sharing protocol on Windows, formerly known as smb protocol.

2. Detailed explanation of the agreement

2. 1cifs protocol header format

1

2

three

four

five

six

seven

1

2

three

four

five

six

seven

1

2

three

four

five

six

seven

1

2

three

four

five

six

seven

0xFF

S

M

B

order

Error category

Mustbezero

error code

Error Code (continued)

flag

Sign 2

Fill or secure signature, usually the standard fill is 0.

Tree ID(TID)

Process ID(PID)

User ID(UID)

Multiple identification code

word number

Parameter word

Byte count

buffer

The first 4 bytes of cifs are fixed at 0xFFSMB.

Command:cifs command, indicating the function of the packet.

Error Class Error Code: Error Type and Error Code

FlashFlags2: indicates the limit of the server or client.

TID: Used to identify what resource this CIFS packet refers to (usually disk * * * or printer). When packet switching does not involve specific resources

This field is meaningless and can be ignored.

PID: Used to identify which process on the client made the CIFS request. The server uses this number to check for concurrency problems (usually to ensure that files are not corrupted by competing client processes)

UID: used to identify the user who made the CIFS request at the client. The client must send a CIFS packet request containing the user name and password to obtain the UID given by the server. After verifying the user name and password, the server will reply to the request, which contains the UID generated by the server.

MID: used to represent a pair of requests and responses.

Wordcount, parameterwords: parameter field, which is used to represent the specific parameter data of the command. The Wordcount field actually represents the length of the parameterwords field (2 bytes).

Bytecount, Buffer: buffer, similar to parameter fields, except that parameter fields usually contain a small number of packets.