[arch-general] Migrating /var to a different partition

Sri Krishna kitchi.srikrishna at gmail.com
Thu Sep 4 10:52:17 EDT 2014

So it seems like the most feasible approach is to boot from CD/USB into
rescue mode, mount var into /mnt, copy the contents of the old var folder
into the new one, add the new one into fstab and reboot.

I guess I should also delete the old var folder. I'll try that in the next
few days and report back on how it went! Hopefully it won't cause my system
to catch fire and explode. :)


On 4 September 2014 17:16, Martti Kühne <mysatyre at gmail.com> wrote:

> On Thu, Sep 4, 2014 at 1:36 PM, Damjan Georgievski <gdamjan at gmail.com>
> wrote:
> > make a filesystem on the extra partition (mkfs.ext4)
> > enter resuce or emergency mode (systemctl rescue) so that the least
> services run
> >
> > mount the new partition to /mnt
> > move everything from /var to /mnt
> > unmount /mnt
> > edit the /etc/fstab
> >
> > reboot
> >
> -1. Did you try this yourself? Can you think of any errors that your
> approach might cause?
> See, if you have open files in /var, they might get recreated on shutdown.
> Which leaves the mount point nonempty and probably breaks your boot
> process.
> cheers!
> mar77i

More information about the arch-general mailing list