Recovery of a CoreOS image

Posted April 3, 2015 3.7k views
System ToolsCoreOS

Our droplet is not able to fully start again and we’d like to salvage a few items from the file system. Is there a way to boot up our CoreOS droplet in recovery mode and then sftp to it?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Yes. If you open a ticket with our support team they can set your droplet to boot to a recovery ISO. This recovery environment will allow you to mount your filesystem and enable an ssh server that supports sftp in the recovery environment in order to download any files you need to back up.

  • ryanpq,

    We did this. But since our FS is BTRFS it cannot mount using the classic mount -t btrfs </dev/vda/9> </mnt> Unfortunately, we keep getting the error:

    [27899.670899] BTRFS: couldn't mount because of unsupported optional features (60). 
    [27899.696050] btrfs: open_ctree failed

    Support assisted us by telling us to download ‘btrfs-tools’ and then running mount -t btrfs but that throws the same error again. We are panicking a little bit! Any other ideas?

I’ve managed to recover a broken CoreOS installation with BTRFS, with the Recovery ISO environment, using the following procedure:

  1. Enable networking
  2. Add the “wheezy-backports” repository to the /etc/apt/sources.list file - as detailed here:
  3. run apt-get -t wheezy-backports install btrfs-tools
  4. use btrfsck and friends to fix your system