2011年4月4日星期一

Ubuntu and xp vm host the next method of sharing files

     When using a virtual machine running Ubuntu, host and share files host method Method One: In the XP virtual machine running on the platform of the Ubuntu, when you need to pass each other when the file can be achieved by sharing the way, first create a Ubuntu folder, then the machine can also create a folder and share, and then in ubuntu terminal, through the mount command to mount. Such as: the local ip: 192.168.0.1 the local shared folder: lxf the local user name: abc the machine password: abc Ubuntu mount folder: / home / liuxf / lxf mount command: mount / / 192.168.0.1 / lxf / home / liuxf / / lxf-o username = abc, password = abc, dmask = 777, fmask = 777 but that does not support the Ubuntu start up automatically every time you start when you need to mount a share. The following methods can be used with mapping network drives under way in XP to create a network disk method II: 1, under Ubuntu in a virtual system, create a new folder,mac makeup, right-click the folder, select properties, sharing, enable Note: Samba share requires the support will be prompted to install, the installation is complete, you need to restart ubuntu to take effect. At this point back to XP My Network Places can be seen in a *** - desktop server (Samba, Ubuntu) shared directory. 2, Back to Windows XP, right-click found more than a Then you can copy several files in the XP system to the appropriate network drive, and then into the Ubuntu system, you can see we have just copied the files;, of course, we can also put the shared folder to the file system in XP use. When creating the file-sharing, pay attention to the host network card must be open, otherwise create a sharing is not successful, open the way to access the Internet card to the routing line, do not let the network port empty.

    can be considered under the xp disk you can mount up, as if the dear friend that answers the following two methods to: mount as follows: ubuntu in a virtual machine using the windows next to the other disk files . Into ubuntu, open a terminal and type: sudo fdisk-l appears Device Boot Start End Blocks Id System/dev/sdb1 1 1824 14651248 + 2d Unknown/dev/sdb2 1825 30401 229544752 + f W95 Ext'd (LBA) / dev / sdb5 1825 6688 39070048 + b W95 FAT32/dev/sdb6 6689 15199 68364576 2d Unknown/dev/sdb7 15200 21278 48829536 2d Unknown/dev/sdb8 21279 27357 48829536 2d Unknown/dev/sdb9 27358 27481 995998 + 2d Unknown/dev/sdb10 27482 30401 23454868 + 2d Unknown3 red Unknown are E, F, G plate. Does not recognize! Close ubuntu, is shut down. In VMware Workstation clicks: VM -> settings, open the Virtual Machine setting, Add -> Select Hard Disk, Next: Use a physical disk (for advanced users), Next: Use individual partitions, Next: control space the E,vibram 5 fingers, F, G are groove on disk check box, Next, Finish, OK. Start Ubuntu. Open a terminal, re-enter: sudo fdisk-lDevice Boot Start End Blocks Id System/dev/sdb1 1 1824 14651248 + 2d Unknown/dev/sdb2 1825 30401 229544752 + f W95 Ext'd (LBA) / dev/sdb5 1825 6688 39070048 + 2d Unknown/dev/sdb6 6689 15199 68364576 7 HPFS/NTFS/dev/sdb7 15200 21278 48829536 7 HPFS/NTFS/dev/sdb8 21279 27357 48829536 7 HPFS/NTFS/dev/sdb9 27358 27481 995998 + 2d Unknown/dev/sdb10 27482 30401 23454868 + 2d UnknownE, F, G disk to identify it! In the / media directory was built three files. E, F, G enter: sudo mkdir / media / E sudo mkdir / media / F sudo mkdir / media / G and then began to mount E,mac makeup wholesale, F,mac brushes, G plate. Enter: sudo mount-t ntfs / dev/sdb6 / media / E appears $ LogFile indicates unclean shutdown (0, 0) Failed to mount '/ dev/sdb6': Operation not supported Mount is denied because NTFS is marked to be in use . Choose one action: Choice 1: If you have Windows then disconnect the external devices by clicking on the 'Safely Remove Hardware' icon in the Windows taskbar then shutdown Windows cleanly.Choice 2: If you don't have Windows then you can use the 'force' option for your own responsibility. For example type on the command line: mount-t ntfs-3g / dev/sdb6 / media / E-o force Or add the option to the relevant row in the / etc / fstab file : / dev/sdb6 / media / E ntfs-3g force 0 0 mount failed le! First to see if loaded on ntfs-3g, the command: sudo apt-get install ntfs-3g mounted again: sudo mount-t ntfs-3g / dev/sdb6 / media / E-o force there, $ LogFile indicates unclean shutdown (0, 0) WARNING: Forced mount, reset $ LogFile. It does not matter, E, has been on the desktop, and then mount the other two disks on it. Enter: sudo mount-t ntfs-3g / dev/sdb7 / media / F-o force sudo mount-t ntfs-3g / dev/sdb8 / media / G-o forceok! All mounting success! / Mnt / hgfs: install vmware tools choose VM -> Install Vmware tools can be installed after installing a virtual who share files on the camera (1) ghost computer (ie VMware virtual machine) to switch to the windows desktop, VMware workstation program menu select VM ----> settings ----> Options ----> shared folders ----> properties (2) the lower right of the dialog box, click --->host folder build a new folder named win2linux) (3) The next dialog may choose to share the way: Enable this share is the shared long term. ---->, shared folder is set up for example: 1. such as: To make-3.81.tar.gz package to copy VM linux from windows, just to make-3.81.tar.gz copied to the windows of the F: win2linux directory , then limux the / mnt / hgfs / win2linux there under the file can be directly used. [root @ localhost win2linux] # lsmake-3.81.tar.gz [root @ localhost win2linux] # ls2. the files in linux simply copied to the windows to copy the files to the / mnt/hgfs/win2linux directory, the windows of the F: win2linux directory that has the file [root @ localhost mickey] # cp. / vmtool_install_print.txt / mnt / hgfs/win2linux [root @ localhost mickey] #

    没有评论:

    发表评论