With btrfs you will destroy the filesystem, whenever you start a kernel that sees 2 btrfs-volumes with the same uuid !
You find good Information about Btrfs in the wiki
and in
good luck
With btrfs you will destroy the filesystem, whenever you start a kernel that sees 2 btrfs-volumes with the same uuid !
and in
good luck
Thank you.
Although I dont really understand the instructions in that post.
Firstly I don’t understand how to mount a volume as read only.
Secondly, Is it saying to use btrfs send to copy data to a new partition? I don’t have any spare partitions.
Can btrfs send be used to copy my old manjaro install to the new drive?
Anyway. I have formatted the destination drive again. This has made my old drive bootable again. So I have my main system back. But I still havn’t achieved copying this drive to the new drive.
Yes
I read all these things and I cant wrap my head around it.
Ive somewhat fumbled my way through the problem by just reinstalling and then copying the home folder over. Its mostly working. Some things are a tad wonky.
I’m sorry, I probably confused you. You do not need to use sent. Just do what is said in the link I posted.
The “destination” is your new partition (I would guess /dev/nvme0np?
since you mention nvme) and the source is the one you installed to.
Thank you.
Im easily confused. I find written instructions hard to follow. I usually do best just figuring stuff out myself after I break stuff.
give me the output of inxi --admin --verbosity=7 --filter --no-host --width
like requested in posts above me so maybe I can help.
edit
And throw in a lsblk
and df -h
while you are at it…
edit 2
…and cat /etc/fstab
Edit your post and put the output by using the </> button in the post window.
I will not read that without it.
I post it again:
edit
And while you are at it, include the output of sudo btrfs subvolume list /
Hopefully Ive done it right this time
System:
Kernel: 6.3.8-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.3-x86_64
root=UUID=b08c96c4-a567-41f6-a4d9-30637f36df0f rw rootflags=subvol=@ quiet
resume=UUID=330b6883-99c7-48dc-b025-b7f010b238c4 udev.log_priority=3
Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.10 wm: kwin_wayland vt: 2
dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop System: Gigabyte product: X570 AORUS ELITE v: -CF
serial: <superuser required>
Mobo: Gigabyte model: X570 AORUS ELITE v: x.x serial: <superuser required>
UEFI: American Megatrends v: F30 date: 09/15/2020
Battery:
Message: No system battery data found. Is one present?
Memory:
System RAM: available: 31.29 GiB used: 4.41 GiB (14.1%)
RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 7 5800X3D bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 2 microcode: N/A
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 96 MiB
desc: 1x96 MiB
Speed (MHz): avg: 2199 high: 2200 min/max: 2200/3400 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2200 2: 2200
3: 2200 4: 2200 5: 2200 6: 2200 7: 2191 8: 2200 9: 2200 10: 2200 11: 2200
12: 2200 13: 2200 14: 2200 15: 2195 16: 2200 bogomips: 108631
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt
xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
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 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: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Sapphire
driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
active: DP-1,DP-3 empty: DP-2,HDMI-A-1 bus-ID: 0b:00.0 chip-ID: 1002:73bf
class-ID: 0300
Device-2: Logitech HD Webcam C525 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-2.4:6
chip-ID: 046d:0826 class-ID: 0e02 serial: <filter>
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_wayland driver: X: loaded: amdgpu
unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
gpu: amdgpu d-rect: 3840x1080 display-ID: 0
Monitor-1: DP-1 pos: primary,left res: 1920x1080 size: N/A modes: N/A
Monitor-2: DP-3 pos: right res: 1920x1080 size: N/A modes: N/A
API: OpenGL v: 4.6 Mesa 23.1.2 renderer: AMD Radeon RX 6800 XT (navi21
LLVM 15.0.7 DRM 3.52 6.3.8-1-MANJARO) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0b:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0d:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Logitech HD Webcam C525 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-2.4:6
chip-ID: 046d:0826 class-ID: 0e02 serial: <filter>
Device-4: Focusrite-Novation Scarlett 2i4 driver: snd-usb-audio type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-4.3:8
chip-ID: 1235:800a class-ID: fe01
API: ALSA v: k6.3.8-1-MANJARO status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: PipeWire v: 0.3.71 status: active with: 1: pipewire-media-session
status: active 2: pw-jack type: plugin tools: pw-cat,pw-cli
Server-3: PulseAudio v: 16.1 status: active with: 1: pulseaudio-alsa
type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl
Network:
Device-1: Intel I211 Gigabit Network vendor: Gigabyte driver: igb v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 05:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) driver: btusb
v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-3.4.4:9
chip-ID: 0a12:0001 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 16.7 TiB used: 4.46 TiB (26.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:1 vendor: Sabrent
model: SB-ROCKET-NVMe4-2TB size: 1.82 TiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: RKT4B5.1 temp: 36.9 C scheme: MBR
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Sabrent model: N/A size: 1.86 TiB
block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
tech: SSD serial: <filter> fw-rev: RKT303.3 temp: 27.9 C scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 QVO 2TB
size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 2B6Q scheme: MBR
ID-4: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD60EZAZ-00SF3B0 size: 5.46 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5400 serial: <filter>
fw-rev: 0A80 scheme: GPT
ID-5: /dev/sdc maj-min: 8:32 vendor: Western Digital
model: WD60EZAZ-00SF3B0 size: 5.46 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5400 serial: <filter>
fw-rev: 0A80 scheme: GPT
ID-6: /dev/sde maj-min: 8:64 vendor: SanDisk model: USB 3.2Gen1
size: 232.88 GiB block-size: physical: 512 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 1.00 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
ID-7: /dev/sdf maj-min: 8:80 vendor: Generic model: Flash Disk
size: 58.59 GiB block-size: physical: 512 B logical: 512 B type: USB rev: 3.2
spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: SSD serial: <filter>
fw-rev: 8.01 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 1.85 TiB size: 1.21 TiB (65.60%) used: 550.2 GiB (44.4%)
fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:5 label: MANJAROLD
uuid: b08c96c4-a567-41f6-a4d9-30637f36df0f
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 612 KiB (0.2%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:4
label: NO_LABEL uuid: 368E-359E
ID-3: /home raw-size: 1.85 TiB size: 1.21 TiB (65.60%)
used: 550.2 GiB (44.4%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:5
label: MANJAROLD uuid: b08c96c4-a567-41f6-a4d9-30637f36df0f
ID-4: /run/media/thedatabug/DOCUMENTS raw-size: 5.46 TiB
size: 5.46 TiB (100.00%) used: 2.1 TiB (38.5%) fs: ntfs dev: /dev/sdc1
maj-min: 8:33 label: DOCUMENTS uuid: 01D69E68678D01D0
ID-5: /run/media/thedatabug/ENTERTAINMENT raw-size: 5.46 TiB
size: 5.46 TiB (100.00%) used: 1.82 TiB (33.4%) fs: ntfs dev: /dev/sdb1
maj-min: 8:17 label: ENTERTAINMENT uuid: 01D69E856214FD30
ID-6: /var/cache raw-size: 1.85 TiB size: 1.21 TiB (65.60%)
used: 550.2 GiB (44.4%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:5
label: MANJAROLD uuid: b08c96c4-a567-41f6-a4d9-30637f36df0f
ID-7: /var/log raw-size: 1.85 TiB size: 1.21 TiB (65.60%)
used: 550.2 GiB (44.4%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:5
label: MANJAROLD uuid: b08c96c4-a567-41f6-a4d9-30637f36df0f
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 17.12 GiB used: 20.2 MiB (0.1%)
priority: -2 dev: /dev/nvme1n1p3 maj-min: 259:6 label: N/A
uuid: 330b6883-99c7-48dc-b025-b7f010b238c4
Unmounted:
ID-1: /dev/nvme0n1p1 maj-min: 259:2 size: 1.81 TiB fs: btrfs label: MANJARO
uuid: 5d4ba93c-6239-4b42-b587-c9cbc08d78cc
ID-2: /dev/nvme0n1p2 maj-min: 259:3 size: 8.8 GiB fs: swap label: swap
uuid: b6f424ae-1978-4547-87be-dfabe587f19d
ID-3: /dev/sda1 maj-min: 8:1 size: 1.79 TiB fs: btrfs label: GARUDA
uuid: 6ed18e1f-c722-471d-81c3-e3d110173347
ID-4: /dev/sda2 maj-min: 8:2 size: 34.41 GiB fs: swap label: swap
uuid: 5c408958-88ef-49ca-8fbd-6ca48b5905ce
ID-5: /dev/sde1 maj-min: 8:65 size: 232.87 GiB fs: vfat label: APP STICK
uuid: 1D57-6408
ID-6: /dev/sdf1 maj-min: 8:81 size: 58.56 GiB fs: exfat label: Ventoy
uuid: 8676-3B3D
ID-7: /dev/sdf2 maj-min: 8:82 size: 32 MiB fs: vfat label: VTOYEFI
uuid: 7CDB-00D9
USB:
Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 6 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Hub-2: 1-3:2 info: Genesys Logic Hub ports: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
chip-ID: 05e3:0608 class-ID: 0900
Device-1: 1-3.1:4 info: Razer USA Naga Trinity type: mouse,keyboard
driver: razermouse,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
lanes: 1 mode: 1.1 power: 500mA chip-ID: 1532:0067 class-ID: 0300
serial: <filter>
Device-2: 1-3.2:6 info: Microdia Backlit Gaming Keyboard
type: keyboard,mouse driver: hid-generic,usbhid interfaces: 2 rev: 2.0
speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 400mA
chip-ID: 0c45:652f class-ID: 0301
Device-3: 1-3.3:7 info: HP Photosmart 6520 series
type: printer,mass storage driver: usb-storage,usblp interfaces: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 2mA
chip-ID: 03f0:af11 class-ID: 0806 serial: <filter>
Hub-3: 1-3.4:8 info: VIA Labs VL812 Hub ports: 4 rev: 2.1
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 2109:2812
class-ID: 0900
Device-1: 1-3.4.4:9 info: Cambridge Silicon Radio Bluetooth Dongle (HCI
mode) type: bluetooth driver: btusb interfaces: 2 rev: 2.0
speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
chip-ID: 0a12:0001 class-ID: e001
Device-2: 1-4:3 info: Integrated Express IT8297 RGB LED Controller
type: keyboard driver: hid-generic,usbhid interfaces: 1 rev: 2.0
speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
chip-ID: 048d:8297 class-ID: 0301
Device-3: 1-5:5 info: Google Nexus/Pixel Device (MTP) type: still imaging
driver: N/A interfaces: 1 rev: 2.1 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
mode: 2.0 power: 500mA chip-ID: 18d1:4ee1 class-ID: 0601 serial: <filter>
Hub-4: 2-0:1 info: super-speed hub ports: 4 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-5: 3-0:1 info: hi-speed hub with single TT ports: 6 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Hub-6: 3-6:2 info: Genesys Logic Hub ports: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
chip-ID: 05e3:0608 class-ID: 0900
Hub-7: 4-0:1 info: super-speed hub ports: 4 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-8: 5-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Hub-9: 5-2:2 info: Genesys Logic Hub ports: 4 rev: 2.1
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
chip-ID: 05e3:0610 class-ID: 0900
Device-1: 5-2.3:4 info: SHARKOON GmbH 2.4GHz Wireless rechargeable
vertical mouse [More&Better] type: mouse driver: hid-generic,usbhid
interfaces: 1 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
power: 100mA chip-ID: 1ea7:0064 class-ID: 0301
Device-2: 5-2.4:6 info: Logitech HD Webcam C525 type: audio,video
driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 500mA
chip-ID: 046d:0826 class-ID: 0e02 serial: <filter>
Hub-10: 5-3:3 info: Genesys Logic Hub ports: 4 rev: 2.1
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
chip-ID: 05e3:0610 class-ID: 0900
Hub-11: 5-4:5 info: Genesys Logic Hub ports: 4 rev: 2.1
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
chip-ID: 05e3:0610 class-ID: 0900
Device-1: 5-4.2:7 info: Holtek USB Gaming Keyboard type: keyboard,HID
driver: hid-generic,usbhid interfaces: 3 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
lanes: 1 mode: 1.1 power: 100mA chip-ID: 04d9:a0f8 class-ID: 0300
Device-2: 5-4.3:8 info: Focusrite-Novation Scarlett 2i4 type: audio
driver: snd-usb-audio interfaces: 6 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s)
lanes: 1 mode: 2.0 power: 500mA chip-ID: 1235:800a class-ID: fe01
Hub-12: 6-0:1 info: super-speed hub ports: 4 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-13: 6-2:2 info: Genesys Logic Hub ports: 4 rev: 3.1
speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 05e3:0626
class-ID: 0900
Hub-14: 6-3:3 info: Genesys Logic Hub ports: 4 rev: 3.0
speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 05e3:0612
class-ID: 0900
Device-1: 6-3.3:5 info: SanDisk Ultra Flair type: mass storage
driver: usb-storage interfaces: 1 rev: 3.2 speed: 5 Gb/s (596.0 MiB/s)
lanes: 1 mode: 3.2 gen-1x1 power: 896mA chip-ID: 0781:5591 class-ID: 0806
serial: <filter>
Device-2: 6-3.4:6 info: Alcor Micro Flash Drive type: mass storage
driver: usb-storage interfaces: 1 rev: 3.2 speed: 5 Gb/s (596.0 MiB/s)
lanes: 1 mode: 3.2 gen-1x1 power: 800mA chip-ID: 058f:6387 class-ID: 0806
serial: <filter>
Hub-15: 6-4:4 info: Genesys Logic Hub ports: 4 rev: 3.0
speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 05e3:0612
class-ID: 0900
Sensors:
System Temperatures: cpu: 35.0 C mobo: 29.0 C gpu: amdgpu temp: 35.0 C
mem: 42.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 462 Uptime: 15m wakeups: 0 Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: 1932 pm: dpkg
pkgs: 0 pm: pacman pkgs: 1870 libs: 486 tools: pamac,paru,yay pm: flatpak
pkgs: 62 Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.27
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 1.8T 0 disk
├─sda1 8:1 1 1.8T 0 part
└─sda2 8:2 1 34.4G 0 part
sdb 8:16 1 5.5T 0 disk
└─sdb1 8:17 1 5.5T 0 part /run/media/thedatabug/ENTERTAINMENT
sdc 8:32 1 5.5T 0 disk
└─sdc1 8:33 1 5.5T 0 part /run/media/thedatabug/DOCUMENTS
sdd 8:48 1 0B 0 disk
sde 8:64 1 232.9G 0 disk
└─sde1 8:65 1 232.9G 0 part
sdf 8:80 1 58.6G 0 disk
├─sdf1 8:81 1 58.6G 0 part
└─sdf2 8:82 1 32M 0 part
nvme1n1 259:0 0 1.9T 0 disk
├─nvme1n1p1 259:4 0 300M 0 part /boot/efi
├─nvme1n1p2 259:5 0 1.8T 0 part /var/log
│ /var/cache
│ /home
│ /
└─nvme1n1p3 259:6 0 17.1G 0 part [SWAP]
nvme0n1 259:1 0 1.8T 0 disk
├─nvme0n1p1 259:2 0 1.8T 0 part
└─nvme0n1p2 259:3 0 8.8G 0 part
Filesystem Size Used Avail Use% Mounted on
dev 16G 0 16G 0% /dev
run 16G 2.2M 16G 1% /run
/dev/nvme1n1p2 1.3T 551G 676G 45% /
tmpfs 16G 71M 16G 1% /dev/shm
/dev/nvme1n1p2 1.3T 551G 676G 45% /home
/dev/nvme1n1p2 1.3T 551G 676G 45% /var/cache
/dev/nvme1n1p2 1.3T 551G 676G 45% /var/log
tmpfs 16G 6.0M 16G 1% /tmp
/dev/nvme1n1p1 300M 612K 299M 1% /boot/efi
tmpfs 3.2G 13M 3.2G 1% /run/user/1000
/dev/sdc1 5.5T 2.2T 3.4T 39% /run/media/thedatabug/DOCUMENTS
/dev/sdb1 5.5T 1.9T 3.7T 34% /run/media/thedatabug/ENTERTAINMENT
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=368E-359E /boot/efi vfat umask=0077 0 2
UUID=b08c96c4-a567-41f6-a4d9-30637f36df0f / btrfs subvol=/@,defaults,discard=async,ssd 0 0
UUID=b08c96c4-a567-41f6-a4d9-30637f36df0f /home btrfs subvol=/@home,defaults,discard=async,ssd 0 0
UUID=b08c96c4-a567-41f6-a4d9-30637f36df0f /var/cache btrfs subvol=/@cache,defaults,discard=async,ssd 0 0
UUID=b08c96c4-a567-41f6-a4d9-30637f36df0f /var/log btrfs subvol=/@log,defaults,discard=async,ssd 0 0
UUID=330b6883-99c7-48dc-b025-b7f010b238c4 swap swap defaults,noatime 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
ID 258 gen 382284 top level 5 path @cache
ID 259 gen 382314 top level 5 path @log
ID 487 gen 382318 top level 5 path @home
ID 565 gen 382318 top level 5 path @
Ok, I have never done this so I only help you interpret the tutorial ok?
But as of now, you have everything running on /dev/nvme1n1
You have 3 partitions, nvme1n1p1
(your boot) and nvme1n1p2
(your root with all the btrfs subvols incl your home) and your swap on nvme1n1p3
Now, I see that you have 2 partitions on your other nvme drive nvme0n1
nvme0n1p1
(1.8TB) and nvme0n1p2
(8.8GB)
Now you have to decide what goes where.
Like it says in the wiki
Create the partition you want to use as destination without formatting it. Or remove the filesystem when one is present
So either adjust them now, maybe you want one more partition, or if you want to adjust the sizes, or maybe remove one partition and only have one, (you can do all that later, but better to do the changes now) or just go ahead with the next step. (Since nothing is mounted on this drive and IF you want to do changes you can, imho, easiest do it with a gui program like “kde partition manager” since you run KDE)
Keep in mind that if you add or remove partitions the naming can change, use lsblk
to see the naming and sizes or remember the name from when you do the changes in the gui.
Then type (where the ? is the partition you decided to use):
sudo btrfs device add /dev/nvme0n1p? /
and then:
sudo btrfs device remove /dev/nvme1n1p2 /
Further from the wiki:
If you want to watch the volume move, inside a terminal:
user $ pamac install procps-ng
root # watch -n 60 btrfs filesystem show /
Witch I interpret as:
pamac install procps-ng
sudo watch -n 60 btrfs filesystem show /
YOU HAVE TO WAIT UNTIL THE OPERATION IS FINISHED BEFORE SHUTTING DOWN YOUR COMPUTER!!!
Good luck!
When I type (or copy paste) the command
sudo btrfs device add /dev/nvme0n1p1
I get this message
btrfs device add: not enough arguments: 1 but at least 2 expected
If I understand correctly you want to copy all Manjaro partitions from nvme1 to nvme2, try to follow my points step by step:
(Warning: I haven’t even tried that):
You have 3 current different Manjaro partitions (A EFI partition FAT32, a system partition Btrfs and a swap partition) in nvme1.
Create 3 empty partitions in nvme2.
/boot/efi
when using GRUB.Copy /boot/efi
from nvme1 to 1. partition FAT32 in nvme2. I recommend you use rsync
to preserve all permissions and timestamps of data. Do not use cp
.
How to copy btrfs filesystem from nvme1 to 2. partition Btrfs in nvme2. → Try btrfs send | btrfs receive
[HowTo] Copy/Move a subvolume from one partition to another
you need to copy 4 different subvolumes (@
, @home
, @cache
, @log
) to other Btrfs filesystem.
Change UUIDs in /etc/fstab
which should match new UUIDs of nvme2.
Run mkinitcpio -P
to create current Kernel initramfs and run update-grub
for Grub.
I know this is not easy for beginners. I recommend you just install new Manjaro system and copy your data and configuration back. That is easy.
You are right ! There is was an error in the wiki
You have to add one more paramter (the path to your mounted volume)
btrfs device add --help ✔
usage: btrfs device add [options] <device> [<device>...] <path>
Add one or more devices to a mounted filesystem.
-K|--nodiscard do not perform whole device TRIM on devices that report such capability
-f|--force force overwrite existing filesystem on the disk
--enqueue wait if there's another exclusive operation running, otherwise continue
Oh, so /
has to be added to the end? And if it still doesn’t want to, use -f
?
I feel partly responsible for helping this guy out now… xD
@thedatabug I edited my post above to correct the commands.
Thank you all for the advice.
I decided to play it safe and re-install Manjaro to the new drive and copy settings across. It is all mostly working now with the exception of a Steam game that worked before but now wont launch. Anyway easier to fix that than a whole install.
Ive learnt a few things about btrfs that will be useful for the future. And we found an error in the wiki
Good job!
The funny part is, the btrfs add/remove would have properly done all of that.
I really want to stress that btrf send would also do what you want, if you want to overcomplicate it SIGNIFICANTLY.
Just for future readers so you realize the marked solution works, but is also the most complicated.
Edit
If it is all games on steam, check the symlinks in your home directory, they might point wrong since you made a new install and just copy the files from your old home.
If it is only ONE game, and the rest works, that is not the problem.
I also have a Garuda install that I want to move to my former Manajro partition so I will try the btrfs add/remove there. As I dont mind taking any risks with that one.
Also to explain why I foudn the instructions confusing. I couldnt work out why you would add a drive to a pool and then remove the source drive from said pool and how that would do anything. I would have expected some kind of copy procedure to happen in between those 2 actions.
However, I had an epiphany. And this is for noobs that think like me. I understand it thus. BTRFS works with references to files rather than with the files themselves (its why a backup if a whole system is instant). So adding a drive to a pool is recognizing the new drive as additional storage. BTRFS catalogs this. Then when you remove the source drive BTRFS says Oh I have the references to the files but I no longer have the files so then it copies them over.
That may well be super laymans terms but I think thats how it works.
Also to bedna I chose the solution mainly due to the fact that it recommended what I already did. A reinstall of Manajro and copied settings across.
And Ive sorted Steam too. I was missing gamemode. And one of my game was launched using that.
Shame you cant pick 2 solutions.
Yes, you kinda nailed it.
When you add a volume to the btrfs system, it CAN use that space, the size will increase.
You: “Hey, btrf, use this partition as well!”
btrfs; “ok, wow, lots of extra space for me here”
If you then remove the original partition where all the subvolumes are mounted.
You: “Hey, btrfs, I want you to stop using that partition, I need it for something else”
btrs: “Sure boss, just let me move my s**t out of your way, give me a minute”
and starts moving files in the background
btrfs will take care of your /etc/fstab
, detecting it’s a nvme etc and you can just keep using the computer completely normally immediately after issuing the command.
I have never done this, but this is how its supposed to work.
I did the add destination drive and remove source drive thing with my Garuda install. It did copy all the files but it left me with an unbootable system. I tried to rescue said system using chroot and reinstalling grub. Then I ended up with an inaccessable drive which I ended up having to wipe and re-install.
So upshot is it sort of works but it screws up a few things which someone with the correct knowhow would probably be able to rescue. Unfortunately that someone isn’t me.
As the distro here is Garuda it would be improper to discuss it here. Just letting you know the outcome of the little experiment.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.