Re: Migrating /var to a different partition

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



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. :)

Thanks,
Krishna



On 4 September 2014 17:16, Martti Kühne <mysatyre@xxxxxxxxx> wrote:

> On Thu, Sep 4, 2014 at 1:36 PM, Damjan Georgievski <gdamjan@xxxxxxxxx>
> 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
>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux