Page 1 of 1

Copy to ram, how to save /var/log directory after reboot?

Posted: 26 Dec 2014, 23:32
by Terus
What i want to achieve is to create a hybrid. Copy to ram mode with ability to mount /var/log under usb/hdd.

What i am doing right now is:
a) xzm2dir 001-core.xzm 001-core
b) add entry to /etc/fstab

Code: Select all

UUID=9267a4de-4123-401f-baaa-feee18dd9e85 /var/log          ext4    defaults 0       1
c) dir2xzm 001-core 001-core.xzm

But after build there is no sign in /etc/fstab (disappear).

Anyway i was trying add into /001-core/etc/rcS.d/S-show_gvfs

Code: Select all

echo """UUID=9267a4de-4123-401f-baaa-feee18dd9e85 /var/log ext4 defaults 0 1""" >> /etc/fstab
But after build it disappear also.
(not sure if entry disappears because of my bad skills xzm2dir / dir2xzm )

Please advice me where is the best place to add

Code: Select all

UUID=9267a4de-4123-401f-baaa-feee18dd9e85 /var/log          ext4    defaults 0       1
into /etc/fstab.

Re: Copy to ram, how to save /var/log directory after reboot

Posted: 27 Dec 2014, 00:57
by fanthom
please mount this partition through /etc/rc.d/rc.local as advised in /etc/fstab

Re: Copy to ram, how to save /var/log directory after reboot

Posted: 27 Dec 2014, 17:42
by Terus
Exactly, also works in /etc/rc.d/rc.services.