You are not logged in.

#1 2021-04-08 07:23:09

860lacov
Member
Registered: 2020-05-02
Posts: 452

[SOLVED] Is this the proper way to move Arch to bigger disk?

I have Arch installed on SSD.

Btrfs

3 subvolumes:
@, @home, @cache

mountpionts:
/ /home /var/cache

I'm thinking about:
Formatting disk as btrfs
btrfs send | recieve snapshots of my subvolumes
edit fstab to match uuids of the new drive or mount new drive with prefered btrfs options, arch-chroot into the system and regenerate fstab.
Install grub on new drive

Should that be sufficient?

Last edited by 860lacov (2021-11-16 12:20:03)

Offline

#2 2021-04-08 07:59:41

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,983
Website

Re: [SOLVED] Is this the proper way to move Arch to bigger disk?

I don't know btrfs too well. The way I'd do it, that'll work on any unixoid filesystem would be to partition and format the new disk accordingly and then cp the mounted old file system tree to the mounted new one.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#3 2021-04-08 15:01:38

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Is this the proper way to move Arch to bigger disk?

You may have to also regenerate the initramfs so that the autodetect hook can pick up the new hardware and add any required modules.

Offline

#4 2021-11-16 12:19:45

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: [SOLVED] Is this the proper way to move Arch to bigger disk?

Little update.
I did this:
btrfs send | recieve subvolumes
I did genfstab in arch-chroot and bootctl install (after proper partition mounting)
I have full disk encryption so I had to modify my bootloader entry (systemd boot).

System is working properly so it can be done smile

Offline

Board footer

Powered by FluxBB