PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 08:08:46 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: share folder PCLOS guest Windows host  (Read 821 times)
rick0612
Full Member
***
Offline Offline

Posts: 231


The only dumb question is the one not asked.


« on: November 16, 2011, 12:11:52 PM »

After much research and many missteps, I got a shared folder to work. This procedure is for a PCLOS guest on a Windows host.
Guest additions must be installed.

To access a Windows folder:
  Create a folder in Windows to access (does not need to be shared). For this example let's use C:/Users/User/linux
  Create a share point in Vbox using shared folders for PCLOS guest i.e. C:/Users/User/linux. (The name will be linux in this example)
  Create a mount point in guest's home folder i.e. /home/yourusername/Windows
  As root, put this line in /etc/rc.local
    mount -t vboxsf -o rw,uid=500,gid=500 linux /home/yourusername/Windows
         (linux is the name of the Windows share  and Windows will be the name of the PCLOS mount point)
         (for the User ID (uid) check PCC -> System-> Manage users on system)
  Reboot guest

Hope this helps

Rick.
Logged

Averatec 2573             /HP Envy 14
12.1" screen               /14.5"
2.0GHZ                       /i5 processor
3GB RAM                    /6GB RAM
250GB HDD                /650GB HDD
Minime 2010               Virtualbox client
kjpetrie
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 3133


« Reply #1 on: November 16, 2011, 07:58:36 PM »

Good tutorial.

This step:
Quote
As root, put this line in /etc/rc.local
    mount -t vboxsf -o rw,uid=500,gid=500 linux /home/yourusername/Windows

Would be achieved better by adding the following to /etc/fstab:
Code:

# mount windows share
linux /home/yourusername/Windows vboxsf rw,uid=500,gid=500 0 0

rc.local is a bodge when nothing else will work or for testing purposes.
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
rick0612
Full Member
***
Offline Offline

Posts: 231


The only dumb question is the one not asked.


« Reply #2 on: November 17, 2011, 11:24:36 AM »

kjpetrie

Sorry, doesn't work for me.
Tried different options for fstab. Even changed boot delay to 1 minute to give vboxsf time but could not get to windows share using fstab. As soon as I went back to rc.local, had no problems.

Using Vbox 4.1.6 and PCLOS 2011 fully updated and with guest additions.

Searching internet showed that your suggestion should work. Don't know what the issue could be.

If your method works for you and others, great. If not, try mine.

Rick.
Logged

Averatec 2573             /HP Envy 14
12.1" screen               /14.5"
2.0GHZ                       /i5 processor
3GB RAM                    /6GB RAM
250GB HDD                /650GB HDD
Minime 2010               Virtualbox client
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #3 on: November 23, 2011, 07:41:08 PM »


Using Vbox 4.1.6 and PCLOS 2011 fully updated and with guest additions.

Do you have installed both guest packages ?

virtualbox-guest-additions and dkms-vboxadditions

if not, there is your issue.  Wink

(BTW, I think that a dependency should be added between the two packages ...)

AS
Logged
Cressida
Sr. Member
****
Offline Offline

Posts: 275


« Reply #4 on: November 29, 2011, 03:06:40 PM »

Would this be the same when PCLOS is the host with Windows as the guest?

It might be helpful to go ahead and mention that possibility on this thread.
Logged

AMD Athlon 64 3200, 3GB ram,  ~320 GB HD,  Video=ATI Radeon X300 SE (128mb) PCI-e
KDE 4.6?    Kern  2.6.38.8a64

I used to think I knew a lot about computers until I started using Linux.  Now I feel my age...
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #5 on: November 29, 2011, 03:36:12 PM »

Would this be the same when PCLOS is the host with Windows as the guest?

It might be helpful to go ahead and mention that possibility on this thread.

Guest additions are required when you need shared folders:
https://www.virtualbox.org/manual/ch04.html#sharedfolders
Quote
With the "shared folders" feature of VirtualBox, you can access files of your host system from within the guest system. This is similar how you would use network shares in Windows networks -- except that shared folders do not need require networking, only the Guest Additions. Shared Folders are supported with Windows (2000 or newer), Linux and Solaris guests

If you need further info, the best source is the virtualbox website:  Wink
https://www.virtualbox.org
https://www.virtualbox.org/manual/UserManual.html
https://www.virtualbox.org/wiki/End-user_documentation
https://www.virtualbox.org/wiki/User_HOWTOS

AS
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM