Ardour recording to ramdisk
ramdisk for ardour to record to....or general use
#create 'ramdisksave' directory using terminal
mkdir /home/ramdisksave
#edit grub config or custom_40. This allocates max ram for ramdisks
kernel /vmlinuz ramdisk_size=2048000
#edit rc.local add these lines to create & mount ramdisk at boot
mke2fs -t ext2 /dev/ram1 2048000
mount /dev/ram1 /home/ramdisksave
#copies 'ramdisksave' contents to ramdisk save as *.sh make exe!
cp -a /home/ramdisksave/. /mnt/ram1
#saves ramdisk contents to ramdisksave folder save as *.sh make exe!
cp -a /mnt/ram1/. /home/ramdisksave/
#deletes ramdisk contents save as *.sh make exe!
cd /mnt && rm -rf ram1/*
#deletes ramdisksave contents save as *.sh make exe! DANGEROUS!!
cd /home && rm -rf ramdisksave/*
for safety better to create ramdisksave on another partition especially in puppy linux to save space in savefile. Scripts can be crontabbed, can add tar compression options to save space, use rsync to copy only new etc etc.......script lines can be added to r.sysinit for startup and rc.shutdown for load and save at startup and shutdown. But I like it as it is....reliable and simple.
|