You are not logged in.

#1 2024-01-08 21:22:13

iamkarlson
Member
Registered: 2023-01-17
Posts: 28

Replace btrfs disk with a bigger one

I have the following:

❯ lsblk -f
NAME        FSTYPE FSVER LABEL           UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0                                                                                        [SWAP]
nvme0n1
├─nvme0n1p1 vfat   FAT32                 341E-1B1A                             427.4M    16% /boot
└─nvme0n1p2 btrfs                        0467591d-0cb3-4e1d-9c5f-035d773b9206   27.1G    93% /var/log
                                                                                             /var/cache/pacman/pkg
                                                                                             /home
                                                                                             /.snapshots
                                                                                             /

I'm planning to replace my nvme disk with a bigger one. I have only one M2 slot on my motherboard therefore I cannot permanently connect both. I have an external adapter for M2 disks that I can use for temporary operation. I found that btrfs replace is supposed to do exactly that. I'm using this and that as my guiding material. However, I'm confused with this line:

Btrfs replace should be used on a mounted filesystem.

Does it mean that I have to boot from liveusb to do replace? Can I do this while being booted from the device? How shall I create a new partitions for a new disk?

What would be a correct sequence of actions if I want to replace my disk? How can I copy my /boot partition? before or after btrfs replace?

Offline

#2 2024-01-09 09:09:09

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: Replace btrfs disk with a bigger one

What if you instead send | receive ?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB