Linux mount and mount failed Solution

What is the Mount?

    (. 1) systems we are windows, but the windows c, d, e are all windows automatically disc loading upswing

If you do not mount, we have no way to its operation. For example, u disk into the computer, windows will automatically assign a dish I, which

Is mounted, Linux will not mount automatically, just like a point u disk eject the windows system, u know a disk inserted in the above no

Way access.

   (2) Linux some of the / dev directory device files, we can only see from the interface can not access is the truth, so

To mount a way to get through by its context, and then comfortable.

   (3) Similarly when we use samba service to use windows shared files, directories, disk, etc., you have to use the mount.

   (4) mount is the essence of the device, files, directories, etc. as a large catalog files, mount the system to a known path, so

It has direct access to.




How to mount? (Linux-mount windows file, for example)

1, windows and Linux terminal end services required to install samba

windows open samba server

image.png

image.png

See Linux samba not installed below three packets

image.png


2. If not, I am here in two ways:

(1) yum install

        yum install -y samba

        This is an automatic installation is relatively simple

(2) installation package

        mount / dev / cdrom / empty directory

        If the error: read-only

        mount -o remount, rw / dev / cdrom / empty directory

       image.png

      Rpm packages installed samba

3, after the two steps ok, use the next command context open windows and linux

      smbclient -L // ip address

image.png

Above you can see windows shared files and disks, and suddenly we find c drive is shared out!

It means that we can see the c drive thing, why windows insecure ~. Digression.


4. If the above steps fail to get, problem solving:


Right My Computer Local Users and Groups ----- ----- ----- guest ------ user account is disabled canceled

If you find users and groups option does not exist for a long time I Baidu There are two solutions:

1, windows system upgrade to the Enterprise Edition

2, install windows Enterprise Edition virtual machine

image.png


Run ------ secpol.msc ------- ------ User Rights Assignment Deny access to this computer from the network

The guest ----------- deleted

image.png

image.png


Security Options -------- network access local account sharing and security simulation

--------- classic and only guest mode switching, if do not have access to the switch

image.png




If the connection still fails, then turn off selinux, and two firewall systems


image.png

image.png


Now a happy cross-platform sharing ~~


5, began to mount

     mount.cifs // ip address / share files, directories, disk / empty directory

image.png

ok Mount success!

At this time no installation package and then introduced into the system in the linux installed directly in the windows system can be downloaded.





Guess you like

Origin blog.51cto.com/13185351/2420064