Bug 34877 - isodumper should remove iso9660 filesystem when formatting a LiveUsb device
Summary: isodumper should remove iso9660 filesystem when formatting a LiveUsb device
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://bugs.mageia.org/show_bug.cgi?...
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks: 33657
  Show dependency treegraph
 
Reported: 2025-12-19 18:31 CET by katnatek
Modified: 2026-01-07 07:13 CET (History)
6 users (show)

See Also:
Source RPM: isodumper
CVE:
Status comment:


Attachments

Description katnatek 2025-12-19 18:31:03 CET
Description of problem:

When you try to make a Classic install to usb device previously used to create a LiveUsb, the installation of grub could fail due the presence of the iso9660 filesystem
katnatek 2025-12-19 18:31:40 CET

URL: (none) => https://bugs.mageia.org/show_bug.cgi?id=34835#c22

Comment 1 Morgan Leijström 2025-12-20 11:19:15 CET
papoteur, this is your baby

CC: (none) => fri
Assignee: bugsquad => yves.brungard

Comment 2 Marja Van Waes 2025-12-21 12:54:09 CET
From bug 34877, comment 22:

> @katnatek, are you installing onto a USB flash drive that you've previously
> used with an ISO image? If so, your problem is most likely that the is9660
> filesystem signature is still present on the drive. Try using wipefs to
> examine that drive and to remove any filesystem signatures that shouldn't be
> there.

Isodumper could do, or learn to do, that on any target devices that you use the tool for.

But your error occurred when you tried to install an already dumped iso to a USB key, previously used for a Live ISO, right? So that USB key was at that time a target of the dumped iso, but not of Isodumper. How can isodumper fix that at that time?

CC: (none) => marja11

