“.gvfs”已经在14.04中出现了
我的问题是“简单”。
在哪里可以找到我连接的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
感谢LewisTM,您可以在/run/user/$UID/gvfs
找到您的gvfs
文件夹。
$ mount | grep gvfs
也看到这个 。
如果您不再使用.gvfs
,您应该能够使用mount | grep 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}'
来以编程方式将其拉出来 mount | grep gvfs | awk '{print $3}'
mount | grep gvfs | awk '{print $3}'
或类似的东西。 这里的示例只返回/run/user/1000/gvfs
。
如果您是12.10之前的版本,则应该有~/.gvfs
,但是在12.10之后查看/ run / user / user_id / gvfs /。
如果已经存在~/.gvfs
(如果从早期版本升级将会发生),它将不会在新版本中被破坏,但无论如何都将创建新目录。
您可以通过几种不同的方式找到您的uid,例如,查看/etc/passwd
,或运行id --user
或echo "$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 /
它就在你的$HOME
目录里面。
$ locate .gvfs /home/avinash/.gvfs