diff options
author | andreas@tuxedobook | 2017-09-02 15:37:44 +0200 |
---|---|---|
committer | andreas@tuxedobook | 2017-09-02 15:42:41 +0200 |
commit | 07943443fe3fc96983c1ca697ffe771c448356dc (patch) | |
tree | 7a93953181b7f831cb77534efe702c4b17921bac | |
parent | dbf1f762d93d3adabde45af905891e89af68696e (diff) | |
download | dotfiles-07943443fe3fc96983c1ca697ffe771c448356dc.zip dotfiles-07943443fe3fc96983c1ca697ffe771c448356dc.tar.gz |
Added 'mount-tmpfs.sh' script
-rw-r--r-- | src/bin/mount-tmpfs.sh | 11 | ||||
-rw-r--r-- | src/bin/umount-tmpfs.sh | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/bin/mount-tmpfs.sh b/src/bin/mount-tmpfs.sh new file mode 100644 index 0000000..d3570ae --- /dev/null +++ b/src/bin/mount-tmpfs.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ $# -lt 1 ] ;then + echo "Usage: $(basename $0) <size>"; + echo "Eg: $(basename $0) 1G"; + exit; +fi + +echo mount -t tmpfs -o size=$1 none /mnt/tmpfs +sudo mount -t tmpfs -o size=$1 none /mnt/tmpfs + diff --git a/src/bin/umount-tmpfs.sh b/src/bin/umount-tmpfs.sh new file mode 100644 index 0000000..3d1c8aa --- /dev/null +++ b/src/bin/umount-tmpfs.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo sudo umount /mnt/tmpfs +sudo umount /mnt/tmpfs + |