Re: filesystem show still has stale filesystem
- Subject: Re: filesystem show still has stale filesystem
- From: Hullen@xxxxxxxxxxx (Helmut Hullen)
- Date: 05 Aug 2012 12:46:00 +0200
- In-reply-to: <CAJtBfr9mX-T8+-nGAvkinaO3yEw20zjRdab=4vjukwZTj0nR7w@mail.gmail.com>
- Organization: Hullen BS
- Reply-to: helmut@xxxxxxxxx
- User-agent: OpenXP/4.10.7372 (Win32) (i386)
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
--
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
[Linux NFS]
[Linux NILFS]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]