Re: Near clones of a Debian install

2016-07-24 Thread Richard Owlett
On 7/23/2016 2:16 AM, Richard Owlett wrote: On 7/22/2016 2:55 PM, Pascal Hambourg wrote: [snip] Quite. I have cloned a root partition on the same disk in order to do some experiments on the cloned system. I think I just changed the UUID and label in the filesystem metadata and in /etc/fstab.

Re: Near clones of a Debian install

2016-07-23 Thread Richard Owlett
On 7/22/2016 6:23 PM, Dan Ritter wrote: On Fri, Jul 22, 2016 at 11:04:23AM -0500, Richard Owlett wrote: I have a laptop set aside for experimenting with Debian installs. I've not yet defined my personal "optimal" install. My nominally base install will be a reasonably standard CLI plus a

Re: Near clones of a Debian install

2016-07-23 Thread Richard Owlett
On 7/22/2016 4:57 PM, Pascal Hambourg wrote: Le 22/07/2016 à 23:21, Pascal Hambourg a écrit : Can you write into a snapshot ? I assumed that a snapshot was just an immutable image of the original volume taken at a given moment. Never mind, I just found out that LVM2 snapshots are read/write.

Re: Near clones of a Debian install

2016-07-23 Thread Richard Owlett
On 7/22/2016 1:12 PM, rhkra...@gmail.com wrote: On Friday, July 22, 2016 01:41:01 PM Pascal Hambourg wrote: Le 22/07/2016 à 18:04, Richard Owlett a écrit : That base install *SHALL BE* on a read-only partition (e.g. sda5). I wish to "almost clone" it to sda5, (e.g. sda6, sda7, sda8). (...)

Re: Near clones of a Debian install

2016-07-23 Thread Richard Owlett
On 7/22/2016 2:55 PM, Pascal Hambourg wrote: Le 22/07/2016 à 20:07, Richard Owlett a écrit : The partition will be marked "read only" *AFTER* install. May I ask how you intend to do this ? AFAIK, there is no persistent way to mark a partition or filesystem read-only. GPT partition table

Re: Near clones of a Debian install

2016-07-22 Thread Dan Ritter
On Fri, Jul 22, 2016 at 11:04:23AM -0500, Richard Owlett wrote: > I have a laptop set aside for experimenting with Debian installs. > I've not yet defined my personal "optimal" install. > My nominally base install will be a reasonably standard CLI plus a > personally preferred default set of

Re: Near clones of a Debian install

2016-07-22 Thread Pascal Hambourg
Le 22/07/2016 à 23:21, Pascal Hambourg a écrit : Can you write into a snapshot ? I assumed that a snapshot was just an immutable image of the original volume taken at a given moment. Never mind, I just found out that LVM2 snapshots are read/write. Thanks for the tip.

Re: Near clones of a Debian install

2016-07-22 Thread Pascal Hambourg
Le 22/07/2016 à 22:22, Stefan Monnier a écrit : Use LVM, of course (and you can use LVM snapshots to speed up the cloning). Sounds like a nice idea, but how do you use snapshots to clone a logical volume and then use the clone as a regular volume ? Not sure what you mean by "regular volume".

Re: Near clones of a Debian install

2016-07-22 Thread Stefan Monnier
>> Use LVM, of course (and you can use LVM snapshots to speed up the >> cloning). > Sounds like a nice idea, but how do you use snapshots to clone a logical > volume and then use the clone as a regular volume ? Not sure what you mean by "regular volume". All my "partitions" are logical volumes

Re: Near clones of a Debian install

2016-07-22 Thread Pascal Hambourg
Le 22/07/2016 à 20:29, Stefan Monnier a écrit : Use LVM, of course (and you can use LVM snapshots to speed up the cloning). Sounds like a nice idea, but how do you use snapshots to clone a logical volume and then use the clone as a regular volume ?

Re: Near clones of a Debian install

2016-07-22 Thread Pascal Hambourg
Le 22/07/2016 à 20:07, Richard Owlett a écrit : The partition will be marked "read only" *AFTER* install. May I ask how you intend to do this ? AFAIK, there is no persistent way to mark a partition or filesystem read-only. GPT partition table entries have a read-only flag but it seems to

Re: Near clones of a Debian install

2016-07-22 Thread Stefan Monnier
> The above "almost" refers to whatever is required to run Debian as installed > to that *explicit* partition. Maybe systemd is a bit more picky, but at least in the past, the root partition did not need to be present in /etc/fstab, so in many cases there was no need to do anything at all when

Re: Near clones of a Debian install

2016-07-22 Thread Richard Owlett
First I wish to say "Thank you!". Second I wish to say *ROFL* ;/ I have a suitably large hard disk. I have a suitable preseed.cfg file. I have used said preseed.cfg to produce required installs. Each ~"clone" takes too long ;/ For _idiosyncratic_ reasons I will *NOT* accept a VM. My default

Re: Near clones of a Debian install

2016-07-22 Thread rhkramer
On Friday, July 22, 2016 01:41:01 PM Pascal Hambourg wrote: > Le 22/07/2016 à 18:04, Richard Owlett a écrit : > > That base install *SHALL BE* on a read-only partition (e.g. sda5). > > I wish to "almost clone" it to sda5, (e.g. sda6, sda7, sda8). > > (...) > > > Does that make sense? > > Not

Re: Near clones of a Debian install

2016-07-22 Thread Richard Owlett
On 7/22/2016 12:41 PM, Pascal Hambourg wrote: Le 22/07/2016 à 18:04, Richard Owlett a écrit : That base install *SHALL BE* on a read-only partition (e.g. sda5). I wish to "almost clone" it to sda5, (e.g. sda6, sda7, sda8). (...) Does that make sense? Not really. 1) You cannot install on

Re: Near clones of a Debian install

2016-07-22 Thread Pascal Hambourg
Le 22/07/2016 à 18:04, Richard Owlett a écrit : That base install *SHALL BE* on a read-only partition (e.g. sda5). I wish to "almost clone" it to sda5, (e.g. sda6, sda7, sda8). (...) Does that make sense? Not really. 1) You cannot install on a read-only partition. 2) It does not make

Re: Near clones of a Debian install

2016-07-22 Thread rhkramer
What is your goal? What are you trying to achieve--just experimenting? On Friday, July 22, 2016 12:04:23 PM Richard Owlett wrote: > I have a laptop set aside for experimenting with Debian installs. > I've not yet defined my personal "optimal" install. > My nominally base install will be a

Near clones of a Debian install

2016-07-22 Thread Richard Owlett
I have a laptop set aside for experimenting with Debian installs. I've not yet defined my personal "optimal" install. My nominally base install will be a reasonably standard CLI plus a personally preferred default set of utilities. That base install *SHALL BE* on a read-only partition (e.g.