Re: [DNG] moving to a new system

2022-06-29 Thread o1bigtenor via Dng
On Mon, Jun 27, 2022 at 8:39 AM Adrian Zaugg  wrote:
>
> In der Nachricht vom Saturday, 25 June 2022 15:32:21 CEST schrieb Marjorie
> Roome via Dng:
>
> > (1) Replicate your existing system on the new hardware, maybe with a
> > different disk/partition structure from what you have now. And then
> > upgrade to Devuan.
>
> This is the easiest method mentioned, because you keep all your installed
> programs, special settings and all your modifications. More detailed, but
> certainly not complete:
>

Well - - - - reporting time.

I might have used this method but my move was already happening when
this suggestion appeared.

Setup new system (partitioning) to newer ideas.
Installed devuan daedalus (testing).
Once system was working I then copied /home from the previous system
using # rsnyc -avxrKSH user@oldsystem(192.168.x.x):/home/ /home/
that only took some 6ish hours.
Next step was to backup my raid-10 array to a new 2 TB HDD, which will
be pulled from the new system and only used for this purpose.
So - - - back to waiting for a PCIe card for more SATA spots, and the
cabling for such. (Mobo seemed to have lots of ports at 8 but I've got
5 used before the raid array or the previous system disc so more ports
are needed.)

I will have to look into rsync some more - - - - seems like a useful tool
- - - thanks to those that suggested its use.

Thanks to one and all that gave input.

Kudus!!! (Finding this to be a very responsive group Thanks!!)

Aj
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-28 Thread aitor

Hi,

On 27/6/22 10:07, wirelessduck--- via Dng wrote:

How are .git and .mozilla affected by disk cloning?


A few months ago something did happen to me trying to clone a hard disk with
Clonezilla; something related to existence of metadata that affected to 
integrity
of the generated image. However, today I gave another try to the latest release
3.0.1-8 and everything went smoothly. I do not rule out that perhaps I used the
testing version during the earlier attempt. Or maybe I made a mistake.

Cheers,

Aitor.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-27 Thread Adrian Zaugg
In der Nachricht vom Saturday, 25 June 2022 15:32:21 CEST schrieb Marjorie 
Roome via Dng:

> (1) Replicate your existing system on the new hardware, maybe with a
> different disk/partition structure from what you have now. And then
> upgrade to Devuan.

This is the easiest method mentioned, because you keep all your installed 
programs, special settings and all your modifications. More detailed, but 
certainly not complete:

- Boot your old and your new system with a live cd, I use GRML (grml.org):
- dd the grml iso to a USB stick, boot from it
- old system, choose run from RAM, unplug the stick after booting
- new system with same stick, choose graphical, edit the
entry and add toram at the end, boot

- if your new system has bigger or disks of the same size: use dd over network 
(else use tar, see below)
- on the old system
dd if=/dev/sda bs=64K | nc -N -l -p 1
- on the new system
nc  1 | dd of=/dev/nvme0n1

* set the disks right: sda and nvme0n1 are just examples, for moving
to md raids, create and start it on the new system
* if you are not alone on your net, use encryption:
- set a password for the user grml and root on old
- start the ssh server: service ssh start
- ssh from the new box into the old forwarding port 1
ssh -L1:localhost:1 
- then use localhost instead of  above
- do not execute the commands in the shell where ssh is
running, just use ssh for the port forward (might use -f
instead, see man ssh) and use another shell for dd
* if you need progress indication: use pv
- apt install pv
dd if=xy bs=64K | pv | nc 
resp.
nc ... | pv | dd ...
* if you are impatient, use compression with lzop
(speeds over 1 Gb possible on GbE!)
on the old system inject:
dd ... | lzop | pv | nc ..
into the piped commands, on the new system
nc ... | lzop -d | pv | dd ...
(before or after pv)
* if you are even more impatient test values for bs, 1M is also a
good value to try with (you can just stop with ctrl-c and restart,
use jnettop and/or iotop)

=> dd clones your boot sector, partition table etc., so you do not need to 
make your new system bootable again after cloning, if
- your disk are of the same size and type (hdd vs. SSD)
- you do not need to change from MBR to UEFI
- you do not need to change disk labels from msdos to GPT
- you didn't use partitionable md raids (auto=mdp)
and
- you are happy with the old partitioning scheme you used
just boot and continue to crossgrade to Devuan.

