Guest User

Untitled

a guest
Sep 25th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # How to mount remote partitions linux
  2.  
  3. A partition form a remote linux server:
  4.  
  5. ```
  6. sshfs user@server_ip:server_base_folder_path mount_path
  7. ```
  8.  
  9. for example:
  10.  
  11. ```
  12. sshfs user@server:/media/data /media/user/server
  13. ```
  14.  
  15. If you need to mount a windows style partition, use cifs protocol:
  16.  
  17. ```
  18. sudo mount -t cifs path_to_server_disk -o username=user,password=password mount_path
  19. ```
  20.  
  21. for example:
  22.  
  23. ```
  24. mount -t cifs //server/download -o username=user,password=myPassword /media/user/server
  25. ```
  26.  
  27. Where:
  28. * -t smbfs : File system type to be mount (outdated, use cifs)
  29. * -t cifs : File system type to be mount
  30. * -o : are options passed to mount command, in this example I had passed two options. First argument is password (vivek) and second argument is password to connect remote windows box
  31. * //server/download : Windows 2000/NT share name
  32. * /media/user/server Linux mount point (to access share after mounting)
Add Comment
Please, Sign In to add comment