Virtual Machine Linux shared host Windows Resources

Source: Internet
Author: User
Tags ftp access
Article Title: Linux shared host Windows Resources. Linux is a technology channel of the IT lab in China. It includes desktop applications, Linux system management, kernel research, embedded systems, open-source, and other basic classification virtual machines. The use of virtual machines does provide great convenience for Linux learners. However, in the process of Linux learning, when it comes to application software, although you can directly download the package or source code from the Internet, but used to use thunder, the download speed in Linux is simply intolerable, in addition, many of the original resources should be available for direct use and there is no need to download them again. Therefore, sharing information between the two systems becomes an urgent problem.

I searched a lot of related information on the Internet and introduced a lot of information sharing between the two systems. However, there are not many solutions to provide resource sharing between different systems of the Virtual Machine host-guest. With the help of a friend, after many attempts and explorations, I finally got some searches. A detailed solution including LAN configuration is provided for beginners.

Environment Introduction:
Virtual Machine: VMware Workstation 5.5
Host system: Windows 2000 Server
Guest System: Red Hat Enterprise Linux 4

In fact, there are many ways to share resources as two systems. At first I tried to mount the file system using the mount command. From the command itself, it seems that there is no problem to mount a file system or drive disk under Windows.

First, create a mount point in the Linux/mnt empty directory: # mkdir/mnt/mystudy
The/mnt directory is a directory used as a mount point. Mystudy is the custom dedicated mount point name.

Then let's take a look at the usage of the mount command:
Command Format: mount [-t vfstype] [-o options] device dir
Main parameters:
①-T vfstype specifies the type of the file system, which is usually not required. Mount will automatically select the correct type, Windows NT ntfs file system: ntfs
②-O options is mainly used to describe the mounting method of a device or file.
③ Device: the device to be mounted. In Linux, device names are stored in/dev. device names follow certain rules. For example, in/dev/hda1, hd indicates Hard Disk, and a indicates the first Hard Disk device, 1 represents the first primary partition of the first hard disk.
④ Dir: the mount point of the device on the system ). For example, the mount point we just created:/mnt/mystudy

Follow this rule to mount the second primary partition of the hard disk,
Type the command: # mount-t ntfs/dev/hda2/mnt/mystudy
Returned information: Mount: fs type ntfs not supported by kernel

Why can't I find partitions in ntfs format? So where does my Windows system go?

Check the partition information: # fdisk? L
The following result is displayed:

500) this. style. width = 500; "border = 0>

Windows partition is not found at all.
This reminds me that my Linux is installed in a virtual machine, and the devices allocated to the Linux system by the virtual machine are only 8 GB virtual hard disk partitions, therefore, there is no way to mount the partitions of the Windows system and other hard disk partitions.

In a virtual machine environment, if you want to share resources, the mount command is basically useless and can only be considered online.

Two solutions are most commonly used:

1. FTP access
2. Samba Service

For both FTP and Samba, you must first analyze the Host-Guest network connection in the virtual machine environment. Basically, the Host and Guest machines can be interconnected as two machines in the LAN. Now we need to reconsider the network connection methods mentioned in "Virtual Machine network configuration.

500) this. style. width = 500; "border = 0>

[1] [2] [3] Next page

Related Article

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.