- You may now repartition your disk using gparted, you basically can change 
everything (size, order, etc.), if you need to change booting from BIOS to 
UEFI, use gdisk first to migrate (search for a tutorial online)
- don't forget the EFI system partition if you need it
- make a separate /boot as your first partition (but after EFI
system part.) for easy cloning and repartioning in the future

- mount your root under /mnt/mysys

- if you introduce new partitons:
- format the new partition
- mount the new partion under /mnt/xy
- mv everthing what belongs there, e.g. from /var
mv -v /mnt/mysys/var /mnt/xy
- change /mnt/mysys/etc/fstab
(use blkid to find UUID)
- unmount /mnt/xy and mount under the right location
under /mnt/mysys/...
- repeat for all new partitons

- edit /mnt/mysys/etc/fstab to set the mount options you like (-> e.g. 
discard, ...on ext4 journal_cheksum, journal_async_commit, remount-options, 
...)

- check all mount points have the right permissions (e.g. t flag on /tmp)

- you may also use tar to get to this point, e.g. when your new system has 
smaller disks (partition the new system, format, mount (see above) and tar):
   old system:
- create a file /root/x containing: ./proc ./sys ...each on a
separate line
- mount your old system under /mnt/oldsys including all partitions
on the right mount point
- copy:
tar -X /root/x --show-omitted-dirs -clf - -C /mnt/oldsys . \
2>/tmp/tar.err | pv | lzop | nc -N -l -p 1
   new system:
- check all partitons are mounted right as they belong together
(see above under the dd method)
- ssh into old system (see above) for port forwarding, use in
another shell than ssh:
nc localhost 1 | lzop -d | \
tar --totals --atime-preserve -xvpf - -C /mnt/mysys 2>/tmp/tar.err
- check tar.err on each system to see if copying went well

- make your new system bootable 

Re: [DNG] moving to a new system

2022-06-27 Thread eric via Dng

On 6/26/22 15:56, Radisson via Dng wrote:



Am 24.06.22 um 16:05 schrieb o1bigtenor via Dng:

Greetings

Hoping that I'm not asking too many questions.

(moving from debian testing to devuan testing (daedalus)
the old system is under 5.17.xx and the new one is on 5.18
if that makes for differences)



When your changes are user-related only, have your changes in /home/user
this is actually easy.
rsync -avz src dst

take same time to make yourself familiar with rsync use -n to have a dry
run, but do also make same real copies.


(I've learnt the hard way that just winging things means a LOT more
work and even a greater chance for issues.)

My existing system has been a work in progress for over 10 years. So
I've gotten things
set up quite the way that I like them so things change slowly but in
that there are also
less 'terror' moments when everything has gone 'goofy'.


When your are like my and you have changed a lot of system stuff
things are more complicated. propper Programms have there configuration
with in /etc. So when you compare your current /etc/ with the new one
you have a good change to figure out what you changed in the last 10 years.

Unfortunately these days same people thing it is a good idea to store
in /usr/share or same where. Here are you on you own.

that should help with most issues.



Is there any way to move over things like settings (and all the other
pamphernania) for browsers and libreoffice and the like?

I was thinking of doing things by using scp from the old system to the 
new one.


Dunno if that would create issues or not.

Any better ideas - - - - well I'm all ears!!!


+1 for rsync.

