Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
finottiOffline
22 Post subject: [Solved] Moving Installation to New Computer  PostPosted: 18.01.2019, 17:39



Joined: 2010-09-12
Posts: 493

Status: Offline
I'm getting a new desktop at work. Since aptosid is not installable (and I like my current set up), is it possible to move the installation to complete new computer.

What I had in mind: rsync the root directories, boot the new computer from a rescue USB drive and chroot, fix fstab, run grub, reboot. Would that work?

If not, I'd probably install siduction. Is it possible to run slh's kernels with it? (I have a laptop running siduction just fine, and towo's kernels seem to work great too, but slh's kernels have been incredibly reliable for many years...)

P.S.: By the way, it seems you cannot post if you do not an icon in the subject...


Last edited by finotti on 08.02.2019, 19:53; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
6 Post subject: Re: Moving Installation to New Computer  PostPosted: 18.01.2019, 19:42



Joined: 2010-08-25
Posts: 962

Status: Offline
      finotti wrote:
What I had in mind: rsync the root directories, boot the new computer from a rescue USB drive and chroot, fix fstab, run grub, reboot. Would that work?


Yes, you can do that - make sure to use "rsync --archive --acls --hard-links --xattrs". If needed, you can also easily switch to UEFI (grub-efi) while doing that.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 18.01.2019, 19:57



Joined: 2010-09-12
Posts: 493

Status: Offline
Thanks! I will give it a try.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
22 Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 01.02.2019, 17:51



Joined: 2010-09-12
Posts: 493

Status: Offline
OK, I'm trying it now, but I'm stuck in the new computer during boot. I get: "A start job is running for Wait for network to be configured by ifupdown (<time> / no limit)".

So, I guess is a network issue. I can run siduction live stick without a problem (and network is running). Could it be that the new computer has a new name in the network? I did edit /etc/hostname (changing the name to the new name given by the administrator).

Any suggestions?

EDIT: after a while it did boot, but no sddm (I just see the mouse pointer), and no eth0. The ethernet card is am Intel I219-V...
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 01.02.2019, 19:37



Joined: 2010-08-25
Posts: 962

Status: Offline
/etc/udev/rules.d/70-persistent-*.rules is probably interfering, which needs deleting. Additionally you'll have to update /etc/network/interfaces and/ or /etc/systemd/network/* for the new interface name.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 01.02.2019, 20:18



Joined: 2010-09-12
Posts: 493

Status: Offline
Thanks, slh!

The system does not hang at boot anymore.

But still no network: ifconfig only show lo.

No X. I see no errors in Xorg.0.log and "startkde" from TTY says "$DISPLAY is not set or cannot connect to X server." Setting DISPLAY=:0.0 does not work...

Any ideas? (I don't want to be a bother... I'd like to keep aptosid, but I can always install something else if it is too much trouble...)
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 02.02.2019, 05:58



Joined: 2010-08-25
Posts: 962

Status: Offline
Just to start with the easy aspects:

If you had been using nvidia or fglrx before (and switch to another graphics card vendor), make sure to purge the corresponding (proprietary) graphics driver and the associated kernel modules. Also make sure to have xserver-xorg-video-all and xserver-xorg-input-all installed.

