public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
From: "Erik Hjelmås" <erik.hjelmas@gmail.com>
To: linux-bcache@vger.kernel.org
Subject: Re: cannot attach backing device, wipefs does not fix it
Date: Wed, 18 Jun 2014 17:11:22 +0000 (UTC)	[thread overview]
Message-ID: <loom.20140618T185645-94@post.gmane.org> (raw)
In-Reply-To: 1297031660.20140618230148@pvgoran.name

> > Hi, ubuntu 14.04, and a 5TB RAID (sdc) partitioned into two 2.5TB partitions
> > (sdc1 and sdc2) with parted to be used as backing devices, 
> 
> > /dev/sdc2 attaches fine
> 
> > problem with sdc1:
> 
> > # make-bcache -B /dev/sdc1
> > Device /dev/sdc1 already has a non-bcache superblock, remove it using wipefs
> > and wipefs -a
> 
> > # wipefs /dev/sdc1
> > wipefs: WARNING: /dev/sdc1: appears to contain 'dos' partition table
> 
> > # wipefs -a /dev/sdc1
> > wipefs: WARNING: /dev/sdc1: appears to contain 'dos' partition table
> 
> Did you try wipefs -a -f /dev/sdc1 ?

my wipefs does not have a -f option
 
> If that fails, just erase the first few MB of the device with zeroes:
> 
> dd if=/dev/zero of=/dev/sdc1 bs=1M count=10

I had tried this, but I see now that I copied from /dev/null instead of
/dev/zero and no data got copied :)

so, yes, your suggestion dd if=/dev/zero of=/dev/sdc1 bs=1M count=10 fixed it

thank you Pavel!

/Erik

      reply	other threads:[~2014-06-18 17:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18 15:38 cannot attach backing device, wipefs does not fix it Erik Hjelmås
2014-06-18 16:01 ` Pavel Goran
2014-06-18 17:11   ` Erik Hjelmås [this message]

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=loom.20140618T185645-94@post.gmane.org \
    --to=erik.hjelmas@gmail.com \
    --cc=linux-bcache@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox