public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Goran <via-bcache@pvgoran.name>
To: linux-bcache@vger.kernel.org
Subject: Re: cannot attach backing device, wipefs does not fix it
Date: Wed, 18 Jun 2014 23:01:48 +0700	[thread overview]
Message-ID: <1297031660.20140618230148@pvgoran.name> (raw)
In-Reply-To: <loom.20140618T173307-560@post.gmane.org>

Hello Erik,

Wednesday, June 18, 2014, 10:38:55 PM, you wrote:

> 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 ?

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

Pavel Goran
  

  reply	other threads:[~2014-06-18 16:02 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 [this message]
2014-06-18 17:11   ` Erik Hjelmås

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=1297031660.20140618230148@pvgoran.name \
    --to=via-bcache@pvgoran.name \
    --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