Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I create a ram disk on cent os using tmpfs will it go away on restart? I know the data will go away (I would assume), but will it still survive a reboot?

I am going to allocate a ram disk for use on mysql /tmp directory I just want to make sure it will work after reboot. (I don't have another server to try it on)

share|improve this question

migrated from serverfault.com Apr 27 '14 at 14:25

This question came from our site for system and network administrators.

    
What do you mean by making sure it will work? Do you want the /tmp directory to be tmpfs again (that is easily done with an entry in /etc/fstab and starting mysql after mounting). But the contents mysql put there will be gone. – Anthon Apr 29 '14 at 4:27

The data on a tmpfs (Temporary Filesystem) will not persist across reboots.

If you only care to preserve the mountpoint, that will be dictated by your /etc/fstab definition.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.