All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.net>
To: Hugo Mills <hugo@carfax.org.uk>
Cc: "Тимофей Титовец" <nefelim4ag@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
Date: Thu, 5 Sep 2013 21:06:19 +0600	[thread overview]
Message-ID: <20130905210619.65e52e23@natsu> (raw)
In-Reply-To: <20130905145407.GA25694@carfax.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]

On Thu, 5 Sep 2013 15:54:07 +0100
Hugo Mills <hugo@carfax.org.uk> wrote:

> On Thu, Sep 05, 2013 at 05:43:27PM +0300, Тимофей Титовец wrote:
> > Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
> > "No valid Btrfs found on file
> > unable to open ctree
> > conversion aborted."
> > Ubuntu 13.04
> > Kernel: 3.11
> > btrfs-progs git version 0.20-git20130822~194aa4a13
> > 
> > way to reproduce error:
> > $ truncate -s 4G file
> > $ mkfs.ext4 file #say yes to create fs on non block device.
> > $ btrfs-convert file
> >  No valid Btrfs found on file
> >  unable to open ctree
> >  conversion aborted.
> 
>    I'm guessing here, but I suspect you will need to create a loopback
> device so that btrfs-convert can look at it as a block device rather
> than as a file:
> 
> # losetup -f --show file
> /dev/loop0
> # btrfs-convert /dev/loop0
> 
>    Hugo.
> 

Nope, just today I saw someone report the same problem in a blog comment:
http://popey.com/blog/2013/09/02/fun-with-btrfs-on-ubuntu/#comment-9704

-------
# umount /dev/sdb1
# fsck -f /dev/sdb1
fsck из util-linux 2.20.1
e2fsck 1.42.8 (20-Jun-2013)
data500: 144653/30531584 files (0.9% non-contiguous), 102659367/122096384
blocks

# btrfs-convert /dev/sdb1
No valid Btrfs found on /dev/sdb1
unable to open ctree
conversion aborted.

Ubuntu 13.10
btrfs-tools 0.19+20130705-1
-------

It looks like a bug in btrfs-convert.

-- 
With respect,
Roman

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2013-09-05 15:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05 14:43 btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1 Тимофей Титовец
2013-09-05 14:54 ` Hugo Mills
2013-09-05 15:06   ` Roman Mamedov [this message]
2013-09-05 15:30     ` Hugo Mills
2013-09-05 15:34       ` Roman Mamedov
2013-09-05 15:44         ` Hugo Mills
2013-09-05 15:45 ` Eric Sandeen
2013-09-05 18:44   ` Josef Bacik
2013-10-11  7:52     ` Daniel
2013-10-11  8:00       ` Wang Shilong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130905210619.65e52e23@natsu \
    --to=rm@romanrm.net \
    --cc=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=nefelim4ag@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.