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

Re: How to make btrfs forget a disk?



deloptes wrote:
> 
> > "wipefs -t btrfs -f -a /dev/nvme1n1" did the job.
> > 
> > Still wondering where those labels are stored on disk in Linux.
> > 
> 
> FS Superblock? 

Well, the FS (btrfs in this case) was not there already, but the magic
label was still there somewhere.

> 
> > In FreeBSD, GEOM(4) usually keeps such stuff in the last sector of a
> > volume/device.
> 
> I think it depends on the FS not on the OS.

As I said, the FS had already been replaced by another FS. 

I would usually wipe the first several MB of a disk with dd when I
change filesystems or disk partitioning schemes, but this
one was already in production.

> 
> if search engines are not working where you live, I think this is a good
> howto (just found it among the top 10hits in duckduckgo)
> 
> https://www.cyberciti.biz/faq/howto-use-wipefs-to-wipe-a-signature-from-disk-on-linux/
> 

Well, to search Duckduckgo for wipefs, you need to know about wipefs :-)
I found it from reading man blkid and lsblk, after that the information
from wipefs(8) turned out sufficient (and the howto above did not add
any new knowledge).

-- 
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/49@fidonet

Attachment: signature.asc
Description: PGP signature


Reply to: