LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2008, 07:36 AM   #1
casaba
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Sharing drives on virtual machine


I am a relative noob to Linux and I am having trouble finding information on the (seemingly) basics.

I have a machine running XP and VMware with a Fedora 7 virtual machine. I have 4 partitions (e.g. photos, website...) and I was hoping to have shared access, XP and Linux, to these partitions.

After a lot of fiddling (sorry, I didn't note down what I did but I found that setting the drives as 'shared' in Windows did most of the trick), now in Fedora I have a 'windows network' desktop icon with the name of my Windows machine. It takes a while to first open, and it lists not only the drives I added (e.g. "Pictures (P)", "Websites (W)"...) but also all the Windows drives listed as "C$", "P$", "W$"... These latter drives with the $'s are inaccessible without authentication; I haven't figured out which username password is required for this authentication but I don't really need them as the drives I added (again, listed as "Pictures (P)" or "Websites (W)") are viewable and editable.

Now the questions:

1. Is there a more direct way to set up shared access? (My attempt at installing Samba on a previous occasion resulted in a non-ending list of dependent modules and eventually destroyed the Linux installation... I haven't installed Samba on this installation.)

2. Can, or should, I unmap the "C$..." drives? If so, how? (I'm thinking of how long it takes to simply open the Windows Network window.)

3. What address do I use in a config file to refer to these shared drives?

(My goal is to keep the local copy of my website where it is, editable with the Windows machine, and to use the Linux machine as a test web server. It is the Apache config file that I am trying to edit, changing the default location "/var/www/html" to something like "smb://WinMachName/Websites%20(W)/www". I've tried several variations of this latter address with no luck; Apache wouldn't start up. Any suggestions on a better way of setting up a test web server would be much appreciated. I have used WAMP in the past but thought that the VMware option would give me a taste of how web servers work, as well as finally get me working with Linux.)
 
Old 08-07-2008, 09:38 AM   #2
netman4ttm
Member
 
Registered: Aug 2007
Distribution: FreeBSD 8.0 xubuntu
Posts: 49

Rep: Reputation: 16
Ok
Still not sure about your setup but I would do this.

As root
cd /
mkdir XP

mount_smbfs //Your XP PC's name/The volume you are sharing from the XP PC /XP
cd /XP
ln -s /var/www/html/

If there is a directory within /XP cd to that directory then create the link.

Caveat I'm a BSD guy haven't touched Fedora/RedHat in Years

Last edited by netman4ttm; 08-07-2008 at 09:40 AM. Reason: error
 
Old 08-07-2008, 12:55 PM   #3
casaba
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the suggestion Netman4ttm. It tried it but the command mount_smbfs is not recognized (Fedora 7). I tried searching for the command (hoping that it might show up in a package) but didn't get anywhere. Based on the search, I think the command may be Unix and BSD only...

I'm now trying several bits I found under 'mounting smbfs drives' but so far, no luck. (I am rather in stabbing in the dark as most of these instructions are either very specific or very complicated. I guess I'm looking for a generic and easy to understand approach... or a specific one that works!)
 
Old 08-08-2008, 06:46 AM   #4
netman4ttm
Member
 
Registered: Aug 2007
Distribution: FreeBSD 8.0 xubuntu
Posts: 49

Rep: Reputation: 16
Try;
mount -t smbfs instead of mount_smbfs

I think that is the linux version

You might need to get samba-common
 
Old 08-18-2008, 11:59 AM   #5
casaba
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply, Netmann4ttm. I've been away from the virtual-Linux-web-server for a bit.

I tried your suggested command, but I get:

mount: unknown filesystem type 'smbfs'

I have Samba-common installed...

Let me try restating my problem, and maybe someone may have an idea:

I'd like to have a partition that is accessible from Windows (i.e. edit the website using Dreamweaver in Windows), that can also be used as the Apache DocumentRoot.
 
  


Reply



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
file sharing between a virtual machine and the host machine okok Linux - Networking 3 06-21-2013 12:42 AM
How to run virtual Machine and Internet connection sharing on Fed8 Linuxllent Fedora 6 02-12-2008 03:27 AM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
NFS: can't see the mounted drives of machine 1 on machine 2 b0nd Linux - Networking 4 12-21-2005 11:20 PM
Virtual Cd Drives steve_d555 Linux - Software 0 04-12-2004 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:16 AM.

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
Open Source Consulting | Domain Registration