All of lore.kernel.org
 help / color / mirror / Atom feed
* How to remove btrfs information
@ 2012-11-17  2:52 Yangtse Su
  2012-11-17 16:04 ` Goffredo Baroncelli
  0 siblings, 1 reply; 3+ messages in thread
From: Yangtse Su @ 2012-11-17  2:52 UTC (permalink / raw)
  To: linux-btrfs

I have an btrfs part on /dev/sda5,Then I install windows8 with the
windows8 installer.I remove this btrfs part and install windows8 on
it.Now in my Linux,'btfrs filesystem show' still show /dev/sda5 as a
btrfs part. but now it is Microsoft Reserved part,only 128MB.

Here is some information:
http://paste.ubuntu.org.cn/155508


--
God Is Not A Girl!!!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to remove btrfs information
  2012-11-17  2:52 How to remove btrfs information Yangtse Su
@ 2012-11-17 16:04 ` Goffredo Baroncelli
  2012-11-17 16:50   ` Mike Fleetwood
  0 siblings, 1 reply; 3+ messages in thread
From: Goffredo Baroncelli @ 2012-11-17 16:04 UTC (permalink / raw)
  To: Yangtse Su; +Cc: linux-btrfs, Hubert Kario, David Sterba

On 11/17/2012 03:52 AM, Yangtse Su wrote:
> I have an btrfs part on /dev/sda5,Then I install windows8 with the
> windows8 installer.I remove this btrfs part and install windows8 on
> it.Now in my Linux,'btfrs filesystem show' still show /dev/sda5 as a
> btrfs part. but now it is Microsoft Reserved part,only 128MB.
> 

There was a patch about that [1] and David posted a script perl that
does the same [2]. Moreover it seems that "wipefs" is also able to wipe
out a btrfs super-block. I never tried it.


> Here is some information:
> http://paste.ubuntu.org.cn/155508

Please the next time put all these info in the email

> # blkid
> ...
> /dev/sda5: UUID="9c3e097a-bab0-4f18-b074-5cd2f081c8c7"
UUID_SUB="ef0e296c-f554-415e-9aa9-31b1cb9aef31" TYPE="btrfs"
/dev/sda6: UUID="3AFE3D50FE3D0623" TYPE="ntfs"
> # btrfs filesystem show
> Label: none  uuid: 9c3e097a-bab0-4f18-b074-5cd2f081c8c7
> 	Total devices 1 FS bytes used 284.00KB
>	devid    1 size 33.48GB used 2.04GB path /dev/sda5
> ...
> Btrfs Btrfs v0.19
> #gdisk /dev/sda
> >p
> Number  Start (sector)    End (sector)  Size       Code  Name
> ......
>    5       493025280       493287423   128.0 MiB   0C01  Microsoft
reserved part
>   6       493287424       625141759   62.9 GiB    0700  Basic data
partition


[1]http://comments.gmane.org/gmane.comp.file-systems.btrfs/17065
[2]http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg16197.html



> 
> 
> --
> God Is Not A Girl!!!
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to remove btrfs information
  2012-11-17 16:04 ` Goffredo Baroncelli
@ 2012-11-17 16:50   ` Mike Fleetwood
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Fleetwood @ 2012-11-17 16:50 UTC (permalink / raw)
  To: Yangtse Su; +Cc: linux-btrfs

On 17 November 2012 16:04, Goffredo Baroncelli <kreijack@gmail.com> wrote:
> On 11/17/2012 03:52 AM, Yangtse Su wrote:
>> I have an btrfs part on /dev/sda5,Then I install windows8 with the
>> windows8 installer.I remove this btrfs part and install windows8 on
>> it.Now in my Linux,'btfrs filesystem show' still show /dev/sda5 as a
>> btrfs part. but now it is Microsoft Reserved part,only 128MB.
>>
>
> There was a patch about that [1] and David posted a script perl that
> does the same [2]. Moreover it seems that "wipefs" is also able to wipe
> out a btrfs super-block. I never tried it.
>
>
>> Here is some information:
>> http://paste.ubuntu.org.cn/155508
>
> Please the next time put all these info in the email
>
>> # blkid
>> ...
>> /dev/sda5: UUID="9c3e097a-bab0-4f18-b074-5cd2f081c8c7"
> UUID_SUB="ef0e296c-f554-415e-9aa9-31b1cb9aef31" TYPE="btrfs"
> /dev/sda6: UUID="3AFE3D50FE3D0623" TYPE="ntfs"
>> # btrfs filesystem show
>> Label: none  uuid: 9c3e097a-bab0-4f18-b074-5cd2f081c8c7
>>       Total devices 1 FS bytes used 284.00KB
>>       devid    1 size 33.48GB used 2.04GB path /dev/sda5
>> ...
>> Btrfs Btrfs v0.19
>> #gdisk /dev/sda
>> >p
>> Number  Start (sector)    End (sector)  Size       Code  Name
>> ......
>>    5       493025280       493287423   128.0 MiB   0C01  Microsoft
> reserved part
>>   6       493287424       625141759   62.9 GiB    0700  Basic data
> partition
>
>
> [1]http://comments.gmane.org/gmane.comp.file-systems.btrfs/17065
> [2]http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg16197.html

Yes wipefs is the simplest method.

Check first:
# wipefs /dev/sda5

Do it second:
# wipefs -a /dev/sda5

Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-17 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17  2:52 How to remove btrfs information Yangtse Su
2012-11-17 16:04 ` Goffredo Baroncelli
2012-11-17 16:50   ` Mike Fleetwood

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.