14.04 版中的“.gvfs”去哪儿了

14.04 版中的“.gvfs”去哪儿了

我的问题很“简单”。

在哪里可以找到我所连接的 Samba 共享的本地挂载点。在 12.04 中,它位于 下*home/.gvfs*

在此先感谢您的帮助。

这是我的 smb.conf 文件:

#======================= Global Settings =======================

[global]
workgroup = mshome
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
encrypt passwords = no
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
    map to guest = bad user
    usershare allow guests = yes
    comment = Home Directories
    browseable = no
    read only = no
security = user
username map = /etc/samba/smbusers

[printers]
    comment = All Printers
    browseable = no
    path = /var/spool/samba
    printable = yes
;   guest ok = no
;   read only = yes
    create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin
# A sample share for sharing your CD-ROM with others.

;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes
# The next two parameters show how to auto-mount a CD-ROM when the
#   cdrom share is accesed. For this to work /etc/fstab must contain
#   an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#   is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

[RED]
    comment = RED USB Disk
    path = /media/laurent06000/RED
    writeable = yes
;   browseable = yes
    guest ok = yes

[flareGet]
    path = /home/laurent06000/flareGet
    writeable = yes
;   browseable = yes
    guest ok = yes

[windows]
    comment = Windows Main drive
    path = /media/windows
    writeable = yes
;   browseable = yes
    guest ok = yes

答案1

感谢 LewisTM,您可以gvfs在中找到您的文件夹/run/user/$UID/gvfs

$ mount | grep gvfs

另请参阅

答案2

如果你没有.gvfs更多了,你应该能够使用 找到 gvfs 挂载位置mount | grep gvfs。例如, gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=nrd)

该位置就在那里,如果您愿意,可以使用mount | grep gvfs | awk '{print $3}'或类似命令以编程方式将其取出。此处的示例仅返回/run/user/1000/gvfs

如果你使用的是 12.10 之前的版本,那么你应该有~/.gvfs,但在 12.10 之后,请查看 /run/user/用户身份/gvfs/ 。
如果~/.gvfs已经存在(如果从早期版本升级就会出现这种情况),它不会在新版本中被破坏,但无论如何都会创建新目录。

您可以通过几种不同的方式找到您的uid,例如,通过查看/etc/passwd,或运行id --userecho "$UID"

新地点将是/run/user/$(id --user)/gvfs/

在我的系统中,$XDG_RUNTIME_DIR 变量还包含 gvfs 上方的目录:

$ env | grep user
[...]
XDG_RUNTIME_DIR=/run/user/1000

因此,在我的系统上,我有/run/user/1000/gvfs

另请参阅 为什么我的 gvfs 挂载没有出现在 ~/.gvfs 或 /run/user/<login>/gvfs 下?

答案3

它就在你的$HOME目录里面。

$ locate .gvfs
/home/avinash/.gvfs

相关内容