Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
# mkdir -p /mnt/tmpfs
# mount -t tmpfs -o size=6400M tmpfs /mnt/tmpfs

I ran that but if I was to reboot will I need to run that again because it is tmpfs?

How do I get that mount point to come back on a reboot?

share|improve this question
    
For what purpose? –  Andrew Apr 24 '13 at 5:19

1 Answer 1

up vote 3 down vote accepted

As usual: You can define this in /etc/fstab

none     /tmp/tmpfs     tmpfs     defaults,size=6400M     0 0
share|improve this answer
1  
I think however that you want /mnt/tmpfs instead of /tmp –  ETL Apr 24 '13 at 2:45
    
can that be done with a software raid? –  Jake Thomas Apr 24 '13 at 2:52
    
@ETL Sure, was just lazy with copying. –  Hauke Laging Apr 24 '13 at 2:53
    
@JakeThomas Would you mind rephrasing your question? I have no idea what you want to know. How do you come from tmpfs to mdraid? But of course, /dev/md* devices can be (and usually are) configured in fstab. –  Hauke Laging Apr 24 '13 at 2:56
1  
you could also add the size option to your fstab example, so it will do exactly what he wants –  Renan Apr 24 '13 at 3:15

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.