Re: Stop using btrfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks guys, your suggestions were exactly what I needed.

Jeremy

On Jan 30, 2014, at 4:51 PM, Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:

> 
> On Jan 30, 2014, at 2:43 PM, Hugo Mills <hugo@xxxxxxxxxxxxx> wrote:
> 
>> On Thu, Jan 30, 2014 at 09:27:55PM +0000, Maziarz, Jeremy M. wrote:
>>> Everyone, here is a noob question: how do completely delete a btrfs filesystem (RAID10)?
>> 
>>  wipefs, on each device, is the precision approach -- it will very
>> carefully damage the magic number in the first superblock on each
>> device, which is enough to make most tools ignore the filesystem.
>> 
>>  Alternatively, the nuclear approach is simply to overwrite the
>> first megabyte or so of the filesystem with zeros, with something like:
>> 
>> dd count=1k bs=1k if=/dev/zero of=/dev/sda
> 
> Yes with the older btrfs-progs, it indicates maybe equally old linux-utils so wipefs -a might not be up to date to delete all of the super block magics. It's worth knowing especially because mkfs.ext4 resurrects the latent btrfs back to life if the wipefs -a doesn't remove all super blocks.
> 
> Also fwiw, it's possible to use wipefs -a /dev/sd[abcd] in a single command for all drives.
> 
> 
> Chris Murphy
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux