virtual box 下 Ddebian11自动挂载共享文件夹

VBox共享文件夹添加方法网上有很多,此处不再赘述。只记录自动挂载方法。

开机自动挂载,可以在  /etc/fstab 文件末添加一项

Shared /home/username/SharedDir vboxsf rw,gid=100,uid=1000,auto 0 0

关键字介绍:

在/etc/fstab文件中有详细介绍。这里只做简单说明。

Shared :在VirtualBox中设置的共享文件夹的名称。

/home/username/SharedDir : 挂载的目录。

vboxsf:文件格式。

rw,gid=100,uid=1000,auto:权限及用户信息等。

 

参考链接:

https://its301.com/article/e_wsq/23510967

 

posted @ 2022-09-23 21:31  Ragnaros  阅读(272)  评论(0)    收藏  举报