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

Post here if you are a new Porteus member and you're looking for some help.
Terus
White ninja
White ninja
Posts: 17
Joined: 02 Jan 2014, 12:14
Distribution: porteus
Location: Location

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

Post#1 by Terus » 26 Dec 2014, 23:32

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.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#2 by fanthom » 27 Dec 2014, 00:57

please mount this partition through /etc/rc.d/rc.local as advised in /etc/fstab
Please add [Solved] to your thread title if the solution was found.

Terus
White ninja
White ninja
Posts: 17
Joined: 02 Jan 2014, 12:14
Distribution: porteus
Location: Location

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

Post#3 by Terus » 27 Dec 2014, 17:42

Exactly, also works in /etc/rc.d/rc.services.

Post Reply