Bug 31217 - impossible to format an nvme partition in Ext4 at install
Summary: impossible to format an nvme partition in Ext4 at install
Status: RESOLVED DUPLICATE of bug 27364
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-04 12:29 CET by Jean-François Bachelet
Modified: 2022-12-04 17:24 CET (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Jean-François Bachelet 2022-12-04 12:29:53 CET
Description of problem:

I've reported this last yearo when working on a customer new machine but can't find the bug report now :( so reopen it there.

when installing on a new machine with same configuration as the former one where I discovered the bug : MSI x570-A pro motherboard, Ryzen 9 5900x CPU, 512 GB pci4 nvme ssd (instead of 1 TB, different make) in the fastest port of the mobo, 64 GO ram, new harddisks, Radeon Rx6400 graphic card (this one is different but that doesn't mater), this time the machine is mine so we'll have the time to chase that bug to the bone ^^)

now when installing Mageia 8, at partition time I do like ever and make custom partitionning of the nvme disk and when formating the partitions time arrives all ext4 partitions fail to format.

Version-Release number of selected component (if applicable):

latest install DVD Mageia 8 x86-64 version stand-alone or net-install availlable, MCC drakkdisk.

How reproducible:

just do the same as me :)

Steps to Reproduce:
1. custom partition the nvme at mageia8 install time
2. try to format the brand new EXT4 partitions of the nvme disk
3. get the bug :)

Note : I've seen something very interesting about this bug, if you let the auto-partition stuff do its job without modifying any of the created partitions on the nvme, this time ext4 partitions are formated succesfully ! and install can continue till end...

so what happens when I need to custom partition the nvme disk to suit my needs that make the formating of ext4 parts (and some of other filesystems tried) failing ???
I'm a little puzzled there, that bug is nonsense for me, auto-partition it works, custom-partition it fail...

what do you think it could be ?
Jean-François Bachelet 2022-12-04 12:30:06 CET

CC: (none) => jfbachelet

Comment 1 Jean-François Bachelet 2022-12-04 12:37:08 CET
an additional note about another finding in line with this one :

I've tried this : putting all / /home and /usr/local on a real harddisk and only use the nvme ssd as SWAP. with the speeeeed that pci4 nvme is capable in both read and write, paging to the swap would be lightning fast compared to swapping on an sata3 harddisk...

that was what I thinked.

wrong :(

I get this message at boot when using such a configuration : 'unable to use the /swap on nvme disk'... not working so :(

at install I've seen the nvme /swap being formated by drakdisk so that should be working... 

so, again, what can go wrong there ?
Comment 2 sturmvogel 2022-12-04 13:27:25 CET
(In reply to Jean-François Bachelet from comment #0)

> 3. get the bug :)
Your description is missing any useful content or the error message itself so that anybody is able to reproduce.

Never had any problem to format a NVME with custom Mageia (8) partitioner. I always do custom partitioning as i want to define the size of the partitions myself and add additional data drives.
Comment 3 sturmvogel 2022-12-04 13:29:59 CET
BTW by using the search function your old bug is easily to find:
https://bugs.mageia.org/show_bug.cgi?id=27364
Comment 4 sturmvogel 2022-12-04 14:06:40 CET
(In reply to Jean-François Bachelet from comment #0)

> Note : I've seen something very interesting about this bug, if you let the
> auto-partition stuff do its job without modifying any of the created
> partitions on the nvme, this time ext4 partitions are formated succesfully !
> and install can continue till end...
> 
> so what happens when I need to custom partition the nvme disk to suit my
> needs that make the formating of ext4 parts (and some of other filesystems
> tried) failing ???
> I'm a little puzzled there, that bug is nonsense for me, auto-partition it
> works, custom-partition it fail...

So the bug itself seems incalid as you say yourself, that autopartition works well. Given that Mageia 8 is now 1 and a half year old and nobody else complained about this, it seems that your "procedure" for custom partitioning is fundamental wrong. You could start by describing the complete steps i-n d-e-t-a-i-l which you are doing, so that maybe somebody is able to reproduce what you are doing.
Comment 5 Jean-François Bachelet 2022-12-04 16:08:50 CET
I'm not ok with that assumption. why invalid if it is reproduceable each time I try ?

why my partitionning scheme would be wrong ? I just create partitions the size I need plus one or two in sus of the usual /, /usr/local, /home and /swap, usualy a /vms for all the virtual machines I create and a /save for stocking some stuff. all of these partitions are purelly normal ones and EXT4. and fail to format on M2 nvme in that case.

What I do is only use the tools you distribute to do so and their options. That should not trigger a bug that make formating fail.

I've never encountered that bug when working with harddisks, so my surprise when it shows with M2 nvmes.


you can try this too : let drakdisk auto partition, then just resize the /home part and click on next, it ask which partition should be formated, tick all of it and see, format of EXT4 parts will fail on an m2 nvme.


I already given all explications and bug reports on there : https://bugs.mageia.org/show_bug.cgi?id=27364, I can do more if needed.

and just for completeness, some answers in there acknowled the presence of a bug when reading the logs....


That kind of machine is tad expensive, so the time It took to me to have one that I can keep to help chasing the cause of this. (and I needed it to work too ;))


what I see is that that bug is still there in fall 2022 despite I've reported it in fall 2020 and all the updates installed since.

don't be so fast to put that under the carpet for whatever reasons. please. at least that's what your reaction to my bz make me think.


I'm going to try that with mageia 9 cauldron to see if that's fail with it too ^^)
Comment 6 sturmvogel 2022-12-04 17:13:43 CET
Not reproducible due to lack of informations:

- is this disk preformatted with some partitions or is it a really empty disk?
- which steps do you chose (as already asked and not answered): https://doc.mageia.org/installer/8/en/content/diskPartitioning.html
-> Custom Disk Partitioning ->Auto Allocate->fiddling with size afterwards?
-> Use existing partitions ->fiddling with size afterwards?
-> Custom Disk Partitioning -> real custom partitioning?
-> Use Free Space on a Windows Partition->fiddling with size afterwards?
-> ???

In bug 27364 you mention that you have Windows on the same disk. Did you shut down Windows properly and made sure that your disk state is consistent and clean?

Which iso do you use? Netinstall or which other ISO?

Is your BIOS still heavily outdated as in bug 27364?

....

Ever confirmed: 1 => 0
Status: NEW => UNCONFIRMED

Comment 7 sturmvogel 2022-12-04 17:22:25 CET
(In reply to Jean-François Bachelet from comment #5)
 I just create partitions the
> size I need plus one or two in sus of the usual /, /usr/local, /home and
> /swap, usualy a /vms for all the virtual machines I create and a /save for
> stocking some stuff. 
> ....
> you can try this too : let drakdisk auto partition, then just resize the
> /home part and click on next, it ask which partition should be formated,

Some important information is missing here. The partition scheme you describe in the first sentence is no "usual" scheme. This not possible to be created by any "autopartition".

And please clarify what you are doing as asked in my last comment as there is no "auto partition" mode (at least not called this way in drakdisk)
https://doc.mageia.org/installer/8/en/content/diskPartitioning.html
- Use Existing Partitions
- Use Free Space
- Use Free Space on a Windows Partition
- Custom Disk Partitioning -> Auto allocate
Comment 8 sturmvogel 2022-12-04 17:24:31 CET
As you reopened bug 27364 this one is a duplicate. Closing.

*** This bug has been marked as a duplicate of bug 27364 ***

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => DUPLICATE


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