在Virtual Box上运行的Mint Linux中永久挂载共享文件夹(Permanently mount shared folder in Mint Linux running on Virtual Box)
我已经在Virtual box上安装了mint Linux 8.0。
我在虚拟框中创建了一个共享文件夹,并使用mount命令在Linux上进行了装载。
这里的问题是,只要我关机并重新启动Linux挂载的文件夹将不可用和(我需要重新挂载它)。
那么我怎样才能在linux上轻松地安装共享文件夹,以便我可以随时访问?
I have installed mint Linux 8.0 on Virtual box.
I have created a shared folder in virtual box and i have mounted on linux using mount command.
The problem here is as soon as i shut down and restart linux the mounted folder will not available and (i need to re mount it again).
So how i can mount the shared folder permenently on linux so that i can access any time?
原文:https://stackoverflow.com/questions/2333493
最满意答案
看起来两次在同一个文件句柄上使用LOCKFILE_EXCLUSIVE_LOCK调用LockFileEx是无效的。 它必须是不同的文件句柄或句柄的某种进程内同步。
令人不安的是,MSDN文档中的问题没有明确的含义。 并且在运行时没有明确的错误消息。 更重要的是,在我看来,这个问题只能在我的电脑上重现。 这有点难看。
It looks like it's invalid to call LockFileEx with LOCKFILE_EXCLUSIVE_LOCK on the same file handle twice. It have to be different file handles or some kind of in-process synchronization for the handle.
The disturbing thing is that there is no unambiguity for the question in MSDN documentation. And there is no clear message of error at runtime. Even more, it seems to me that the problem reproduced only on my computer. This is ugly some kind.
相关问答
更多-
c语言之后还可以学什么[2022-05-01]
c++ -
好吧,这是Ubuntu内核中的已知错误。 有关Xamarin的报告错误: https ://bugzilla.xamarin.com/show_bug.cgi ? id = 29827 因此,如果你在这些机器上更新内核,那么bug就会消失(我们希望如此)。 干杯! Ok, it's a known bug in the kernel of Ubuntu. There is a report bug on Xamarin: https://bugzilla.xamarin.com/show_bug.cgi?i ...
-
如何为Microsoft .NET .NET 4 C#编译器指定.NET版本?(How to specify .NET version for .NET 4 C# compiler from microsoft?)[2023-05-16]
像这样的东西应该工作: Dictionaryoptions = new Dictionary (); options.Add("CompilerVersion", "v2.0"); CSharpCodeProvider provider = new CSharpCodeProvider(options); 请参阅: CSharpCodeProvider构造函数(IDictionary) 。 Something like this sho ... -
我将其追踪到“无效的字符串绑定”错误,这就是我首先添加了Kill()/ Exit()调用的原因。 当我按照解决方案时,我显然改变了一些东西: 0xC0020001:字符串绑定无效。 - 仅发生在WPF中 (我将/NOENTRY添加到我的C ++ / ClI DLL的链接器选项中) I tracked it down to an "Invalid string binding" error, which is the reason I had added the Kill()/Exit() call in t ...
-
@RustyX可能是正确的。 如果有的话,在单个进程中混合使用多个C ++运行时库的可能性不大。 JVM似乎依赖于Microsoft C ++运行时。 添加GNU C ++运行时不太可能。 MinGW的这个页面解决了一些问题: 不同编译器品牌创建的图书馆互操作性 ... 即使GNU g ++现在可以链接MSVC C ++库,并且可以生成与MSVC ++兼容的库/ DLL,但这并不意味着由于C ++的动态特性,它们将能够在运行时工作。 一些可能的原因是: 简单的名称修改问题,它可以通过显式.def文件来规避。 ...
-
看起来两次在同一个文件句柄上使用LOCKFILE_EXCLUSIVE_LOCK调用LockFileEx是无效的。 它必须是不同的文件句柄或句柄的某种进程内同步。 令人不安的是,MSDN文档中的问题没有明确的含义。 并且在运行时没有明确的错误消息。 更重要的是,在我看来,这个问题只能在我的电脑上重现。 这有点难看。 It looks like it's invalid to call LockFileEx with LOCKFILE_EXCLUSIVE_LOCK on the same file handle ...
-
如果优先级是使用最少的编译时间设置,那么我只是将检查移动到运行时并使用反射来检查方法是否可用并在不是时使用变通方法。 这是一个额外的好处,在安装了4.5的客户端中运行的.NET 4.0应用程序将使用更好的方法。 样品: static Func
GetFactoryDelegate; private static void Main() { Console.WriteLine(GetFactory(new SqlConnection( ... -
c #webrequest挂起(c# webrequest hangs)[2021-09-27]
请尝试以下方法: var response = request.GetResponse(); //do stuff with response response.Close(); WebResponse实例保存活动连接,您必须先关闭该连接,然后再将新连接建立到同一服务器。 您也可以using子句执行此using ,这取决于您: using (var response = request.GetResponse()) { //do stuff with response } Try the fol ... -
您的进程标识无权访问该目录。 另一个问题你打算在哪里发布这个。 一个理智的管理员会阻止任何网站在服务器上运行可执行文件或批处理文件 I'm going to put an answer in here because I hate leaving things unresolved. I never could get this to work exactly right in this form. I had a network admin check permissions just to make s ...
-
对于VS无法捕获的低级别问题, WinDBG是一个很好的选择。 您可以在此处找到更多信息: Windows调试工具 WinDBG is a good alternative for low level issues that VS cannot trap. You can find more information here: Debugging Tools for Windows