Regarding the network access, check the (new) interface name (which will not be eth0, but something like eno1 or ens1p0) and update /etc/network/interfaces accordingly (or /etc/systemd/network/*). If that doesn't help, I'll need the output of "infobash -v2" and "lspci -knn", as well as "ip -a" and the contents of /etc/network/interfaces, /etc/network/interfaces.d/* and /etc/systemd/network/*.

These issues should be easy to fix up.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 04.02.2019, 18:14



Joined: 2010-09-12
Posts: 493

Status: Offline
Thanks, slh! Something came up at work, but hopefully tomorrow I can get back to it and post the info.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
22 Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 05.02.2019, 16:38



Joined: 2010-09-12
Posts: 493

Status: Offline
OK, network is working!

But X still has problems. I did not have any proprietary drivers in the old computer, so no need to purge them.

I disabled the /etc/X11/xorg.conf.d/ files (10-monitor.conf and 20-intel.conf) by adding ".disabled" to the file names.

I do have xserver-xorg-video-all and xserver-xorg-input-all installed in the new computer.

When the new computer starts I get a mouse pointer, but nothing else but a blank screen. (As I said before, no errors in /var/log/Xorg.0.log.)

Here is the info from the old:
      Code:

$ infobash -v3
Host/Kernel/OS  "finottim83" running Linux 4.20.0-4.slh.1-aptosid-amd64 x86_64 UEFI64 [ aptosid 2013-01 ' - kde-full - (201305050307) ]
CPU Info        8x Intel Core i7-4790 @ 8192 KB cache flags( sse3 ht nx lm vmx ) clocked at [ 2058.968 MHz ]
Videocard       Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller  X.Org 1.20.3  [ [email protected], [email protected] ]
Network cards   Intel I217-LM
Processes 311 | Uptime 30min | Memory 5045.0/31968.6MB | HDD Crucial_CT512M55,WDC WD5000AAKX-0 Size 1012GB (50%used) | Client Shell | Infobash v3.50


Here is the info for the new computer:
      Code:

$ cat info.txt
Host/Kernel/OS  "finottidell5060" running Linux 4.20.0-4.slh.1-aptosid-amd64 x86_64 UEFI64 [ aptosid 2013-01 ' - kde-full - (201305050307) ]
CPU Info        12x Intel Core i7-8700 @ 12288 KB cache flags( sse3 ht nx lm vmx ) clocked at [ 2116.457 MHz ]
Videocard       Intel UHD Graphics 630 (Desktop)  tty resolution ( 240x65 )
Network cards   Intel
Processes 198 | Uptime 7min | Memory 452.9/15840.1MB | HDD Micron 1100 SATA Size 512GB (39%used) | Runlevel 5 | Client Shell | Infobash v3.50


Any suggestions?
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
22 Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 05.02.2019, 16:57



Joined: 2010-09-12
Posts: 493

Status: Offline
OK, I've got X working!

I had in the new computer:

      Code:

finottidell5060(scrn)[~]$ journalctl -b -p err
-- Logs begin at Tue 2019-02-05 11:43:55 EST, end at Tue 2019-02-05 11:44:25 EST. --
Feb 05 11:43:55 finottidell5060 systemd-udevd[397]: GOTO 'libsane_rules_end' has no matching label in: '/etc/udev/rules.d/S99-2000S1.rules'
Feb 05 11:43:55 finottidell5060 kernel: iTCO_wdt iTCO_wdt: can't request region for resource [mem 0x00c5fffc-0x00c5ffff]
Feb 05 11:43:55 finottidell5060 rsyslogd[821]: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.40.0 try https://www.rsyslog.com/e/2039 ]
Feb 05 11:43:56 finottidell5060 libvirtd[923]: cannot open directory '/data/ISO': No such file or directory
Feb 05 11:43:56 finottidell5060 libvirtd[923]: internal error: Failed to autostart storage pool 'ISO': cannot open directory '/data/ISO': No such file or directory
Feb 05 11:43:56 finottidell5060 sddm-helper[1111]: chdir( /var/lib/sddm ) failed for user:  "sddm"
Feb 05 11:43:56 finottidell5060 sddm-helper[1111]: verify directory exist and has sufficient permissions


      Code:

finottidell5060(scrn)[~]$ ll /var/lib/sddm
total 4
-rw-r--r-- 1 libvirt-qemu avahi 295 Aug  8  2016 state.conf
finottidell5060(scrn)[~]$ ll -d /var/lib/sddm
drwxr-x--- 7 libvirt-qemu avahi 4096 Sep  8  2017 /var/lib/sddm/


So it seems that /var/lib/sddm has wrong owner/group. In the old computer:

      Code:

finottim83[/home/finotti]# ll -d /var/lib/sddm
drwxr-x--- 7 sddm sddm 4096 Sep  8  2017 /var/lib/sddm/


So, changing owner/group fixed X, but it leaves me wondering how rsync could have changed the group/owner. Or even worse, if it did to other parts that did not show up yet... (I will have to give away the old computer soon, so I will not be able to make comparisons...)

But, so far, it seems that all is working.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 08.02.2019, 19:53



Joined: 2010-09-12
Posts: 493

Status: Offline
The new machine has been running fine for a few days, so I will mark this as solved. Thanks again slh for the help!
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Re: Moving Installation to New Computer  PostPosted: 09.02.2019, 19:38



Joined: 2010-08-25
Posts: 962

Status: Offline
you're welcome, --numeric-ids for rsync might have helped a little.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio