Summary of Linux file sharing methods in windows and Vmware

Source: Internet
Author: User

There are many file sharing methods between Windows and Linux. I will summarize them here. Suppose your host computer is windows and guest is Linux.

1. Use samba

This is the method I use most.

2. Configure apahce in Linux

Configure apahce in Linux, and then download the files in Linux through WWW in windows. In this way, only Linux files can be uploaded to windows, but Windows files cannot be uploaded to Linux.

3. Configure ftp in Linux

You can use either vsftp or wu-FTP to configure the upload permission. Then, Windows and Linux can share files with each other.

4. Configure the WWW Service in Windows

You can use IIS, Apache, or other methods. If you only have command lines in Linux, you can use the wget command to conveniently download files.

5. Configure ftp in Windows

Simple to use Serv-U

6. Use the file sharing Function of Windows

For example, if your windows IP address is 192.168.0.1 and a directory named share is shared, you can run the following command:

Mount-T smbfs // 192.168.0.1/share/mnt-O username = USER % passwd

Or smbmount // 192.168.0.1/share/mnt-O username = USER % passwd (Use this command to install Samba)

7. Use VMware Tools

Sharedfolders is a new feature of vmware4, making it easier to share files between host and guest operating systems. But before use

Install VMware Tools.

Click setting-> VMware Tools install
Mount/dev/CDROM/mnt/CDROM

CD/mnt/CDROM

There is a VMware Tools tar package, undo the execution of the vmware-tools-install.pl script, a carriage return, generally no problem.
Click Edit-> Virtual Machine settigns-> Option-> sharedfolders-> Add, select the folder to be shared, and name the folder. Next step. Select "enable"
Thisshare ". After confirmation, VMWare will automatically mount this folder to the/mnt/HGFS directory.

8. Directly mount the physical hard disk or hard disk partition

However, VMWare also supports the direct mount of the host machine by creating a disk in the VM settings, selecting "usephysicaldisk (foradvanced users)" as the type, and then selecting the disk and partition. However, such an operation may lead to inconsistent file systems, resulting in errors. We do not recommend this operation.

9. Use an ISO file

The optical drive in the virtual machine can be either a physical optical drive or an ISO file. We can convert the key parts of our files into an ISO file (using winiso) and then attach them as CDROM in Linux.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.