Author Topic: share folder PCLOS guest Windows host  (Read 1563 times)

Offline rick0612

  • Sr. Member
  • ****
  • Posts: 258
  • The only dumb question is the one not asked.
share folder PCLOS guest Windows host
« on: November 16, 2011, 10:11:52 AM »
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.
Packaging rig: Averatec 2573 /12.1" screen /2.0GHZ /3GB RAM /120GB SSD /Minime 2012.12

Daily rig: Alienware X51 /23" monitor /Windows 7 host /KDE VBox client

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3996
Re: share folder PCLOS guest Windows host
« Reply #1 on: November 16, 2011, 05: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: [Select]

# 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.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline rick0612

  • Sr. Member
  • ****
  • Posts: 258
  • The only dumb question is the one not asked.
Re: share folder PCLOS guest Windows host
« Reply #2 on: November 17, 2011, 09: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.
Packaging rig: Averatec 2573 /12.1" screen /2.0GHZ /3GB RAM /120GB SSD /Minime 2012.12

Daily rig: Alienware X51 /23" monitor /Windows 7 host /KDE VBox client

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: share folder PCLOS guest Windows host
« Reply #3 on: November 23, 2011, 05: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.  ;)

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

AS

Offline Cressida

  • Sr. Member
  • ****
  • Posts: 285
Re: share folder PCLOS guest Windows host
« Reply #4 on: November 29, 2011, 01: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.
AMD Athlon 64 3200, 2GB ram,  ~320 GB HD,  Video=ATI Radeon X300 SE (128mb) PCI-e
KDE     Kern  3.2.18-pclos2.a64

I used to think I knew a lot about computers until I started using Linux.  Now I feel my age...

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: share folder PCLOS guest Windows host
« Reply #5 on: November 29, 2011, 01: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:  ;)
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