LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   virtual box share folder issue (https://www.linuxquestions.org/questions/linux-newbie-8/virtual-box-share-folder-issue-4175466860/)

unclesamcrazy 06-21-2013 06:22 AM

virtual box share folder issue
 
I am using ubuntu 12.10. I have installed windows xp inside virtual box.
I am facing a problem.
I can not share more than one folder of same partition. If I want to share second folder, it says
Code:

system error 85 has occurred
The local device name is already in use.

If I remove my first folder and now I try to share second. It is shared successfully.

I have done following process.
Devices -> share folders -> click on add icon
Here I gave path of the folder and checked on auto mount and permanent.
Click on OK.
Now I can see my folder in the list of machine folders.

To see this folder in Network Drives, I have run following command.
Code:

net use x: \\vboxsvr\folder1
The folder is shared.
Now I try to share another folder using
Code:

net use x: \\vboxsvr\folder2
but it says
Code:

system error 85 has occurred
The local device name is already in use.

The last I can do is share whole filesystem, but I do not want to do this.
Please help me. Thanks.

karim.ouda 06-21-2013 07:29 AM

You are executing wrong command.

You have written following command for folder2
Quote:

net use x: \\vboxsvr\folder2
If you execute this, you get
Quote:

The local device name is already in use.
This is correct. The error should be there because you are assigning again x: for your second folder. You have already assigned x: for folder1.
Now you must choose another drive like y or z or whatever for folder2.
Try to execute this.
Quote:

net use y: \\vboxsvr\folder2
I hope you haven't assigned y: already.
Now I think it should not give error.

unclesamcrazy 06-22-2013 12:28 AM

Hey Karim... Thanks for the reply !
It worked for me and now I understood the concept behind it.
One can not assign a single drive for multiple sharing.

Just for my curiosity, I want to know, can I share only 26 folders (A to z partition), that's it?
I have tried using drive name xx, yy, x1, x2, y1, y2...etc but it is not working.

Madhu Desai 06-22-2013 12:53 AM

Quote:

Originally Posted by unclesamcrazy (Post 4976434)
Just for my curiosity, I want to know, can I share only 26 folders (A to z partition), that's it?
I have tried using drive name xx, yy, x1, x2, y1, y2...etc but it is not working.

26 Drives? Is there a way around the 26 drive limit in Windows?

karim.ouda 06-22-2013 01:21 AM

Quote:

Originally Posted by unclesamcrazy (Post 4976434)
Just for my curiosity, I want to know, can I share only 26 folders (A to z partition), that's it?

What are you saying?

Is 26 small number for you? Suppose you have 1 TB HDD, would you do 26 partitions? I don't think so.

Each shared folder is like a partition in VM. That's why you can't assigned a folder to C: or D: using your command because it is already assigned.
You shouldn't treat it like Samba Share (I hope you know this term because your host OS is ubuntu) just because it's name is share folders.

And if you want to know about number 26, read the above post mentioned by mddesai.
if you want to know in deep, take a look at this.
http://en.wikipedia.org/wiki/GUID_Partition_Table
http://en.wikipedia.org/wiki/Disk_partitioning

And one more thing that you are saying you don't want to share a whole filesystem.
I think it is a good idea. You are using ubuntu, you know path of every file and folder there. Wouldn't it be easy for you to open your desired file and folder using just one share?

unclesamcrazy 07-03-2013 02:43 AM

Thanks I have understood the real use of virtual machine and the number 26. :)
I have shared only one folder and that is whole filesystem and now it is easy to access every file and folder of my host OS ubuntu.
I am not facing any problem yet.

Just one question because it is related to virtual host that's why I haven't created any new thread.
My host OS is ubuntu 12.10 and I have installed gnome classic desktop, I do not like unity :( . My screen resolution for ubuntu is 1440 x 900 (16:10)
and resolution of my XP (virtual host OS ) is (1024 x 676 ) highest 32 bit. it is the max I can select.
Now the virtual host OS is appeared in the center of the screen. It is very uncomfortable.
Can it be arranged in a way so my XP's task bar just above the ubuntu task bar (length should be little less than ubuntu's) and width should be same for both that is 1440. so approx resolution for XP should be 1440 x 700 or 1440 x750.

Please suggest for this.

karim.ouda 07-04-2013 01:26 AM

To add the resolution in windows XP, I don't think you should ask this here in this forum.
Search on google, you must get many useful links.

I think Virtual host OS detects the resolution according to your display settings.
XP should detect it your higher resolution according to your display settings, try to manage it from there.

Madhu Desai 07-04-2013 01:51 AM

Quote:

Originally Posted by unclesamcrazy (Post 4983203)
Just one question because it is related to virtual host that's why I haven't created any new thread.
My host OS is ubuntu 12.10 and I have installed gnome classic desktop, I do not like unity :( . My screen resolution for ubuntu is 1440 x 900 (16:10)
and resolution of my XP (virtual host OS ) is (1024 x 676 ) highest 32 bit. it is the max I can select.
Now the virtual host OS is appeared in the center of the screen. It is very uncomfortable.
Can it be arranged in a way so my XP's task bar just above the ubuntu task bar (length should be little less than ubuntu's) and width should be same for both that is 1440. so approx resolution for XP should be 1440 x 700 or 1440 x750.

Please suggest for this.

You are probably referring to seamless mode. Do this
  1. Install Guest Additions for guest VM and reboot
  2. Goto 'View' menu and make sure 'Auto-resize Guest Display' is checked.
  3. Click Maximize Button at top right corner.
  4. Now goto 'View' menu and select 'Switch to Seamless Mode'
  5. To disable and come back to normal mode, press Ctrl+L

unclesamcrazy 07-05-2013 09:46 AM

Thanks mddesai for your solution.
But I was still facing problem. :(
Neither karim.ouda's solution worked for me. XP was not detected resolution automatically. :(

But somehow the problem is solved (because of google and my dangerous practicals)
There are several resolution list in displays settings like 1440x900, 1280x1024, 1280x960, 1152x864 etc and when I was changing these in ubuntu as the front screen is virtual box xp screen, the monitor blinks and adds new resolution in XP.
I don't know how this was happened, but it detects some other resolution and I found my desired resolution there that is 1440x778.

I was afraid if I lose this after restart but nothing happened like this :)

If it would happen, I would give another trouble, :)

By the way thanks again for your kind help.


All times are GMT -5. The time now is 12:18 PM.