All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hullen@t-online.de (Helmut Hullen)
To: linux-btrfs@vger.kernel.org
Subject: Re: filesystem show still has stale filesystem
Date: 05 Aug 2012 12:46:00 +0200	[thread overview]
Message-ID: <CEHqV5APCXB@helmut.hullen.de> (raw)
In-Reply-To: <CAJtBfr9mX-T8+-nGAvkinaO3yEw20zjRdab=4vjukwZTj0nR7w@mail.gmail.com>

Hallo, Florian,

Du meintest am 05.08.12:

> I was playing with btrfs and accidentally formatted the disk directly
> (/dev/sdb instead of sdb1). Since then I rewrote the GPT partition
> table, recreated the partition and ran btrfs device scan. Still,
> btrfs filesystem show prints:

> root@horus /mnt # btrfs fi sh --all-devices
> failed to read /dev/sr0: No medium found
> Label: 'test'  uuid: ffab72f2-eff1-4ac8-a694-d56dd84fda24
>         Total devices 1 FS bytes used 28.00KB
>         devid    1 size 2.73TB used 2.04GB path /dev/sdb

> Label: 'home'  uuid: c465d715-098a-4d0d-bebc-6aa51f4cb349
>         Total devices 1 FS bytes used 28.00KB
>         devid    1 size 2.73TB used 2.04GB path /dev/sdb1

"formatting" leaves most bytes on the disk untouched. If you really want  
to use only /dev/sdb (or only /dev/sdb1) then you should first fill many  
bytes at the beginning of the disk with zeros.

Some months ago someone had told the minimum; I have forgotten this  
value. But something like

        dd if=/dev/zero of=/dev/sdb bs=1M count=10

should do the job.

And then "mkfs.btrfs" creates the (only) wanted partition(s).

Viele Gruesse!
Helmut

  reply	other threads:[~2012-08-05 10:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 10:27 filesystem show still has stale filesystem Florian Lindner
2012-08-05 10:46 ` Helmut Hullen [this message]
2012-08-05 10:55 ` Martin Steigerwald
  -- strict thread matches above, loose matches on Subject: below --
2012-08-05 10:56 Martin Steigerwald

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=CEHqV5APCXB@helmut.hullen.de \
    --to=hullen@t-online.de \
    --cc=helmut@hullen.de \
    --cc=linux-btrfs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.