Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to convert btrfs to ext4 without losing data? I'm experiencing a very low speed on read/write operations on btrfs.

share|improve this question

2 Answers 2

I'm just going on the available tools, not experience or documentation. You might want to test this with a partition (even just an image) you don't mind losing if it all goes wrong. Don't attempt this without taking a backup.

btrfs-convert has a roll-back function to undo a conversion. I'm not sure if this works for partitions that weren't converted to btrfs with btrfs-convert.

  1. Start by unmounting the filesystem. If it's essential to the system, boot into a LiveCD.

  2. Install btrfs-tools

    sudo apt-get install btrfs-tools
    
  3. Roll back the conversion

    sudo btrfs-convert -r /dev/sdXn
    
share|improve this answer
5  
Note, that this will only work with converted filesystems and only if you haven't deleted the snapshot of the original ext3/4 filesystem. –  htorque Apr 21 '11 at 15:19
    
Thank you but unfortunately this doesn't work for a btrfs partition not converted from other file systems. H guess I have to reinstall. –  mFat Apr 23 '11 at 4:14
4  
Be aware that this will discard any changes made on the filesystem since you converted it. It will be restored to the contents of the ext2/3 filesystem as it was before you converted. –  poolie Jan 27 '12 at 9:07

As far as I know you cannot convert btrfs to any other filesystem.

share|improve this answer
    
not true if you converted ext to btrfs! you would have a snapshot to roll back the changes –  Fookatchu Mar 21 at 17:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.