The Arch linux wiki has a nice rsync command for copying a system.  It 
is based on a virtual machine but works nicely for real machines. Adjust 
the directories to exclude, as well as the source and destination 
partitions based on your system. Afterwards, you just need to edit the 
"/etc/fstab" file with the new identifications (UUID or labels based on 
your system).  If new hardware is installed such as a video card, you 
may need to install the appropriate drivers. The command below assumes 
/* is the source and /path/to/shared/folder is the destination.


# rsync -aAXHSv /* /path/to/shared/folder 
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs}


The link is:

https://wiki.archlinux.org/title/Moving_an_existing_install_into_(or_out_of)_a_virtual_machine

I have used this method to copy over arch, ubuntu and opensuse installs 
onto new hardrives for new machines.


Regards,
Eric


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-27 Thread wirelessduck--- via Dng


> On 27 Jun 2022, at 16:02, aitor  wrote:
> 
> 
> Hi,
>> On 25/6/22 3:57, wirelessduck--- via Dng wrote:
>> If your new drive is the same size, you could just transfer the entire 
>> system with clonezilla.
> Although you may have trouble with some metadata like .mozilla, .git...
> Cheers,
> Aitor.

How are .git and .mozilla affected by disk cloning?
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-27 Thread aitor

Hi,

On 25/6/22 3:57, wirelessduck--- via Dng wrote:


If your new drive is the same size, you could just transfer the entire system 
with clonezilla.


Although you may have trouble with some metadata like .mozilla, .git...

Cheers,

Aitor.


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-26 Thread Eric via Dng

On 6/26/22 15:56, Radisson via Dng wrote:



Am 24.06.22 um 16:05 schrieb o1bigtenor via Dng:

Greetings

Hoping that I'm not asking too many questions.

(moving from debian testing to devuan testing (daedalus)
the old system is under 5.17.xx and the new one is on 5.18
if that makes for differences)



When your changes are user-related only, have your changes in /home/user
this is actually easy.
rsync -avz src dst

take same time to make yourself familiar with rsync use -n to have a dry
run, but do also make same real copies.


(I've learnt the hard way that just winging things means a LOT more
work and even a greater chance for issues.)

My existing system has been a work in progress for over 10 years. So
I've gotten things
set up quite the way that I like them so things change slowly but in
that there are also
less 'terror' moments when everything has gone 'goofy'.


When your are like my and you have changed a lot of system stuff
things are more complicated. propper Programms have there configuration
with in /etc. So when you compare your current /etc/ with the new one
you have a good change to figure out what you changed in the last 10 years.

Unfortunately these days same people thing it is a good idea to store
in /usr/share or same where. Here are you on you own.

that should help with most issues.



Is there any way to move over things like settings (and all the other
pamphernania) for browsers and libreoffice and the like?

I was thinking of doing things by using scp from the old system to the 
new one.


Dunno if that would create issues or not.

Any better ideas - - - - well I'm all ears!!!


+1 for rsync.

The Arch linux wiki has a nice rsync command for copying a system.  It 
is based on a virtual machine but works nicely for real machines. Adjust 
the directories to exclude, as well as the source and destination 
partitions based on your system. Afterwards, you just need to edit the 
"/etc/fstab" file with the new identifications (UUID or labels based on 
your system).  If new hardware is installed such as a video card, you 
may need to install the appropriate drivers. The command below assumes 
/* is the source and /path/to/shared/folder is the destination.


# rsync -aAXHSv /* /path/to/shared/folder 
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs}


The link is:

https://wiki.archlinux.org/title/Moving_an_existing_install_into_(or_out_of)_a_virtual_machine

I have used this method to copy over arch, ubuntu and opensuse installs 
onto new hardrives for new machines.


Regards,
Eric


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-26 Thread Radisson via Dng



Am 24.06.22 um 16:05 schrieb o1bigtenor via Dng:

Greetings

Hoping that I'm not asking too many questions.

(moving from debian testing to devuan testing (daedalus)
the old system is under 5.17.xx and the new one is on 5.18
if that makes for differences)



When your changes are user-related only, have your changes in /home/user
this is actually easy.
rsync -avz src dst

take same time to make yourself familiar with rsync use -n to have a dry
run, but do also make same real copies.


(I've learnt the hard way that just winging things means a LOT more
work and even a greater chance for issues.)

My existing system has been a work in progress for over 10 years. So
I've gotten things
set up quite the way that I like them so things change slowly but in
that there are also
less 'terror' moments when everything has gone 'goofy'.


When your are like my and you have changed a lot of system stuff
things are more complicated. propper Programms have there configuration
with in /etc. So when you compare your current /etc/ with the new one
you have a good change to figure out what you changed in the last 10 years.

Unfortunately these days same people thing it is a good idea to store
in /usr/share or same where. Here are you on you own.

that should help with most issues.



Is there any way to move over things like settings (and all the other
pamphernania) for browsers and libreoffice and the like?

I was thinking of doing things by using scp from the old system to the new one.

Dunno if that would create issues or not.

Any better ideas - - - - well I'm all ears!!!
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-25 Thread Hendrik Boom
On Fri, Jun 24, 2022 at 09:05:39AM -0500, o1bigtenor via Dng wrote:
> Greetings
> 
> Hoping that I'm not asking too many questions.
> 
> (moving from debian testing to devuan testing (daedalus)
> the old system is under 5.17.xx and the new one is on 5.18
> if that makes for differences)
> 
> (I've learnt the hard way that just winging things means a LOT more
> work and even a greater chance for issues.)
> 
> My existing system has been a work in progress for over 10 years. So
> I've gotten things
> set up quite the way that I like them so things change slowly but in
> that there are also
> less 'terror' moments when everything has gone 'goofy'.
> 
> Is there any way to move over things like settings (and all the other
> pamphernania) for browsers and libreoffice and the like?
> 
> I was thinking of doing things by using scp from the old system to the new one

The last time I moved to a new system, I used a veru simple wy of copying over 
the old files -- I removed the hard drives from the old system and installed 
then in the new system.  Why waste physical drives?

Fortunately, the two sets of hardware were very compatible.

This might not work for you.

-- hendrik
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-25 Thread Marjorie Roome via Dng
Hi,

On Fri, 2022-06-24 at 09:05 -0500, o1bigtenor via Dng wrote:
> Greetings
> 
> Hoping that I'm not asking too many questions.
> 
> (moving from debian testing to devuan testing (daedalus)
> the old system is under 5.17.xx and the new one is on 5.18
> if that makes for differences)
> 
> (I've learnt the hard way that just winging things means a LOT more
> work and even a greater chance for issues.)
> 
> My existing system has been a work in progress for over 10 years. So
> I've gotten things set up quite the way that I like them so things
> change slowly but in that there are also less 'terror' moments when
> everything has gone 'goofy'.
> 
> Is there any way to move over things like settings (and all the other
> pamphernania) for browsers and libreoffice and the like?
> 
> I was thinking of doing things by using scp from the old system to
> the new one.
> 
> Dunno if that would create issues or not.
> 
> Any better ideas - - - - well I'm all ears!!!
> 
I'm assuming, from your previous questions, that your are installing on
entirely new hardware, including disks.

You are also 'upgrading' from Debian to Devuan :-) I think that you can
do that in two ways:
 
(1) Replicate your existing system on the new hardware, maybe with a
different disk/partition structure from what you have now. And then
upgrade to Devuan.

2) Use one the existing Devuan Chimaera installers to set up your new
system on your new hardware, then upgrade that to Daedelus as I don't
think there aren any official Devuan Daedelus installers yet. 
If you install your existing DE (XFCE, Cinnamon, etc.) that will also
install all its standard packages (filemanager, mail program, etc.).
You would then need to install any additional programs/packages you use
and remove any you don't want and copy over your existing /home and
/etc directories (/etc should contain the *system* config. files for
your programs, ones specific to you as a user will be in /home). 

If you do (1) then you'll obviously have to have a 'live' OS running on
the new machine first to do the transfer, though that could be on a
USB, installed from a USB into RAM, on a portable backup drive that
hosts a live OS or temporarily installed on a partition.

There are a two ways of doing the transfers: either 
(1) directly over your network (and rsync) or
 
(2) indirectly using a portable backup drive (back up on your existing
system , then restore on the new one.

With (2) you can either use a partition backup tool, such as fsarchiver
or a standard file backup tool, such as rsync or duplicity. Fsarchiver
can backup and restore whole partitions (with optional compression),
doesn't backup empty file space and can restore to a different
filesystem.

If your partition schemes don't match (you have suggested you might
want a lot of them, though the temp directories won't need to be moved
over) then you may be better using a file based transfer.

-- 
Marjorie




___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-24 Thread wirelessduck--- via Dng


> On 25 Jun 2022, at 00:06, o1bigtenor via Dng  wrote:
> 
> Greetings
> 
> Hoping that I'm not asking too many questions.
> 
> (moving from debian testing to devuan testing (daedalus)
> the old system is under 5.17.xx and the new one is on 5.18
> if that makes for differences)
> 
> (I've learnt the hard way that just winging things means a LOT more
> work and even a greater chance for issues.)
> 
> My existing system has been a work in progress for over 10 years. So
> I've gotten things
> set up quite the way that I like them so things change slowly but in
> that there are also
> less 'terror' moments when everything has gone 'goofy'.
> 
> Is there any way to move over things like settings (and all the other
> pamphernania) for browsers and libreoffice and the like?
> 
> I was thinking of doing things by using scp from the old system to the new 
> one.
> 
> Dunno if that would create issues or not.
> 
> Any better ideas - - - - well I'm all ears!!!

If your new drive is the same size, you could just transfer the entire system 
with clonezilla.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-24 Thread Hector Gonzalez Jaime via Dng


On 6/24/22 10:56, o1bigtenor via Dng wrote:

On Fri, Jun 24, 2022 at 10:19 AM Dr. Nikolaus Klepp via Dng
 wrote:

Anno domini 2022 Fri, 24 Jun 09:05:39 -0500
  o1bigtenor via Dng scripsit:

Greetings

Hoping that I'm not asking too many questions.

(moving from debian testing to devuan testing (daedalus)
the old system is under 5.17.xx and the new one is on 5.18
if that makes for differences)

(I've learnt the hard way that just winging things means a LOT more
work and even a greater chance for issues.)

My existing system has been a work in progress for over 10 years. So
I've gotten things
set up quite the way that I like them so things change slowly but in
that there are also
less 'terror' moments when everything has gone 'goofy'.

Is there any way to move over things like settings (and all the other
pamphernania) for browsers and libreoffice and the like?

I was thinking of doing things by using scp from the old system to the new one.

Dunno if that would create issues or not.

Any better ideas - - - - well I'm all ears!!!

Move your home directory to the new system ... and use rsync, not scp.


That seems simple - - - - except I've never used rsync yet.

Suggestions for a good recipe to follow- - - please?



from the new system (this will overwrite /home files if you have them):

rsync -avxKSH root@oldsystem:/home/ /home/

means make a backup, show what you do, don't change filesystems, keep 
dirlinks, use sparse files, and keep hard links, from 
root@oldsystem:/home/ to your local /home/


Just don't do this for the root filesystem, unless it is to put it 
somewhere else


This will use ssh for authentication, either use a key for 
authenticating, (man ssh-keygen) or change the user to what it needs to be.


man rsync explains the options in detail.  You can interrupt this 
command and run it again, it will continue where it left.




TIA
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


--
Hector Gonzalez
ca...@genac.org

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-24 Thread o1bigtenor via Dng
On Fri, Jun 24, 2022 at 10:19 AM Dr. Nikolaus Klepp via Dng
 wrote:
>
> Anno domini 2022 Fri, 24 Jun 09:05:39 -0500
>  o1bigtenor via Dng scripsit:
> > Greetings
> >
> > Hoping that I'm not asking too many questions.
> >
> > (moving from debian testing to devuan testing (daedalus)
> > the old system is under 5.17.xx and the new one is on 5.18
> > if that makes for differences)
> >
> > (I've learnt the hard way that just winging things means a LOT more
> > work and even a greater chance for issues.)
> >
> > My existing system has been a work in progress for over 10 years. So
> > I've gotten things
> > set up quite the way that I like them so things change slowly but in
> > that there are also
> > less 'terror' moments when everything has gone 'goofy'.
> >
> > Is there any way to move over things like settings (and all the other
> > pamphernania) for browsers and libreoffice and the like?
> >
> > I was thinking of doing things by using scp from the old system to the new 
> > one.
> >
> > Dunno if that would create issues or not.
> >
> > Any better ideas - - - - well I'm all ears!!!
>
> Move your home directory to the new system ... and use rsync, not scp.
>

That seems simple - - - - except I've never used rsync yet.

Suggestions for a good recipe to follow- - - please?

TIA
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] moving to a new system

2022-06-24 Thread Dr. Nikolaus Klepp via Dng
Anno domini 2022 Fri, 24 Jun 09:05:39 -0500
 o1bigtenor via Dng scripsit:
> Greetings
>
> Hoping that I'm not asking too many questions.
>
> (moving from debian testing to devuan testing (daedalus)
> the old system is under 5.17.xx and the new one is on 5.18
> if that makes for differences)
>
> (I've learnt the hard way that just winging things means a LOT more
> work and even a greater chance for issues.)
>
> My existing system has been a work in progress for over 10 years. So
> I've gotten things
> set up quite the way that I like them so things change slowly but in
> that there are also
> less 'terror' moments when everything has gone 'goofy'.
>
> Is there any way to move over things like settings (and all the other
> pamphernania) for browsers and libreoffice and the like?
>
> I was thinking of doing things by using scp from the old system to the new 
> one.
>
> Dunno if that would create issues or not.
>
> Any better ideas - - - - well I'm all ears!!!

Move your home directory to the new system ... and use rsync, not scp.

Nik

> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>



--
Please do not email me anything that you are not comfortable also sharing with 
the NSA, CIA ...
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng