Transferring system to new pc

ystem
Kernel: 5.19.13-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=d84d1289-1918-4cb8-b260-dc86d66875da rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 wm: kwin_x11 vt: 1
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Micro-Star product: MS-7A38 v: 2.0
serial: <superuser required>
Mobo: Micro-Star model: B350M PRO-VDH (MS-7A38) v: 2.0
serial: <superuser required> UEFI: American Megatrends v: A.E0
date: 09/21/2018
Battery:
Device-1: gip0.0 model: Microsoft X-Box One pad serial: N/A charge: 50%
(should be ignored) rechargeable: yes status: not charging
CPU:
Info: model: AMD Ryzen 5 1400 bits: 64 type: MT MCP arch: Zen level: v3
note: check built: 2017-19 process: GF 14nm family: 0x17 (23) model-id: 1
stepping: 1 microcode: 0x8001137
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 384 KiB desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB
L3: 8 MiB desc: 2x4 MiB
Speed (MHz): avg: 3385 high: 3400 min/max: N/A cores: 1: 3400 2: 3400
3: 3399 4: 3393 5: 3385 6: 3400 7: 3398 8: 3310 bogomips: 54401
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed mitigation: untrained return thunk; SMT vulnerable
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
disabled, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] vendor: eVga.com.
driver: nvidia v: 515.76 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-10) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 1f:00.0 chip-ID: 10de:1c02 class-ID: 0300
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
compositor: kwin_x11 driver: X: loaded: nvidia
unloaded: modesetting,nouveau alternate: fbdev,nv,vesa gpu: nvidia
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 92 s-size: 530x301mm (20.87x11.85")
s-diag: 610mm (24")
Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 92
size: 531x299mm (20.91x11.77") diag: 609mm (23.99") modes: N/A
OpenGL: renderer: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2 v: 4.6.0 NVIDIA
515.76 direct render: Yes
Audio:
Device-1: NVIDIA GP106 High Definition Audio vendor: eVga.com.
driver: snd_hda_intel bus-ID: 3-3.3:9 v: kernel chip-ID: 1532:0521 pcie:
class-ID: 0300 gen: 3 serial: <filter> speed: 8 GT/s lanes: 16
bus-ID: 1f:00.1 chip-ID: 10de:10f1 class-ID: 0403
Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 21:00.3 chip-ID: 1022:1457 class-ID: 0403
Device-3: Razer USA Kraken Kitty Edition type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound API: ALSA v: k5.19.13-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.59 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 1b:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp27s0 state: down mac: <filter>
Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 bus-ID: 1d:00.0 chip-ID: 8086:24f3 class-ID: 0280
IF: wlp29s0 state: up mac: <filter>
Drives:
Local Storage: total: 1.02 TiB used: 871.12 GiB (83.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Silicon Power model: SPCC Solid State
Disk size: 111.79 GiB block-size: physical: 512 B logical: 512 B
speed: 6.0 Gb/s type: SSD serial: <filter> rev: 21.1 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD10EZEX-08WN4A0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
rev: 1A01 scheme: GPT
Partition:
ID-1: / raw-size: 111.49 GiB size: 111.49 GiB (100.00%) used: 66.41 GiB
(59.6%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 592 KiB
(0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 111.49 GiB size: 111.49 GiB (100.00%) used: 66.41
GiB (59.6%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 111.49 GiB size: 111.49 GiB (100.00%) used: 66.41
GiB (59.6%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 111.49 GiB size: 111.49 GiB (100.00%) used: 66.41
GiB (59.6%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.57 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 39.0 C mobo: 42.0 C
Fan Speeds (RPM): fan-1: 0 fan-2: 1906 fan-3: 1227 fan-4: 866 fan-5: 0
Power: 12v: N/A 5v: N/A 3.3v: 3.38 vbat: 3.25
Info:
Processes: 304 Uptime: 3h 25m wakeups: 633 Memory: 15.57 GiB used: 5.68 GiB
(36.5%) Init: systemd v: 251 default: graphical tool: systemctl
Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 2229
libs: 649 tools: pacaur,pamac,paru,yay Shell: fish v: 3.5.1 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.22
Garuda (2.6.8-1):
System install date:     2022-10-12
Last full system update: 2022-10-12
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service

So I'm building my new pc tomorrow and I was wondering how I would go about transferring my current data and os to it. It will be to a new drive as well. Getting a newer ryzen cpu and amd gpu if that matters. I believe I've seen some programs capable of moving data to new drive but I've never had to change drives to entire new pc before so that is my main issue, if it even is one.

1 Like

there are the dd commands to clone hd, but you need to edit the /etc/fstab file of the target disk after being cloned, and replace the UID entries, in the simplest way through the /dev/sdX REPRESENTATIVES or you look up the new UID values of the new hd.

1 Like

You could just use clonezilla

4 Likes

Be aware that switching to AMD from an Nvidia graphics card will result in an unbootable machine if you clone your old OS to your new AMD system. You will either have to change your video driver before you clone your system, or perform a chroot on the newly cloned system, and then remove the nvidia driver and switch to the AMD graphics driver.

I personally prefer the dd command for cloning.

3 Likes

I have always been very impressed by the btrfs replace command. The times I have used it, it has been on a live system--starting the command, the system is on one disk, and when it is done it's on the new disk, running the whole time. It feels a bit like open-heart surgery, but it works great!

It is especially useful for replacing a disk in a RAID array, or replacing a disk on a server without having to take it down, but I have used it for more unusual use cases also. I am always a bit bewildered when it is done how easily it works.

You would have to set up an EFI partition before hand and copy over the EFI with dd, because btrfs replace only works on...well, Btrfs. :smirk:

That said, I honestly think your best experience will be if you reinstall from scratch on the new system. After the dust settles, use rsync to copy over the files and configs you want to keep.

6 Likes

You all have given me plenty of options, I really appreciate that!. Honestly I think I'm going to make a fresh install on the new drive just so I don't accidentally break anything. Most of my data I care about is on a separate drive anyway (which i will be copying over to my new nvme drive) so I think it should be as simple as plugging in the existing hdd on the new system and copying over data to my main drive. At least I hope :upside_down_face: Thank you again for your help everyone. Always great to know all the different tools at my disposal!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.