LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need to access windows text files when running linux via virtualization. (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-to-access-windows-text-files-when-running-linux-via-virtualization-900466/)

2Roycethe59 08-31-2011 03:30 PM

I need to access windows text files when running linux via virtualization.
 
I am running Ubuntu linux through VMware Player virtualization from a Windows 7 box and was wandering if there was a way that I could access text files that are located in the Windows file system C:\User\

Basically when I would like to be free to use either OS to modify the same files.

Thank you in advance.

sylar_5 08-31-2011 03:48 PM

If you have a network connection, you could use the windows folder shares...

I'm not sure if you need smbclient or some different software for that, just google for how to use/install cifs filesystem in ubuntu

Open console, and type

Code:

sudo mkdir /mnt/windows
sudo mount -t cifs //windowshostname/share /mnt/windows -o user=yourwindowsusername,password=yourwindowspassword,workgroup=youwindowsworkgroup,ip=windowsip

The first line create the directory /mnt/windows
the second line mounts the device "//windowshostname/share" (of course, you must specify those, example: //MyPC/Users ; if you have administrative shares on, you can use //MyPC/C$ to get access to the whole C: drive) as a cifs filesystem to the directory /mnt/windows with the given options (of course, you must also specify those)
Example of this line:
Code:

sudo mount -t cifs //MyPC/C$ -o user=sylar,password=1234,workgroup=WORKGROUP,ip=192.168.0.1
now, you have acces to your windows machine in /mnt/windows, but you need root priveleges to write to it.


To get access from windows to your linux (if you really want that ;), you must either setup a samba server, or an ftp server (samba would be better for windows access, ftp is less pain). You'll find out about both in the ubuntu wiki.

frankbell 08-31-2011 07:12 PM

VMWare allows you to set up shared folders to share files with the host or other VMs.

http://www.vmware.com/support/ws5/do...d_folders.html

I've done this with VirtualBox and it works quite nicely.

2Roycethe59 09-08-2011 06:56 PM

Quote:

Originally Posted by frankbell (Post 4458378)
VMWare allows you to set up shared folders to share files with the host or other VMs.

http://www.vmware.com/support/ws5/do...d_folders.html

I've done this with VirtualBox and it works quite nicely.

Good find, I appreciate this but I am using the free VMWare Player, Not the Workstation. I don't think the VMWare player has this capability.
I tried the mount command as suggested above but that did not work out for me. I think when I have some time I will check out VirtualBox.

thank you guys.

frankbell 09-08-2011 08:32 PM

VirtualBox definitely enables folder sharing between the VM and the host. I've done it.


All times are GMT -5. The time now is 11:45 PM.