Ubuntu 20.04 LTS(桌面)
我无法在文件资源管理器的“其他位置”目录中查看我安装的驱动器。lsblk 显示驱动器安装在 FSTAB 中指定的正确位置。尽管没有显示在“其他位置”目录中,但我可以导航到驱动器并直接访问它们。导航到网络共享时,我无法在其他计算机上访问此驱动器。怎么了?
摘自 lsblk:
sda └─sda1 ext4 存储 759e847e-1eba-4676-b73c-a9ae111aa6c3 8.2T 4% /mnt/storage
smb.conf 的一部分
[NAS] comment = NAS browseable = yes path = /mnt/Storage/ read only = no guest ok = yes force user = root force group = root force directory mode = 0777 force create mode = 0777
excerpt from /etc/fstab
UUID=759e847e-1eba-4676-b73c-a9ae111aa6c3 /mnt/storage ext4 defaults 0 0
EDIT: The solution below fixed my issues. I needed to add the flag x-gvfs-show in my fstab.
Pretty sure these are three different problems.
[1] You are mounting it at /mnt/storage but your path in smb.conf is /mnt/Storage - with a capital "S". To Linux these are two different locations.
[2] Even if you change the spelling it still won't show up in "Other Locations" because it's not mounted under /media. It's a udisks2 thing.
您可以将其挂载为 /media/storage 或通过添加x-gvfs-show
fstab 声明来“强制”它“显示” :
UUID=bunch-of-numbers /mnt/storage ext4 defaults,x-gvfs-show 0 0
[3] 这些都不会对能够解析“超级服务器”主机名的 samba 客户端产生任何影响 - 如果修复后错误仍然存在 [1]。
请记住,Ubuntu 20 禁用了 SMB1,因此没有 Netbios 和 netbios 名称解析。您在客户端上使用的是什么版本的 Windows?
如果是 Windows 10,则通过其 mDNS 名称访问服务器:
\\super-server.local\nas
如果您确实在运行 Ubuntu 20 服务器,则需要安装 avahi:
sudo apt install avahi-daemon
如果您正在运行 Ubuntu 20 Desktop - 作为服务器 - 它已经存在。
如果您在 Win10 之前运行某些东西,我建议您通过 IP 地址访问服务器 - 例如:
\\192.168.1.101\nas
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句