How can I clone my hard drive?

Kernel: 5.16.3-241-tkg-pds x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: intel_pstate=passive
BOOT_IMAGE=/@/boot/vmlinuz-linux516-tkg-pds
root=UUID=2230677d-5ca8-44dd-a833-30d1b43c58a6 rw [email protected]
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: B450M-A PRO MAX (MS-7C52) v: 1.0
serial: <superuser required> UEFI: American Megatrends LLC. v: 3.C0
date: 05/19/2021
CPU:
Info: model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2
family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 3992 high: 4203 min/max: 2200/4208 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3611 2: 4199
3: 4191 4: 3599 5: 4055 6: 3573 7: 4200 8: 4203 9: 3821 10: 4064 11: 4198
12: 4201 bogomips: 86402
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: 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: Full AMD retpoline, IBPB: conditional,
STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] vendor: Micro-Star MSI
driver: nvidia v: 510.47.03 alternate: nouveau,nvidia_drm bus-ID: 29:00.0
chip-ID: 10de:21c4 class-ID: 0300
Device-2: KYE Systems (Mouse Systems) Genius Webcam type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 5-1:2 chip-ID: 0458:6006
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: nvidia unloaded: modesetting alternate: fbdev,nouveau,nv,vesa
display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 162 s-size: 602x341mm (23.7x13.4")
s-diag: 692mm (27.2")
Monitor-1: HDMI-0 res: 3840x2160 hz: 60 dpi: 163
size: 600x340mm (23.6x13.4") diag: 690mm (27.2")
OpenGL: renderer: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2
v: 4.6.0 NVIDIA 510.47.03 direct render: Yes
Audio:
Device-1: NVIDIA TU116 High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 29:00.1 chip-ID: 10de:1aeb
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 2b:00.4 chip-ID: 1022:1487
class-ID: 0403
Device-3: KYE Systems (Mouse Systems) Genius Webcam type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 5-1:2 chip-ID: 0458:6006
class-ID: 0102 serial: <filter>
Sound Server-1: ALSA v: k5.16.3-241-tkg-pds running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.45 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus-ID: 25:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: enp37s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 1.82 TiB used: 143.19 GiB (7.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 2B2QEXM7 temp: 31.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WDS100T2B0A-00SM50 size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 00WD
scheme: GPT
Partition:
ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 143.19 GiB (15.4%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/sda6 maj-min: 8:6
ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 143.19 GiB (15.4%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 143.19 GiB (15.4%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 143.19 GiB (15.4%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 50 (default 100)
ID-1: swap-1 type: zram size: 15.61 GiB used: 2 MiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 36.0 C mobo: N/A gpu: nvidia temp: 35 C
Fan Speeds (RPM): fan-1: 0 fan-2: 1603 fan-3: 0 fan-4: 0 fan-5: 0
gpu: nvidia fan: 42%
Power: 12v: N/A 5v: N/A 3.3v: 3.34 vbat: 3.34
Info:
Processes: 349 Uptime: 1m wakeups: 0 Memory: 15.61 GiB
used: 6.05 GiB (38.7%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 Packages: 1945 pacman: 1938 lib: 559 snap: 7 Shell: fish
v: 3.3.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.12
Garuda (2.5.4-2):
System install date:     2022-01-27
Last full system update: 2022-02-16
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service
type or paste code here

Hi, I recently bought a m.2 and I want to clone my hard drive to it. I tried clonezilla and it didn't work, the system wasn't booting. I tried in gparted to copy the patitions and paste them in the m.2, that didn't work either. Do I need to reinstall or is it any way to clone it? Almost forgot, I also tried the dd command and yeah......it didn't work.

As this is only a twenty day old install if none of the above is working why not just install on the new drive and then copy your home directory from one to the other

5 Likes

Clonezilla should do it but you will likely have to chroot into the install and reinstall grub, might have to check the UUID in fstab as well.
@TilliDie raises a good point as well.

3 Likes

Well, this really didn't cross my mind...Thanks!

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