Tmpfs

De Linuxmemo.

(Différences entre les versions)
(Page créée avec « Catégorie:Script Créer un tmpfs, un repertoire en memoire ram Ref: https://www.system-linux.eu/index.php?post/2009/09/10/cr%C3%A9er-un-tmpfs%2C-un-repertoire-dans-votr... »)
Ligne 6 : Ligne 6 :
  mkdir /mnt/mytmpfs
  mkdir /mnt/mytmpfs
  chmod 777 /mnt/mytmpfs
  chmod 777 /mnt/mytmpfs
-
  mount -t tmpfs -o size=512M tmpfs /mnt/mytmpfs
+
  mount -t tmpfs -o size=5M tmpfs /mnt/mytmpfs
 +
 +
Ou dans /etc/fstab :
 +
tmpfs /mnt/mytmpfs tmpfs defaults,size=5m 0 0

Version du 23 octobre 2018 à 13:48

Créer un tmpfs, un repertoire en memoire ram

Ref: https://www.system-linux.eu/index.php?post/2009/09/10/cr%C3%A9er-un-tmpfs%2C-un-repertoire-dans-votre-ram

mkdir /mnt/mytmpfs
chmod 777 /mnt/mytmpfs
mount -t tmpfs -o size=5M tmpfs /mnt/mytmpfs

Ou dans /etc/fstab :
tmpfs /mnt/mytmpfs tmpfs defaults,size=5m 0 0
Outils personnels