Comment 3 Morgan Leijström 2025-12-21 18:26:44 CET
@katnatek, did you format the target for *system installation* using Isodumper?
Comment 4 katnatek 2025-12-21 19:23:08 CET
(In reply to Morgan Leijström from comment #3)
> @katnatek, did you format the target for *system installation* using
> Isodumper?

I use the usb to make a live USB ,after play sometime format with isodumper and then try to install
If not, perhaps I directly try to install in the usb and after the 1st fail format with isodumper

I not want to mention win2 tools but one I use did make something like this, but if I remember well with 3rd party tool and not let any trace of the previous usage in the usb.
Comment 5 Morgan Leijström 2025-12-21 19:53:49 CET
Sorry i do not understand clearly.

(In reply to katnatek from comment #0)
> When you try to make a Classic install to usb device previously used to
> create a LiveUsb, the installation of grub could fail due the presence of
> the iso9660 filesystem

That USB device where Grub is about to install, did you format that USB using Isodumper before running the installer?

Also, are you sure you selected the correct device for configuring boot?
(I ask because i have selected wrong myself before...)
Comment 6 katnatek 2025-12-21 20:05:51 CET
(In reply to Morgan Leijström from comment #5)
> Sorry i do not understand clearly.
> 
> (In reply to katnatek from comment #0)
> > When you try to make a Classic install to usb device previously used to
> > create a LiveUsb, the installation of grub could fail due the presence of
> > the iso9660 filesystem
> 
> That USB device where Grub is about to install, did you format that USB
> using Isodumper before running the installer?

Short answer, yes

> 
> Also, are you sure you selected the correct device for configuring boot?
> (I ask because i have selected wrong myself before...)

Short answer yes
I disconnect the hdd to avoid confusion
Comment 7 Morgan Leijström 2025-12-21 20:13:38 CET
(In reply to katnatek from comment #6)
> (In reply to Morgan Leijström from comment #5)
> > Also, are you sure you selected the correct device for configuring boot?
> > (I ask because i have selected wrong myself before...)
> 
> Short answer yes
> I disconnect the hdd to avoid confusion

And you are sure you did not select the device from which installer is booted (where you dumped the .iso) ?
Comment 8 katnatek 2025-12-21 20:21:32 CET
(In reply to Morgan Leijström from comment #7)
> (In reply to katnatek from comment #6)
> > (In reply to Morgan Leijström from comment #5)
> > > Also, are you sure you selected the correct device for configuring boot?
> > > (I ask because i have selected wrong myself before...)
> > 
> > Short answer yes
> > I disconnect the hdd to avoid confusion
> 
> And you are sure you did not select the device from which installer is
> booted (where you dumped the .iso) ?

Yes, after the fail I think I did that but selecting the other device end with grub in the ventoy usb and have to recreate
Comment 9 Mageia Robot 2026-01-01 16:07:29 CET
commit ee7bf6ddbca0423f7a6a799ec34136896903fd58
Author: Papoteur <papoteur@...>
Date:   Thu Jan 1 15:30:50 2026 +0100

    Fix running do_format in magiback (mga#34877 mga#34867)
    
    Restore erasing MBR when formatting in one partition
    Fix messages about partition, not only persistent partition.
---
 Commit Link:
   https://gitweb.mageia.org/software/isodumper/commit/?id=ee7bf6ddbca0423f7a6a799ec34136896903fd58

 Bug links:
   Mageia
      https://bugs.mageia.org/34877
      https://bugs.mageia.org/34867
Comment 10 Mageia Robot 2026-01-01 16:07:32 CET
commit 9ddaf70a5cfa851433ea003be92f1830f4d5dcd1
Author: Papoteur <papoteur@...>
Date:   Thu Jan 1 15:51:01 2026 +0100

    1.58
    
    mga#34877 mga#34867
---
 Commit Link:
   https://gitweb.mageia.org/software/isodumper/commit/?id=9ddaf70a5cfa851433ea003be92f1830f4d5dcd1

 Bug links:
   Mageia
      https://bugs.mageia.org/34877
      https://bugs.mageia.org/34867
Comment 11 papoteur 2026-01-01 19:27:52 CET
A version 1.59 is to test in cauldron.
Comment 12 katnatek 2026-01-01 20:27:02 CET
Before format

wipefs /dev/sdc
DEVICE OFFSET TYPE    UUID                   LABEL
sdc    0x8001 iso9660 2025-12-20-14-23-01-00 Mageia-10-a1-Live-Xfce-x86_64
sdc    0x1fe  dos       

After the format

wipefs /dev/sdc
DEVICE OFFSET TYPE UUID             LABEL
sdc    0x3    ntfs 45EC2D1239C09E1F 
sdc    0x1fe  dos               

Add to the success dialog a suggesting to unplug & replug the usb device will be fine, because if not is done still see the first output
Comment 13 Morgan Leijström 2026-01-02 16:36:29 CET
(In reply to katnatek from comment #12)
> Add to the success dialog a suggesting to unplug & replug the usb device
> will be fine, because if not is done still see the first output

Even better if the program can perform that programatically.

Keywords: (none) => feedback

Comment 14 katnatek 2026-01-02 23:33:33 CET
(In reply to katnatek from comment #12)
> Before format
> 
> wipefs /dev/sdc
> DEVICE OFFSET TYPE    UUID                   LABEL
> sdc    0x8001 iso9660 2025-12-20-14-23-01-00 Mageia-10-a1-Live-Xfce-x86_64
> sdc    0x1fe  dos       
> 
> After the format
> 
> wipefs /dev/sdc
> DEVICE OFFSET TYPE UUID             LABEL
> sdc    0x3    ntfs 45EC2D1239C09E1F 
> sdc    0x1fe  dos               
> 
> Add to the success dialog a suggesting to unplug & replug the usb device
> will be fine, because if not is done still see the first output

And can this change be backported to current mageia 9 version?
Comment 15 Mageia Robot 2026-01-03 12:19:05 CET
commit 5d7bf470f90156197b27ce5c47fd9e9ed0a02325
Author: Papoteur <papoteur@...>
Date:   Thu Jan 1 15:51:01 2026 +0100

    1.59
    
    mga#34877 mga#34867
---
 Commit Link:
   https://gitweb.mageia.org/software/isodumper/commit/?id=5d7bf470f90156197b27ce5c47fd9e9ed0a02325

 Bug links:
   Mageia
      https://bugs.mageia.org/34877
      https://bugs.mageia.org/34867
Comment 16 Morgan Leijström 2026-01-04 15:16:56 CET
Still in 1.60-1.1 per Bug 33657 Comment 9

Summary: isodumper should remove iso9660 filesystem when format LiveUsb device => isodumper should remove iso9660 filesystem when formatting a LiveUsb device

Comment 17 Mageia Robot 2026-01-05 09:25:12 CET
commit bf8628182b86cfa52089903461b4e0ba87bba450
Author: Papoteur <papoteur@...>
Date:   Mon Jan 5 08:54:06 2026 +0100

    Format: erase also iso 9660 descriptor before formatting (mga#34877)
    
    Improve progress bar
---
 Commit Link:
   https://gitweb.mageia.org/software/isodumper/commit/?id=bf8628182b86cfa52089903461b4e0ba87bba450
Comment 18 papoteur 2026-01-05 11:34:25 CET
A new version is available in Cauldron and MGA9 testing.

RPMS:
=====
isodumper-gtk-1.61-1.mga9.noarch
isodumper-qt-1.61-1.mga9.noarch
isodumper-1.61-1.mga9.noarch

SRPMS:
======
isodumper-1.61-1.mga9

Assignee: yves.brungard => qa-bugs

papoteur 2026-01-05 13:00:51 CET

Keywords: feedback => (none)
CC: (none) => yves.brungard

Comment 19 Morgan Leijström 2026-01-05 13:02:08 CET
Seems OK here :-)

gparted now say "[Encrypted]" for that partition after I told isodumper-1.61-1.mga9 to make an encrypted FAT32 partition.

Also, the progress bar is now really visible (not greyed)

The encrypted partition works.
Comment 20 papoteur 2026-01-05 13:12:59 CET
Great.
I did not know that FAT32 could be encrypted with luks.
Comment 21 katnatek 2026-01-05 19:26:02 CET
installing isodumper-1.61-1.mga9.noarch.rpm isodumper-gtk-1.61-1.mga9.noarch.rpm isodumper-qt-1.61-1.mga9.noarch.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     #####################################################################################
      1/3: isodumper-gtk         #####################################################################################
      2/3: isodumper             #####################################################################################
      3/3: isodumper-qt          #####################################################################################
      1/3: removing isodumper-qt-1.56-1.mga9.noarch
                                 #####################################################################################
      2/3: removing isodumper-1.56-1.mga9.noarch
                                 #####################################################################################
      3/3: removing isodumper-gtk-1.56-1.mga9.noarch
                                 #####################################################################################

Created a LiveUsb OK
After unplug & plug the usb

wipefs /dev/sdc
DEVICE OFFSET TYPE    UUID                   LABEL
sdc    0x8001 iso9660 2025-12-20-14-03-12-00 Mageia-10-a1-Live-Plasma-x86_64
sdc    0x1fe  dos

Dispositivo de destino: Kingston DataTraveler 2.0 (/dev/sdc) 14.538 GiB
Contiene esta(s) partición(es)
/dev/sdc1: Tipo=iso9660, Etiqueta=Mageia-10-a1-Live-Plasma-x86_64
/dev/sdc2: Tipo=vfat, Etiqueta=MGAISO-ESP
Ha ocurrido un error mientras se creaba la partición.

Or translated

Destination device: Kingston DataTraveler 2.0 (/dev/sdc) 14.538 GiB
Contains this partition(s)
/dev/sdc1: Type=iso9660, Label=Mageia-10-a1-Live-Plasma-x86_64
/dev/sdc2: Type=vfat, Label=MGAISO-ESP
An error occurred while creating the partition.
Comment 22 papoteur 2026-01-05 19:30:02 CET
Hi Katnatek,
Please provide pertinent parts of journal and /var/log/magiback.log
Comment 23 katnatek 2026-01-05 19:31:01 CET
(In reply to katnatek from comment #21)
That's my fail, I don't check the devices mounted in the filemanager

wipefs /dev/sdc
DEVICE OFFSET TYPE UUID LABEL
sdc    0x1fe  dos       

So I think is good
Comment 24 papoteur 2026-01-05 19:38:34 CET
(In reply to katnatek from comment #23)
> So I think is good
Be sure!
Comment 25 katnatek 2026-01-05 19:53:49 CET
(In reply to papoteur from comment #24)
> (In reply to katnatek from comment #23)
> > So I think is good
> Be sure!

That was the cause
BTW after a successful image dump the dialog suggest you can unplug the memory
But if you do it then a dialog about no memory is present and when you click on cancel application crash

But as all the other bugs are fixed I think we can go
Comment 26 Morgan Leijström 2026-01-05 22:22:18 CET
One thing i wonder, why do isodumper translate lowercase letters given for partition label to uppercase?

I have always used mixed case since i started using linux and never hit a problem...

A quick browsing around say specification for FAT32 allows mixed case but it may be treated case insensitive by the OS:es like filenames are handled.   Other tools allows it lowercase, (even some on Windows) some warn.

For the other filesytsems i think there is no limitation, and i think isodumper should allow lowercase for all filesystems types. (possibly warn for FAT32, but that is entirely optional, IMO)
Morgan Leijström 2026-01-05 22:26:57 CET

Blocks: (none) => 33657

Comment 27 papoteur 2026-01-06 16:14:35 CET
(In reply to katnatek from comment #25)
> But if you do it then a dialog about no memory is present and when you click
> on cancel application crash
I just tested, it does not crash, but close.
What beheviour do you expect? There is no device, thus nothing to do. Bye.

(In reply to Morgan Leijström from comment #26)
> One thing i wonder, why do isodumper translate lowercase letters given for
> partition label to uppercase?
> 
> I have always used mixed case since i started using linux and never hit a
> problem...
> 
> A quick browsing around say specification for FAT32 allows mixed case but it
> may be treated case insensitive by the OS:es like filenames are handled.  
> Other tools allows it lowercase, (even some on Windows) some warn.
> 
> For the other filesytsems i think there is no limitation, and i think
> isodumper should allow lowercase for all filesystems types. (possibly warn
> for FAT32, but that is entirely optional, IMO)
Upper case is means to be sure that no unexpected behaviour occurs. This is for FAT32 and exFAT in isodumper. The field is also limited to 11 characters.
The FAT norm does not allow lower case in file names, thus also in volume name which is a file name.
https://academy.cba.mit.edu/classes/networking_communications/SD/FAT.pdf p24
Comment 28 Herman Viaene 2026-01-06 17:15:53 CET
I am not sure I understand all this. Two issues addressed in one bug??
Anyway, choosing a simple testcase:
writing M10Plasma live iso to USB stick om my desktop M9 with isodumper 1.56.
Completes successfully, install the updated packages on Compaq laptop, insert the USB and write M10Plasma classic iso to it.
Output of isodumper in its report:
Target Device: ADATA USB Flash Drive (/dev/sdb) 7.241 GiB
Contains this/these partition(s)
/dev/sdb1: Type=iso9660, Label=Mageia-10-a1-Live-Plasma-x86_64
/dev/sdb2: Type=vfat, Label=MGAISO-ESP
Signature file /home/tester9/Downloads/Mageia-10-alpha1-x86_64.iso.sha3.gpg not found

ISO Image to copy: /home/tester9/Downloads/Mageia-10-alpha1-x86_64.iso
Executing copy from /home/tester9/Downloads/Mageia-10-alpha1-x86_64.iso to /dev/sdb
Image Mageia-10-alpha1-x86_64.iso written to /dev/sdb
Bytes written: 5388920832
SHA3 sum: 6B951A765D31E6C9A0AC41210733968B960E17333683D2E2476461C8DEBFDFEC3CD42D3DE6001E43E10F11A713C5FFD487267269372D4A4DFF3939D5B8D298F4

Plug out the USB and plug in again, mount and
$ ls -als /run/media/tester9/Mageia-10-alpha1-x86_64/
total 13
2 drwxr-xr-x  1 tester9 tester9 2048 Dec 20 13:44 ./
0 drwxr-x---+ 3 root    root      60 Jan  6 17:11 ../
1 -rw-r--r--  1 tester9 tester9   80 May 27  2011 autorun.inf
2 drwxr-xr-x  1 tester9 tester9 2048 Dec 20 13:44 boot/
2 -r--r--r--  1 tester9 tester9 2048 Dec 20 13:44 boot.catalog
1 -rw-r--r--  1 tester9 tester9   32 Dec 20 13:44 DATE.txt
2 drwxr-xr-x  1 tester9 tester9 2048 Feb 16  2021 dosutils/
2 drwxr-xr-x  1 tester9 tester9 2048 Dec 20 13:44 EFI/
2 drwxr-xr-x  1 tester9 tester9 2048 Dec 20 13:44 x86_64/
Now trying to boot the USB.

CC: (none) => herman.viaene

Comment 29 Herman Viaene 2026-01-06 17:25:52 CET
USB stick boots successfully into classic installer.
Comment 30 Morgan Leijström 2026-01-06 18:05:26 CET
(In reply to papoteur from comment #27)
> (In reply to katnatek from comment #25)
> > But if you do it then a dialog about no memory is present and when you click
> > on cancel application crash
> I just tested, it does not crash, but close.
> What beheviour do you expect? There is no device, thus nothing to do. Bye.

I think the behaviour is correct.

Optimally, to show it better to the user, the button could read "Exit" or "Close Isodumper" 


> (In reply to Morgan Leijström from comment #26)
> > One thing i wonder, why do isodumper translate lowercase letters given for
> > partition label to uppercase?
-
> Upper case is means to be sure that no unexpected behaviour occurs. This is
> for FAT32 and exFAT in isodumper. The field is also limited to 11 characters.
> The FAT norm does not allow lower case in file names, thus also in volume
> name which is a file name.
> https://academy.cba.mit.edu/classes/networking_communications/SD/FAT.pdf p24

OK good then :-)
Some dont follow specifications, for example...
https://www.winhelponline.com/blog/cant-rename-files-upper-lowercase-usb-drives/

---

(In reply to Herman Viaene from comment #28)
> I am not sure I understand all this. Two issues addressed in one bug??
Actually we hammer also
  Bug 33657 - Unable to encrypt a disk with Isodumper 
all in one update.
Both problems by that and this bug titles are now fixed.

Plus we have a more visible progress bar.

We could release now I think, or maybe also rename that exiting key.
I also mentionned i would like a way to see a way to unhide the set encryption key.  But those two can be discussed later instead.
Comment 31 Herman Viaene 2026-01-06 18:17:57 CET
As you wish.

Whiteboard: (none) => MGA9-64-OK

Comment 32 katnatek 2026-01-06 19:13:54 CET
(In reply to Morgan Leijström from comment #30)
> (In reply to papoteur from comment #27)
> > (In reply to katnatek from comment #25)
> > > But if you do it then a dialog about no memory is present and when you click
> > > on cancel application crash
> > I just tested, it does not crash, but close.
> > What beheviour do you expect? There is no device, thus nothing to do. Bye.
> 
> I think the behaviour is correct.
> 
> Optimally, to show it better to the user, the button could read "Exit" or
> "Close Isodumper" 

Both are ignoring the possibility that the user want to insert other usb device and perform other task.

The actual behavior force to open again the application in that case

But That will be other bug
katnatek 2026-01-06 19:51:02 CET

Keywords: (none) => advisory

Comment 33 katnatek 2026-01-06 22:59:53 CET
papoteur In the comprobation step, where in the translation files is the checking (Verifying?) <partition> part?
Comment 34 Morgan Leijström 2026-01-06 23:28:32 CET
(In reply to katnatek from comment #32)
> The actual behavior force to open again the application in that case

Insert USB, wait two seconds, click update, and you can select it in the dropdown.
Comment 35 katnatek 2026-01-06 23:34:10 CET
(In reply to Morgan Leijström from comment #34)
> (In reply to katnatek from comment #32)
> > The actual behavior force to open again the application in that case
> 
> Insert USB, wait two seconds, click update, and you can select it in the
> dropdown.

What if I not want to walk to the usb port?
I have an extension cable where I connect the usb devices that I use with more frequency
Comment 36 Morgan Leijström 2026-01-07 00:22:43 CET
(In reply to katnatek from comment #35)
> What if I not want to walk to the usb port?
> I have an extension cable where I connect the usb devices that I use with
> more frequency

I use that trick too, cable on table. Also avoids wearing out the port on the computer.
Comment 37 Morgan Leijström 2026-01-07 00:28:43 CET
We seem to release 10alpha1 next day or so.
We should have this fixed Isodumper out to our Mageia 9 users so they can use it for the ISOs.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 38 Ben McMonagle 2026-01-07 04:40:46 CET
updated to latest version.

confirmed iso9660 signature removed

CC: (none) => westel

Comment 39 Mageia Robot 2026-01-07 07:13:10 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2026-0003.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.