[arch-general] Migrating /var to a different partition
gdamjan at gmail.com
Thu Sep 4 07:36:06 EDT 2014
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
edit the /etc/fstab
On 4 September 2014 13:13, Sri Krishna <kitchi.srikrishna at gmail.com> wrote:
> I'm doing a clean install of Arch on a new computer, and during the install
> I'd already set aside 2GiB for the /var partition.
> Except I forgot to add it to fstab before I exited chroot, and booted into
> Arch and installed a DE etc. Now two days later I realize that Arch has
> already created a /var directory on the / partition. How do I migrate /var
> into the partition I'd originally created for it?
> Is it as simple as adding a line to fstab and rebooting?
More information about the arch-general