You are not logged in.

#1 2006-11-25 14:49:38

ccchris
Member
Registered: 2006-09-25
Posts: 16

mount /var as a ramdisk?

Hi, I'm going to install arch onto a compact flash card. To minimize writes to the card am I going to link /tmp to /var/tmp and create a ramdisk at boot for /var to be mounted in.

Do I have to recreate the /var file system in the boot process somehow or will this be created automatically?

Is there anything else I should think about?

Thanks!

Offline

#2 2006-11-25 19:44:26

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: mount /var as a ramdisk?

Unless I'm mistaken, this won't work.  /var needs some permanent storage medium - things like the pacman database and all logfiles are stored there, for example.

Offline

#3 2006-11-25 20:25:51

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: mount /var as a ramdisk?

Concerning pacman, looking at the manpage ,it's seems possible to chose where is stored the database:

CONFIG: OPTIONS
       DBPath = path/to/db/dir
              Overrides  the  default location of the toplevel database direc-
              tory.  The default is var/lib/pacman.

. But ialso thinks it will be hard to put the entire /var into a ramdisk.

Offline

Board footer

Powered by FluxBB