Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a headless ubuntu server acting as a fileserver (samba and ssh) and sometimes virtualbox host. It is currently running from a USB drive, since all hard drive slots on the motherboard are occupied.

Since any OS can be rather write happy, and flash memory drives have limited write lifespan , I want to minimize the number of writes the OS makes to the drive.

I have already moved the swap files to one of the hard drives. Can I mount any other 'chatty' folders on the hard drives as well? (I imagine /var/log makes a few writes ever so often)

Which folders in a normal base ubuntu install are often written to, and how can I mount those folders on a separate drive?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The Filesystem Hierarchy Standard specifies:

/var contains variable data files

So moving /var should have the biggest impact.

If you have enough RAM, you could also mount /tmp as tmpfs because it usually contains only small files which don't have to be persistent between reboots. In fact the FHS even says:

Programs must not assume that any files or directories in /tmp are preserved between invocations of the program.

share|improve this answer
add comment

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.