VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/sf_mount_manual.dita

最後變更 在這個檔案是 107390,由 vboxsync 提交於 3 月 前

Docs: bugref:10705. bugref: 10829. The docs build has been modified to split generated refentry dita files and the user manual files and the following commits from doc's team git repo has been applied:

0946136c74dda0483704db891345cb39548b4e28 Started consolidating known issues and troubleshooting information
845b847e6a8e778b38a57867e25ee5e086a73800 Added individual topics for list of known issues, integrated into Troubleshooting section.
bb574836aac775889bd61e4a72f489617fcb7d18 Removed EFI firmware from experimental features for 7.2
6d2e68b244869991e713d170ecd239739d99ba56 Moved known issues into Known Issues section
e2630c896561587718b5c3197c384a38d07014d5 Merge branch 'VBP-1461_experimental-features' into 'main'
0512e2cce51f49ccdc56f3381a2a0c924f2bd278 Feedback on known issues
a77d6c980f6ff5cad9d32b2fb9290990093a03fa Restructured host and guest OS topics
988af5cc9628f5de0806531bc98686f691a911fd Updates with feedbback from Jacob
982a61c9f25b22b745ec483e763e3d88efe59c40 Included feedback from Jacob
93181c8c6cc2d9a26bcccb1145cb0423c0d9f4c9 Updated known issues with feedback from Klaus
8bc369561c383f09b409fe5e44f507440b3735fb Created Legacy Guest OS section
d7932f55accdab7a03666302d58b8c941cd48be2 Moved known issues to more appropriate places for the info
2a4aa094ba8a7ac6894d2a777316eabf41746580 Further moving of known issues
baeabd5308c5519a4dc26b4197be9b00e419a85a Updated links to cli_topics

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 5.7 KB
 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE topic
3 PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
4<topic xml:lang="en-us" id="sf_mount_manual">
5 <title>Manual Mounting</title>
6
7 <body>
8 <p>
9 You can mount the shared folder from inside a VM, in the same
10 way as you would mount an ordinary network share:
11 </p>
12 <ul>
13 <li>
14 <p>
15 In a Windows guest, shared folders are browseable and
16 therefore visible in Windows Explorer. To attach the host's
17 shared folder to your Windows guest, open Windows Explorer
18 and look for the folder in <b outputclass="bold">My
19 Networking Places</b>, <b outputclass="bold">Entire
20 Network</b>, <b outputclass="bold"><ph conkeyref="vbox-conkeyref-phrases/product-name"/>
21 Shared Folders</b>. By right-clicking on a shared
22 folder and selecting <b outputclass="bold">Map Network
23 Drive</b> from the menu that pops up, you can assign
24 a drive letter to that shared folder.
25 </p>
26 <p>
27 Alternatively, on the Windows command line, use the
28 following command:
29 </p>
30 <pre xml:space="preserve">net use x: \\vboxsvr\sharename</pre>
31 <p>
32 While <codeph>vboxsvr</codeph> is a fixed name, note that
33 <codeph>vboxsrv</codeph> would also work, replace
34 <varname>x:</varname> with the drive letter that you
35 want to use for the share, and
36 <varname>sharename</varname> with the share name
37 specified with <userinput>VBoxManage</userinput>.
38 </p>
39 </li>
40 <li>
41 <p>
42 In a Linux guest, use the following command:
43 </p>
44 <pre xml:space="preserve">mount -t vboxsf [-o OPTIONS] sharename mountpoint</pre>
45 <p>
46 To mount a shared folder during boot, add the following
47 entry to <filepath>/etc/fstab</filepath>:
48 </p>
49 <pre xml:space="preserve">sharename mountpoint vboxsf defaults 0 0</pre>
50 </li>
51 <li>
52 <p>
53 In a Oracle Solaris guest, use the following command:
54 </p>
55 <pre xml:space="preserve">mount -F vboxfs [-o OPTIONS] sharename mountpoint</pre>
56 <p>
57 Replace <varname>sharename</varname>, use a
58 lowercase string, with the share name specified with
59 <userinput>VBoxManage</userinput> or <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/>. Replace
60 <varname>mountpoint</varname> with the path where
61 you want the share to be mounted on the guest, such as
62 <filepath>/mnt/share</filepath>. The usual mount rules
63 apply. For example, create this directory first if it does
64 not exist yet.
65 </p>
66 <p>
67 Here is an example of mounting the shared folder for the
68 user jack on Oracle Solaris:
69 </p>
70 <pre xml:space="preserve">$ id
71uid=5000(jack) gid=1(other)
72$ mkdir /export/home/jack/mount
73$ pfexec mount -F vboxfs -o uid=5000,gid=1 jackshare /export/home/jack/mount
74$ cd ~/mount
75$ ls
76sharedfile1.mp3 sharedfile2.txt
77$</pre>
78 <p>
79 Beyond the standard options supplied by the
80 <userinput>mount</userinput> command, the following are
81 available:
82 </p>
83 <pre xml:space="preserve">iocharset CHARSET</pre>
84 <p>
85 This option sets the character set used for I/O operations.
86 Note that on Linux guests, if the
87 <codeph>iocharset</codeph> option is not specified, then
88 the Guest Additions driver will attempt to use the character
89 set specified by the CONFIG_NLS_DEFAULT kernel option. If
90 this option is not set either, then UTF-8 is used.
91 </p>
92 <pre xml:space="preserve">convertcp CHARSET</pre>
93 <p>
94 This option specifies the character set used for the shared
95 folder name. This is UTF-8 by default.
96 </p>
97 <p>
98 The generic mount options, documented in the
99 <userinput>mount</userinput> manual page, apply also. Especially
100 useful are the options <codeph>uid</codeph>,
101 <codeph>gid</codeph> and <codeph>mode</codeph>, as they
102 can allow access by normal users in read/write mode,
103 depending on the settings, even if root has mounted the
104 filesystem.
105 </p>
106 </li>
107 <li>
108 <p>
109 In an OS/2 guest, use the <userinput>VBoxControl</userinput>
110 command to manage shared folders. For example:
111 </p>
112 <pre xml:space="preserve">VBoxControl sharedfolder use D: MyShareName
113VBoxControl sharedfolder unuse D:
114VBoxControl sharedfolder list</pre>
115 <p> As with Windows guests, shared folders can also be accessed using UNC ,
116 with <filepath>\\VBoxSF\</filepath>, <filepath>\\VBoxSvr\</filepath> or
117 <filepath>\\VBoxSrv\</filepath> as the server name and the shared folder name as
118 <varname>sharename</varname>. </p>
119 </li>
120 </ul>
121 </body>
122
123 </topic>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette