On Fri, 2019-08-16 at 09:58 -0300, George N. White III wrote:
On Fri, 16 Aug 2019 at 09:18, Patrick O'Callaghan
<pocallaghan(a)gmail.com>
wrote:
> I'm trying to rationalise space by moving my /var directory from its
> own partition to /, as currently there's a lot of wastage. I've copied
> /var to /newvar with rsync, and now want to mount /newvar as /var on
> reboot by creating an entry in /etc/fstab. This is it (using /var-tst
> for testing):
>
> /newvar /var-tst ext4
> loop 0 0
>
> but I'm getting:
>
> mount: /var-tst: failed to setup loop device for /newvar.
>
> /var-tst exists, so that's the problem? The man page for mount states
> that it will create the necessary /dev loopback device if it isn't
> specified. Currently there are no loopback devices in the system, and
> the loop kernel module is loaded.
>
The default scheme has /var as a directory.
Can you boot from live media? If so, you could just rename `/newvar` to
`/var` and edit fstab.
I may have to do that as /var is too central to booting even in single-
user mode.
poc