Re: Loopback mount in fstab fails

2019-08-17 Thread Patrick O'Callaghan
On Sun, 2019-08-18 at 08:06 +1000, Cameron Simpson wrote: > On 17Aug2019 12:01, Patrick O'Callaghan wrote: > > On Sat, 2019-08-17 at 09:38 +1000, Cameron Simpson wrote: > > > Really, all you need to do is to remove the /var fstab entry, umount > > > the > > > existing /var mount, rsync /newvar BA

Re: Loopback mount in fstab fails

2019-08-17 Thread Cameron Simpson
On 17Aug2019 12:01, Patrick O'Callaghan wrote: On Sat, 2019-08-17 at 09:38 +1000, Cameron Simpson wrote: Really, all you need to do is to remove the /var fstab entry, umount the existing /var mount, rsync /newvar BACK INTO the stub /var mountpoint which is there, scrub /newvar. /var cannot b

Re: Loopback mount in fstab fails

2019-08-17 Thread Patrick O'Callaghan
On Sat, 2019-08-17 at 17:59 +0200, francis.montag...@inria.fr wrote: > Hi. > > On Sat, 17 Aug 2019 12:01:01 +0100 Patrick O'Callaghan wrote: > > I did finally solve it following the suggestion from > > francis.montag...@inria.fr (adding rd.break=pre-pivot to the boot line, > > then remounting /sy

Re: Loopback mount in fstab fails

2019-08-17 Thread Francis . Montagnac
Hi. On Sat, 17 Aug 2019 12:01:01 +0100 Patrick O'Callaghan wrote: > I did finally solve it following the suggestion from > francis.montag...@inria.fr (adding rd.break=pre-pivot to the boot line, > then remounting /sysroot etc.) Correction: that was a suggestion of Tony Nelson (thanks for this t

Re: Loopback mount in fstab fails

2019-08-17 Thread Patrick O'Callaghan
On Sat, 2019-08-17 at 09:38 +1000, Cameron Simpson wrote: > On 16Aug2019 13:18, Patrick O'Callaghan 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 wan

Re: Loopback mount in fstab fails

2019-08-16 Thread Cameron Simpson
On 16Aug2019 13:18, Patrick O'Callaghan 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/fsta

Re: Loopback mount in fstab fails

2019-08-16 Thread Patrick O'Callaghan
On Fri, 2019-08-16 at 09:20 -0400, Tom Horsley wrote: > On Fri, 16 Aug 2019 14:11:09 +0100 > Patrick O'Callaghan wrote: > > > That was the first thing I tried, but I can't rename /newvar to /var as > > /var is "in use" and of course can't be unmounted. > > That sort of thing is what live media wa

Re: Loopback mount in fstab fails - SOLVED

2019-08-16 Thread Patrick O'Callaghan
On Fri, 2019-08-16 at 11:03 -0400, Tony Nelson wrote: > On 19-08-16 09:25:36, francis.montag...@inria.fr wrote: > > Hi. > > > > On Fri, 16 Aug 2019 14:12:06 +0100 Patrick O'Callaghan wrote: > > > On Fri, 2019-08-16 at 09:58 -0300, George N. White III wrote: > > > > Can you boot from live media? If

Re: Loopback mount in fstab fails

2019-08-16 Thread Patrick O'Callaghan
On Fri, 2019-08-16 at 08:26 -0700, Mike Wright wrote: > On 8/16/19 6:09 AM, Patrick O'Callaghan wrote: > > On Fri, 2019-08-16 at 08:29 -0400, Tom Horsley wrote: > > > On Fri, 16 Aug 2019 13:18:03 +0100 > > > Patrick O'Callaghan wrote: > > > > > > > PS Suggestions on how to move /var without all th

Re: Loopback mount in fstab fails

2019-08-16 Thread Mike Wright
On 8/16/19 6:09 AM, Patrick O'Callaghan wrote: On Fri, 2019-08-16 at 08:29 -0400, Tom Horsley wrote: On Fri, 16 Aug 2019 13:18:03 +0100 Patrick O'Callaghan wrote: PS Suggestions on how to move /var without all this jiggery-pokery are also welcome. What you want is a "bind" mount. Something l

Re: Loopback mount in fstab fails

2019-08-16 Thread Tony Nelson
On 19-08-16 09:25:36, francis.montag...@inria.fr wrote: Hi. On Fri, 16 Aug 2019 14:12:06 +0100 Patrick O'Callaghan wrote: > On Fri, 2019-08-16 at 09:58 -0300, George N. White III wrote: >> Can you boot from live media? If so, you could just rename `/newvar` to >> `/var` and edit fstab. > I

Re: Loopback mount in fstab fails

2019-08-16 Thread Francis . Montagnac
Hi. On Fri, 16 Aug 2019 14:12:06 +0100 Patrick O'Callaghan wrote: > On Fri, 2019-08-16 at 09:58 -0300, George N. White III wrote: >> 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

Re: Loopback mount in fstab fails

2019-08-16 Thread Tom Horsley
On Fri, 16 Aug 2019 14:11:09 +0100 Patrick O'Callaghan wrote: > That was the first thing I tried, but I can't rename /newvar to /var as > /var is "in use" and of course can't be unmounted. That sort of thing is what live media was invented for :-). Boot off a live USB stick, mount the system dis

Re: Loopback mount in fstab fails

2019-08-16 Thread Patrick O'Callaghan
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 > 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

Re: Loopback mount in fstab fails

2019-08-16 Thread Patrick O'Callaghan
On Fri, 2019-08-16 at 22:25 +0930, Tim via users wrote: > On Fri, 2019-08-16 at 13:18 +0100, Patrick O'Callaghan 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,

Re: Loopback mount in fstab fails

2019-08-16 Thread Patrick O'Callaghan
On Fri, 2019-08-16 at 08:29 -0400, Tom Horsley wrote: > On Fri, 16 Aug 2019 13:18:03 +0100 > Patrick O'Callaghan wrote: > > > PS Suggestions on how to move /var without all this jiggery-pokery are > > also welcome. > > What you want is a "bind" mount. Something like this: > > /zooty/home

Re: Loopback mount in fstab fails

2019-08-16 Thread George N. White III
On Fri, 16 Aug 2019 at 09:18, Patrick O'Callaghan 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 e

Re: Loopback mount in fstab fails

2019-08-16 Thread Tim via users
On Fri, 2019-08-16 at 13:18 +0100, Patrick O'Callaghan 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 a

Re: Loopback mount in fstab fails

2019-08-16 Thread Tom Horsley
On Fri, 16 Aug 2019 13:18:03 +0100 Patrick O'Callaghan wrote: > PS Suggestions on how to move /var without all this jiggery-pokery are > also welcome. What you want is a "bind" mount. Something like this: /zooty/home /home nonerw,bind 0 0 I use this to put

Loopback mount in fstab fails

2019-08-16 Thread Patrick O'Callaghan
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): /newv