Thread (3 messages) 3 messages, 2 authors, 2014-06-18

Re: cannot attach backing device, wipefs does not fix it

From: Erik Hjelmås <hidden>
Date: 2014-06-18 17:11:42

quoted
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, 
quoted
/dev/sdc2 attaches fine
quoted
problem with sdc1:
quoted
# make-bcache -B /dev/sdc1
Device /dev/sdc1 already has a non-bcache superblock, remove it using wipefs
and wipefs -a
quoted
# wipefs /dev/sdc1
wipefs: WARNING: /dev/sdc1: appears to contain 'dos' partition table
quoted
# 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help