Re: What is the proper way to remove an xfs partition?

ToddAndMargo
2017-09-04T00:04:02Z

On 09/03/2017 05:34 AM, Carlos E. R. wrote:
> On 2017-09-02 02:34, ToddAndMargo wrote:
>
>>
>> I don't know if you guys care about such things, but I just
>> request that gparted do a disk blank
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1487807
>
> It is a known issue with gparted that when you reformat a partition or
> disk with something else, it doesn't properly erase at least the
> critical areas of the previous filesystem, causing problems.
>
> One that has been noticed more than once at openSUSE is this:
>
> - 'dd' a CD image on an USB stick for operating system installation. For
> instance, openSUSE-Leap-42.2-NET-x86_64.iso install disk.
>
> - Afterwards, use gparted to remove partitions on the stick, create a
> new partition, format it as FAT32 (with a label).
>
> Tumbleweed (at some version) thought the USB to still be a CD (printing
> its old label) and failed to mount it (because it is FAT).
>
> The code detecting filesystem type had to be changed on Tumbleweed, but
> the cause of the issue is that gparted did not erase the areas at the
> start of the disk with that information, and the FAT format did not
> write on them.
>
>
>
> So this is not a problem with XFS, but a problem caused by gparted
> (feature needed). You have to manually destroy key areas manually,
> probably just a few sectors at partition start.
>
>

Thank you! And something for 1478707 to reproduce!

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~