Closed gsanchietti closed 4 months ago
Testing image version: 8-23.05.3-ns.0.0.5-rc2-34-g6f7e5e9
I'd prefer to use non-EFI images, the partition table has only two partitions and the filesystems are unreadable by Windows.
Changing the name of the image may have a big impact on the following:
Let's discuss it further before taking a decision.
After some more tests we found that:
My proposal is:
Eventually, we can force the restore a good partition table (see description of PR #519) but I would like to avoid it because this solution can hide some drawbacks.
After more tests, it seems that all Windows software is going to change the partition table after writing the image.
So this is a another proposal:
Proposed patch fixes the reported issue but an EFI image written from Windows does not boot on a logacy-BIOS machine.
Final proposal:
Testing image version: 8-23.05.3-ns.0.0.5-rc2-72-gfeab71a
It works as expected: USB key written with a linux system holds the right partition table also after having been connected to a Windows system. USB key must not be written with a Windows system to avoid problems with partitions. Thanks to lucad
Description
The partition table generated from a USB pen written by Windows is incorrect. This issue arises specifically when creating the USB pen for NethSecurity 8. Upon inspection, it was found that when the USB pen is created on Windows, three partitions with IDs 128/1/2 are reported, whereas on Linux with
dd
, this process occurs correctly. However, on Windows, whether using tools like Balena, Win32, or Rufus, the partitions are initially written correctly, but upon completion of the writing process, when Windows mounts the pen, it performs a check and changes the ID 128 to 3 because it doesn't like the sequence. Consequently, when performing anns-install
, the firewall is created with IDs 3-1-2. This causes issues when enabling logging, as the ID 3 is already occupied, disrupting the functionality.Steps to reproduce
Expected behavior
The partition table should be correctly generated without any alterations to the partition IDs.
Actual behavior
After creating the USB pen on Windows, the partition table displays IDs 128/1/2, but upon mounting on Windows, the ID 128 is changed to 3, causing issues during the installation process.
If ns-install is used on a legacy-BIOS machine, the only effect of the bug is a wrong partition numbering that leads to a bug on the extra storage management: the free disk partition cannot be used for extra storage due to the incorrect partition table.
If ns-install is used on UEFI machine, the installation fails with the error:
This is because the
/boot
partition is not mounted.Additional Information
Bad partition table:
Components
NethSecurity version: 8-23.05.3-ns.0.0.3-rc1-80-g615c01e
Thanks to lucad and @NethNick for reporting.