{{tag>bash shell commands mount fs}}

====== mount - Монтирование файловой системы ======

===== mount rw =====

  * mount -o remount,rw /

===== Ускорение файловой системы EXT2 - EXT4 =====

  * В 4 секции /etc/fstab ввести **,noatime,nodiratime**


===== Монтирование tmpfs =====

/etc/fstab

  # Пример
  none    /dev/shm   tmpfs    defaults             0       0
  tmpfs    /tmp   tmpfs    defaults             0       0
  chromium-cache   /home/USER/.cache/chromium   tmpfs    defaults,noatime,mode=1777,size=500M    0    0


===== Remote mount / Удаленое монтирование =====

  mount -tfuse sshfs#root@hosting.reklamu.ru:tmp ./test

  apt-get install sshfs

  mount -tsshfd sshfs#root@hosting.reklamu.ru:tmp ./test

  mount -tsshfs sshfs#root@hosting.reklamu.ru:tmp ./test

  mount sshfs#root@hosting.reklamu.ru:tmp ./test
  


===== Монтирование tmpfs =====

/etc/fstab

  # Пример
  none    /dev/shm   tmpfs    defaults             0       0
  tmpfs    /tmp   tmpfs    defaults             0       0
  chromium-cache   /home/USER/.cache/chromium   tmpfs    defaults,noatime,mode=1777,size=500M    0    0
  
===== Размонтирование =====

  * [[system:umount]]
  