Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #232870

Re: How to make btrfs forget a disk?

From Victor Sudakov <vas@sibptus.ru>
Newsgroups linux.debian.user
Subject Re: How to make btrfs forget a disk?
Date 2021-03-12 10:20 +0100
Message-ID <BRM7D-6BT-7@gated-at.bofh.it> (permalink)
References <BRFSy-2vB-5@gated-at.bofh.it> <BRGvf-33U-1@gated-at.bofh.it> <BRGYi-3eA-3@gated-at.bofh.it> <BRInn-4aN-1@gated-at.bofh.it> <BRJWa-54W-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-12 03:40 +0100
  Re: How to make btrfs forget a disk? David <bouncingcats@gmail.com> - 2021-03-12 04:20 +0100
    Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-12 04:50 +0100
      Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-12 06:20 +0100
        Re: How to make btrfs forget a disk? deloptes <deloptes@gmail.com> - 2021-03-12 08:00 +0100
          Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-12 10:20 +0100
            Re: How to make btrfs forget a disk? David <bouncingcats@gmail.com> - 2021-03-12 10:40 +0100
              Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-12 11:00 +0100
            Re: How to make btrfs forget a disk? deloptes <deloptes@gmail.com> - 2021-03-12 12:10 +0100
        Re: How to make btrfs forget a disk? Anssi Saari <as@sci.fi> - 2021-03-12 09:20 +0100
          Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-12 10:30 +0100
      Re: How to make btrfs forget a disk? David <bouncingcats@gmail.com> - 2021-03-12 10:30 +0100
        Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-12 11:10 +0100
  Re: How to make btrfs forget a disk? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-03-12 17:10 +0100
    Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-14 05:00 +0100
      Re: How to make btrfs forget a disk? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-03-14 10:50 +0100
        Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-14 11:40 +0100
          Re: How to make btrfs forget a disk? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-03-14 12:20 +0100
            Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-15 04:50 +0100
  Re: How to make btrfs forget a disk? Victor Sudakov <vas@sibptus.ru> - 2021-03-16 03:20 +0100

csiph-web