https://bugs.kde.org/show_bug.cgi?id=431628
Bug ID: 431628 Summary: partitionmanager does not wipe old signatures when creating a new partition table Product: partitionmanager Version: Git Platform: Debian testing OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: andr...@stikonas.eu Reporter: m.wegh...@posteo.de Target Milestone: --- SUMMARY partitionmanager does not wipe old signatures when creating partition table. STEPS TO REPRODUCE 1. insert USB drive 2. download a CD ISO image, e.g. https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.7.0-amd64-netinst.iso 2. copy the image to the USB drive using dd, command if USB drive is /dev/sda: sudo dd if=/path/to/debian-10.7.0-amd64-netinst.iso of=/dev/sda 3. in partitionmanager, create a new partition table for the USB device 3.1. right-click on the USB device 3.2. select -> "New Partition Table" 3.3. leave default selection "GPT" and click "Create New Partition Table" 3.4. click the "Apply" button, and "Apply Pending Operations" 4. check signatures on the device, e.g. run 'sudo file -s /dev/sda' OBSERVED RESULT output is: $ sudo file -s /dev/sda /dev/sda: ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'Debian 10.7.0 amd64 n' (bootable) EXPECTED RESULT There should be no more "iso9660" signature after a new partition table has been created. The output should be something like: $ sudo file -s /dev/sda /dev/sda: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 15633407 sectors, extended partition table (last) SOFTWARE/OS VERSIONS Operating System: Debian GNU/Linux KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.77.0 Qt Version: 5.15.2 Kernel Version: 5.10.0-1-amd64 OS Type: 64-bit Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz Memory: 62.4 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 ADDITIONAL INFORMATION * Not wiping the signatures also leads to the device's partitions not properly being shown in gparted after taking the above steps + creating partitions in partitionmanager, then starting gparted (e.g. an actual FAT32 partition is shown as having file system "iso9660" instead). * Reproducible using kpmcore master as of commit 31706cffdc1df60b96010fbbdbbdc6ec192fd913 and partitionmanager as of commit 42c46fa67425c3bffb864a1056e56688e2fd3784. * I have investigated this and plan to submit a MR for kpmcore that fixes this bug. -- You are receiving this mail because: You are watching all bug changes.