Resizing a tmpfs partition without losing the files

Took me just a few seconds of Googleing, but it seems worth taking a note here. To resize a tmpfs filesystem without losing the files. Assuming that /tmp is being mounted in a tmpfs. You can do it so it lasts until next reboot with: mount /tmp -o size=3000M,remount Or you can do it so …