You are not logged in.

#1 2024-07-10 16:52:02

cloverskull
Member
Registered: 2018-09-30
Posts: 206

ext4 -> btrfs conversion

Hey friends, has anyone recently done the ext4 to btrfs conversion? The wiki states it can be unsafe and I've read some reports of people saying this presented problems for them. I just wanted to see if anyone here has recently done it because I'd like to, particularly for the snapshot capability. Thanks!

Offline

#2 2024-07-10 22:48:41

mithrial
Member
Registered: 2017-03-05
Posts: 34

Re: ext4 -> btrfs conversion

It always depends on your setup and needs. I did use the tool to convert my root partition from ext4 to btfrs, so you can have one data point of success.

Make a backup.

Last edited by mithrial (2024-07-10 22:49:02)

Offline

#3 2024-07-11 11:02:06

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,245
Website

Re: ext4 -> btrfs conversion

I lost an Arch system to a botched ext4 to btrfs conversion but it was a while ago.

I don't do backups so that was a fun experience.


"The nation-state domesticates the society in the name of capitalism and alienates the community from its natural foundations."
Democratic Confederalism, Abdullah Öcalan.

Offline

#4 2024-07-11 15:26:05

c00ter
Member
From: Alaskan in Washington State
Registered: 2014-08-28
Posts: 421

Re: ext4 -> btrfs conversion

Same experience as Head_on_a_Stick.


UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Offline

#5 2024-07-11 17:17:38

cloverskull
Member
Registered: 2018-09-30
Posts: 206

Re: ext4 -> btrfs conversion

Yikes. Ok. So one positive and two negative results. That's a bummer.

Offline

#6 2024-07-12 08:12:54

mithrial
Member
Registered: 2017-03-05
Posts: 34

Re: ext4 -> btrfs conversion

What you could do is rsyncing your root partition to a external drive. Then, delete the ext4 partition and create your btrfs partition (with subvolumes), and then rsync everything back to the newly created partition.

The UUIDs changed, so you have to update at least the `/etc/fstab` and the kernel parameter `root=`.

Offline

Board footer

Powered by FluxBB