Mount MareNostrum folders: Difference between revisions

From Wiki
Jump to navigation Jump to search
Rgarcia (talk | contribs)
m Alias moved to Mount MareNostrum folders: Previous name was not a good descriptor
Rgarcia (talk | contribs)
No edit summary
Line 1: Line 1:
go back to [[Main Page]], [[Computational Resources]], [[Scripts]], [[Scripts for VASP]] or [[VASP]]
go back to [[Main Page]], [[Computational Resources]], [[Núria López and Group]], [[Scripts]], [[Scripts for VASP]], [[VASP]]


* Install sshfs:
$ sudo apt install sshfs


1. install sshfs : sudo apt-get install sshfs
* Create the folders where you will mount MareNostrum:  
$ mkdir  ~/marenostrum-home ~/marenostrum-scratch ~/marenostrum-projects


2. create the folder to mount marenostum: mkdir ~/marenostrum
* Add these lines in your .bashrc file, where iciq72XXX is your group(iciq72)+user(XXX) id.
# MareNostrum aliases:
alias mn-mount="sshfs iciq72XXX@dl01.bsc.es: ~/marenostrum-home/ ; sshfs iciq72XXX@dl01.bsc.es:/gpfs/scratch/iciq72/iciq72590 ~/marenostrum-scratch/ ; sshfs iciq72XXX@dt01.bsc.es:/gpfs/projects/iciq72 ~/marenostrum-projects "
  alias mn-umount="sudo umount -l ~/marenostrum-home ~/marenostrum-scratch ~/marenostrum-projects"


3. Add these two lines in your .bashrc file.
* Source the .bashrc file:
$ . ~/.bashrc


alias mmare="sshfs iciq23762@dl01.bsc.es: ~/marenostrum/"
* To mount your MareNostrum folders, type:  
$ mn-mount


alias umare="sudo umount -l ~/marenostrum/"
* To umount:
 
  $ mn-umount
4 Source the .bashrc file: . .bashrc or open a new terminal.
 
5. Type mmare or umare in terminal, After typing the password and you can see Marenostrum like teklahome on our computers.
 
Do not forget to change the iciq23762@dl01.bsc.es to yours.
You can also change mmare(umare) with whatever command name you like.
 
Enjoy

Revision as of 17:51, 19 February 2020

go back to Main Page, Computational Resources, Núria López and Group, Scripts, Scripts for VASP, VASP

  • Install sshfs:
$ sudo apt install sshfs
  • Create the folders where you will mount MareNostrum:
$ mkdir  ~/marenostrum-home ~/marenostrum-scratch ~/marenostrum-projects
  • Add these lines in your .bashrc file, where iciq72XXX is your group(iciq72)+user(XXX) id.
# MareNostrum aliases: 
alias mn-mount="sshfs iciq72XXX@dl01.bsc.es: ~/marenostrum-home/ ; sshfs iciq72XXX@dl01.bsc.es:/gpfs/scratch/iciq72/iciq72590 ~/marenostrum-scratch/ ; sshfs iciq72XXX@dt01.bsc.es:/gpfs/projects/iciq72 ~/marenostrum-projects "
alias mn-umount="sudo umount -l ~/marenostrum-home ~/marenostrum-scratch ~/marenostrum-projects" 
  • Source the .bashrc file:
$ . ~/.bashrc 
  • To mount your MareNostrum folders, type:
$ mn-mount
  • To umount:
$ mn-umount