[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: moving /var



Hello List,

On 01/03/13 09:53, Lars Noodén wrote:
On 3/1/13 10:41 AM, Maroš Žilka wrote:
What would be better way to do it ? Is it even possible to do such
change on running system without worries to lose some data ?

I wouldn't do it on a running system.  Better to boot from a live CD or
similar and do it from there.

A simple live CD is sufficient:
Debian netinst minimal CD in rescue mode is sufficient to do so.
Do not forget to update the /etc/fstab configuration file with respect
to the change; to clean up the /var (and let an empty one) in the `/' (root) partition.

Jerome



About a different way, the way I have done it is with tar using the -p
option.  I'm not sure if that's inherently better, but it is another way.

Regards,
/Lars




Reply to: