LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2011, 03:30 PM   #1
2Roycethe59
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 08-31-2011, 03:48 PM   #2
sylar_5
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 08-31-2011, 07:12 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,252
Blog Entries: 16

Rep: Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118Reputation: 3118
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.
 
Old 09-08-2011, 06:56 PM   #4
2Roycethe59
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
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.
 
Old 09-08-2011, 08:32 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,252
Blog Entries: 16

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy text files from linux to windows Idiosyncra3y Linux - Newbie 11 06-08-2010 01:42 PM
[SOLVED] [SAMBA] How to track windows user access , create files /modify files on linux SMB efciem Linux - Server 2 05-16-2010 08:45 AM
How do I convert text files between Windows(Dos) and Linux? gagraf Linux - Newbie 9 01-27-2010 05:26 AM
running windows files on Linux giraf Debian 14 12-02-2008 11:20 AM
Access Windows files through Linux ccase2k Linux - Newbie 1 01-15-2006 12:47 PM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration