#1005101 fdisk: -w / --wipe is no longer honoured in ver 2.36

Package:
fdisk
Source:
util-linux
Description:
collection of partitioning utilities
Submitter:
david barber
Date:
2022-02-09 09:39:04 UTC
Severity:
normal
#1005101#5
Date:
2022-02-07 10:13:25 UTC
From:
To:
Dear Maintainer,

fdisk --wipe

- created bootable live Debian using dd
- wanted to create add'l partition for storing data (sdb3)
- previously (deb 10) used fdisk with --wipe=never option, worked successfully
- previous version 2.34 worked as expected, current version 2.36 does not honour the --wipe option
- according to man 8 fdisk, --wipe is still an option
- my workaround was to build a VM (old Debian) and perform the work there (successfully)
- keep up the good work!

David Barber

#1005101#10
Date:
2022-02-07 17:20:20 UTC
From:
To:
Hello David Barber,

* david barber <barbed2mailer@gmail.com> [220207 11:15]:

Thank you for your report. Can you clarify a few things for me,
please:

1) which image (URL) did you use, and what was the exact dd command?
2) do you mean, --wipe=never did nothing at all? Or did it fail? Did
it wipe some data? I.e. what was your expectation and what actually
happened?

Thanks,
Chris

#1005101#15
Date:
2022-02-08 19:15:25 UTC
From:
To:
Hi Chris,

Sorry, I'm not sure how to reply within the bug tracking system.....this is
my first.

1) I'm using this debian live image: 2612133888 Jan 28 00:42
debian-live-11.1.0-amd64-mate.iso
2) See below for results using both -w=never and --wipe=never on the USB
stick.  -w reports as unsupported wipe mode (!) and --wipe=never seems to
have no effect. (warning about ISO9660 comes up even though it was told to
NEVER wipe).

My dd command was as follows:
barbed2@vostro:/nas1/ISO-IMAGES$ dd if=debian-live-11.1.0-amd64-mate.iso |
sudo dd of=/dev/sdf bs=4M status=progress oflag=direct


=================== begin snip ====================
root@vostro:/nas1/ISO-IMAGES# fdisk -w=never /dev/sde
fdisk: unsupported wipe mode
root@vostro:/nas1/ISO-IMAGES# fdisk --wipe=never /dev/sde

Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

The device contains 'iso9660' signature and it may remain on the device. It
is recommended to wipe the device with wipefs(8) or fdisk --wipe, in order
to avoid possible collisions.

Command (m for help):
=================== end snip ====================


Thanks again, pls let me know if there's anything else I can provide.

David

#1005101#20
Date:
2022-02-09 09:38:22 UTC
From:
To:
Hi David,

thanks for following up.

* david barber <barbed2@gmail.com> [220208 20:16]:

No worries. If you got my original reply, you can just reply to
that, as long as 1005101@bugs.debian.org is still in the emails
"To:" field. (I have also forwarded your reply to the bug.)

Thanks, I think thats all for now. I will try to reproduce this.

BR,
Chris