Advertisement
Guest User

Untitled

a guest
Sep 17th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. [root@nix:/home/USER]# tail -15 /etc/nixos/configuration.nix
  2. fileSystems."/mnt/hgfs" = {
  3. device = ".host:/";
  4. fsType = "vmhgfs";
  5. options = [
  6. "rw"
  7. "nosuid"
  8. "nodev"
  9. "nofail"
  10. "relatime"
  11. "ttl=5"
  12. "uid=USER"
  13. "gid=USER"
  14. ];
  15. };
  16. }
  17.  
  18.  
  19. [root@nix:/home/USER]# nixos-rebuild test
  20. building Nix...
  21. building the system configuration...
  22. activating the configuration...
  23. setting up /etc...
  24. setting up tmpfiles
  25. warning: the following units failed: mnt-hgfs.mount
  26.  
  27. ● mnt-hgfs.mount - /mnt/hgfs
  28. Loaded: loaded (/etc/fstab; generated)
  29. Active: failed (Result: exit-code) since Mon 2018-09-17 22:33:29 CEST; 24ms ago
  30. Where: /mnt/hgfs
  31. What: .host:/
  32. Docs: man:fstab(5)
  33. man:systemd-fstab-generator(8)
  34. Process: 2804 ExecMount=/nix/store/d49n6q7b197j2nsnbdvn6i55rsnmiyq1-util-linux-2.31.1-bin/bin/mount .host:/ /mnt/hgfs -t vmhgfs -o rw,nosuid,nodev,relatime,ttl=5,uid=USER,gid=USER (code=exited, status=1/FAILURE)
  35.  
  36. Sep 17 22:33:29 nix systemd[1]: Mounting /mnt/hgfs...
  37. Sep 17 22:33:29 nix mount[2804]: Error: cannot mount filesystem: No such device
  38. Sep 17 22:33:29 nix systemd[1]: mnt-hgfs.mount: Mount process exited, code=exited status=1
  39. Sep 17 22:33:29 nix systemd[1]: mnt-hgfs.mount: Failed with result 'exit-code'.
  40. Sep 17 22:33:29 nix systemd[1]: Failed to mount /mnt/hgfs.
  41. warning: error(s) occurred while switching to the new configuration
  42.  
  43.  
  44. [root@nix:/home/USER]# /nix/store/d49n6q7b197j2nsnbdvn6i55rsnmiyq1-util-linux-2.31.1-bin/bin/mount .host:/ /mnt/hgfs -t vmhgfs
  45. Error: cannot mount filesystem: No such device
  46.  
  47.  
  48. [root@nix:/home/USER]# /nix/store/d49n6q7b197j2nsnbdvn6i55rsnmiyq1-util-linux-2.31.1-bin/bin/mount -t vmhgfs .host:/ /mnt/hgfs
  49. Error: cannot mount filesystem: No such device
  50.  
  51.  
  52. [root@nix:/home/USER]# mount | grep hgfs
  53.  
  54.  
  55. [root@nix:/home/USER]# vmhgfs-fuse .host:/ /mnt/hgfs
  56.  
  57.  
  58. [root@nix:/home/USER]# mount | grep hgfs
  59. vmhgfs-fuse on /mnt/hgfs type fuse.vmhgfs-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement