Bug 15895

Summary: Why is it not possible to create an EFI partition on mmcblck1 when there is already one on mmcblck0?
Product: Mageia Reporter: Bjarne Thomsen <bjarne.thomsen>
Component: InstallerAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: marja11, thierry.vignaud, tmb
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: Mageia-5-RC-x86_64-DVD.iso CVE:
Status comment:

Description Bjarne Thomsen 2015-05-09 19:54:12 CEST
Description of problem:
While fiddling around with the Intell Compute Stick with a MicroSD inserted
I discovered that I could NOT create an EFI partition on /mmcblck1 because there was already an EFI partition on /mmcblck0, namely the ubuntu one.
However, if I first try to overwrite the protected one on /mmcblck0 it works fine to create an EFI partition on /mccblck1.
And afterwards I kan boot either ubuntu or mageia5.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2015-05-11 00:54:02 CEST
IIRC, having more than one EFI partition will not be supported for Mageia 5, but is planned for Mageia 6

CC: (none) => marja11, tmb

Comment 2 Thierry Vignaud 2015-05-11 11:04:51 CEST
What was the error message?

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 3 Bjarne Thomsen 2015-05-11 11:52:46 CEST
That the partition /mmcblck0 was too corrupt for me.
Do you wish to go on anyway.
(this not a transcrription).
(1) No. Then I selected /mmcblck1, but I could not create /boot/EFI.
(2) yes. Then I selected /mmcblck1 instead of going on with /mmcblck0, and now I could create /boot/EFI on /mmcblck1

In this way the ubuntu 14.04-amd64 EFI is left intact on /mmcblck0.
Evidently the /boot/EFI for ubuntu is kept in firmware.
I cannot write a new /boot/EFI partition back to /mmcblck0.
"BIOS" states that only ubuntu 14.04 can be installed on /mmcblck0.
Enyway, if I try to copy a new /boot/EFI to /mmcblck0 I cannot boot ubuntu,
and I have to make a fresh ubuntu install.

This is OK, as long as you know that you must select "yes".
Comment 4 Bjarne Thomsen 2015-05-11 19:43:13 CEST
All right. When I try to install mga5 I get this lengthy message:
I cannot read the partition table of device mmcblk0, it's too corrupted for me: (I can try to go on, erasingover bad partitions (ALL DATA will be lost!).
The other solution is to not allow DrakX to modify the partition table.
(the error is /proc/partitions does not agree with drakx 3 != 5: /proc/partitions: mmcblk0p1 (mmcblk0), mmcblk0p2 (mmcblk0), mmcblk0p3(mmcblk0), mmcblk0boot1 (mmcblk0), mmcblk0boot0 (mmcblk0))
(My comment: the last 2 partitions are probably for ubuntu and windows8)

Do you agree to lose all the partitions?

It suggests: No
I selected No, but I now know that I should have selected yes.

I selected Install
and the keyboard. 
Then I came to the Partitioning window. At the top I can select
Here is the content of your disk drive: MMC block device (59GB)
(this is my MicroSD card)
I select Custom disk partitioning.
I click on mmcblk1 (which already has Mageia 5 installed).
The first partition is a 299MB EFI System (as expected).
I select
Mount Point: /boot/EFI and I get this message:
ERROR: There is already a partition with mount point /boot/EFI
It refers to the ubuntu EFI mount point.

I now re-booted the install DVD and came to the the point
Do you agree to lose all the partitions?
This time I selected "Yes".
Now, I could create an EFI partition on mmcblk1 with mount point /boot/EFI

I hesitate to re-do this operatio, as I would have to re-install Mga5.
Comment 5 Thierry Vignaud 2015-05-11 20:56:02 CEST
You just need to remove the mount point from Ubuntu ESP in custom partitionning before adding a new one...

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

Comment 6 Bjarne Thomsen 2015-05-11 21:48:40 CEST
No, it is not that simple. I went back to
Here is the content of your disk drive: MMC block device (28GB) (internal)

The DrakX Partitioning wizard found the following solutions:
(dot) Use existing Partitions.

Custom partitioning is NOT an option for Ubuntu ESP.
Intel prevents me from installing anything else than ubuntu 14.04.

On the other hand, when I am back at
Do you agree to lose all the partitions?

and I select "yes", ALL partitions of mmcblk0 have been cleared,
and I can now create /boot/EFI on the mmcblk1 device.

The point is that it is a copy of mmcblk0 that has been cleared.
Afterwards I can still boot ubuntu fram mmcblk0.