我有一个旧的MacBook专业,我过去运行的Crashplan。我有一个2TB的硬盘连接到一个树莓派,我使用的NAS。MacBook可以看到驱动器没有问题,它可以在Crashplan中看到。
MBP现在太老了,无法正常运行OSX,所以我已经安装了Ubuntu,而且它看起来更稳定。
在“文件”中,我可以看到网络驱动器是smb://raspberrapi.local/thedrive/,我通过右键单击并选择‘挂载’,当尝试在Crashplan中添加驱动器时找不到它--它不会出现在/media或/mnt中。
我该怎么做才能让它显眼?
发布于 2022-02-28 17:04:33
我不知道crashplan是什么,但是smb://raspberrypi.local/thedrive/将挂载到:
/run/user/$UID/gvfs/smb-share:server=raspberrypi.local,share=thedrive其中$UID是您的用户id号-通常是1000。
只需打开终端并运行:
ls -l /run/user/$UID/gvfs编辑:You在安装cifs时可能会做得更好:
创建一个挂载点-示例:
sudo mkdir /mnt/thedrive然后临时安装:
sudo mount -t cifs //raspberrypi.local/thedrive /mnt/thedrive -o username=XXXX,password=YYYY,uid=1000将XXXX和YYYY替换为pi所期望的凭据,如果不知道,则将1000更改为运行在终端中的真实uid号运行的id。
EDIT2:要使其持久,请将以下内容添加到fstab中:
//raspberrypi.local/thedrive /mnt/thedrive cifs username=XXXX,password=YYYY,uid=1000 0 0当访问挂载点时,该行的一个变体使其挂载,如下所示:
//raspberrypi.local/thedrive /mnt/thedrive cifs username=XXXX,password=YYYY,uid=1000,noauto,x-systemd.automount 0 0如果您的系统试图在网络堆栈完全运行之前访问pi,则此方法非常有用。
https://askubuntu.com/questions/1395277
复制相似问题