[btrfs] impossible to install leap 15.2 (15th attempt in two days)

Greetings !!

i’m deseparated I haver the feeling I’m on windows :{

The installation fails always when trying to record the grub2-efi with the following error:

/usr/bin/grub2-install --target=x86_64-efi --force --skip-fs-probe failedx
Function not implemented :{
input/output error

I have a efi fat partition and the / mount point is a btrfs fs that worked good with 15.0 and 15.1 :{
Could not format it using the installer, there is a lack of tools to do tings during install like expert console mode in order to pass some commands…

My system is ******* up since one week… unusable.

During the installation the system asks to select a root partition… as always i selected the btrfs partition spread on two partitions /dev/sda6 and /dev/sdc1.
It has always worked untill today.

Those partitions have been formatted using mkfs.btrfs /dev/sda5 /dev/sdc1 on a rescue session.
I resized the swap partition to have this 256 Mo EFI partition that is shown as “WIN95 (LBA)” instead of FAT.

This partition is logical and named /dev/sda8

There is always warnings saying that the / mount point could not be formatted… there is no way to ask the btrfs /dev/sda8 to be formated :{

same with 15.1

Sorry to say, but this is confusing at least.
“partition spread on two partitions /dev/sda6 and /dev/sdc1.”
is IMHO physical impossible.

In the next message you talk about sda5 and sdc1.

Then you talk about a partition that is to be used as Swap, but there is no information which one, or it must be that you mean sda8 with the next line.

Further you talk about “logical partition” which means that sda is MBR partitioned.

I think I am now at the end of the guesses I can make.

What about a listing

fdisk -l

with an explanation added about what each and every of those partitions are supposed to be used for?

typing error it is always /dev/sda6 that i’m talking about

The hardware is

B550 Phantom Gaming 4 (UEFI P1.10)
AMD ryzen 7 3700x

All disks are readable and free from errors.

/dev/sda is ssd

Hi
If you have a logical partition then the disk is type ‘dos’ it needs to be type ‘gpt’ for UEFI to work, this partition must be formatted to vfat and the partiton type set to ef00, gdisk is the tool for this, not fdisk…

/dev/sda1 100M exFat (windows bootloader I think)
/dev/sda2 44G exFat (windows system)
/dev/sda3 logical W95 extended LBA
/dev/sda5 15.7G swap
/dev/sda6 40G btrfs (Linux)
/dev/sda7 11.8G /home
/dev/sda8 (new) EFI 256Mo /boot/efi

If you have a logical partition then the disk is type ‘dos’ it needs to be type ‘gpt’ for UEFI to work, this partition must be formatted to vfat and the partiton type set to ef00, gdisk is the tool for this, not fdisk…

it has worked since 2015…
how could I guess these are to change
ok, i will format the whole stuff and rearrange the hard disk to avoid logical partitions

Hi
Here is a dual boot setup on a SSD here…


gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 234441648 sectors, 111.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B0780BD3-3B81-4DB5-B29F-3DA735899F02
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 234441614
Partitions will be aligned on 2048-sector boundaries
Total free space is 3366 sectors (1.6 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          534527   260.0 MiB   EF00  EFI System
   2          534528          567295   16.0 MiB    0C01  Microsoft reserved
   3          567296        52996095   25.0 GiB    8300  Linux filesystem
   4        52996096        84453375   15.0 GiB    8300  Linux filesystem
   5        84453376        87599103   1.5 GiB     8200  Linux swap
   6        87599104       233170502   69.4 GiB    0700  Microsoft basic data
   7       233170944       234440703   620.0 MiB   2700

You don’t need a separate efi partition for linux and windows, they happily co-exist. I always pre create (via live rescue USB tumbleweed) the partitions and just use expert mode in YaST partition and tell it to use the partitions as they are, for the efi partition (eg /dev/sda1) I always preformat with mkfs.vfat /dev/sda1.

You can use gdisk for displaying the disk and their partitioning, but fdisk will still do it also. It is a matter of taste. Others like lsblk. But, in any case ,starting a thread about disks, partitions, etc without showing one of these (and of course all between CODE tags) will not speed up any help.

ok.
I will use gdisk to prepare the disk.

I will reinstall windows 10 first
I will then try to install 15.2
I will return to windows potentially to set an administrator account in order to modify the bootmanager in order to let grub2 manage the dual boot

i’m fed up windiws 10 don’t want to install cause the disk is gpt

Hi
Then you created the windows install image as BIOS boot… use rufus, grab the 2004 iso image and in rufus, just make sure it’s UEFI native (unless you system needs csm?) to burn the image to a USB device, also ensure you have secure boot off. When booting press whatever system key to get to the boot menu and make use you select the UEFI device.

Not strictly true, though it probably depends on the firmware. Some UEFI firmware is willing to use DOS partitioning, with the EFI partition having type code “ef”.

Great !! I got a kde on linux but no track of windows 10 that disappeared !!
Excellent !!

this is only the third time i reinstall windows 10 and the 16th time i installed linux…

the version of windows is not efi and the version of linux is efi…

sirius:/boot/grub2 # fdisk -l
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Disk model: KINGSTON SV300S3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf22dd307

Device     Boot    Start       End   Sectors  Size Id Type
/dev/sda1  *        2048   1026047   1024000  500M  7 HPFS/NTFS/exFAT
/dev/sda2        1026048  92162047  91136000 43.5G  7 HPFS/NTFS/exFAT
/dev/sda3       92162048  92686335    524288  256M ef EFI (FAT-12/16/32)
/dev/sda4       92686336 234441647 141755312 67.6G 83 Linux


Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: TOSHIBA DT01ACA0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0000bb62

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1            2048 536872959 536870912   256G 83 Linux
/dev/sdb2       536872960 976773167 439900208 209.8G  7 HPFS/NTFS/exFAT


Disk /dev/sdc: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SUV400S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x833e5cb4

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sdc1            2048 314574847 314572800  150G 83 Linux
/dev/sdc2       314574848 468862127 154287280 73.6G 83 Linux

When I write myself the custom entry, i got an error concerning ntldr module that is missing

menuentry 'Microsoft Windows 10 de merde' --class windows {
        insmod part_msdos
        insmod ntfs
        insmod search_fs_uuid
        insmod ntldr
        search --no-floppy --fs-uuid --set=root 86348D33348D2771
# --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 86348D33348D2771
#        drivemap (hd1,msdos1) (hd0,msdos1)
        ntldr /bootmgr

The /dev/sda1 contains the bootmgr file…

Then I don’t think it is possible to boot Windows from the grub boot menu. Perhaps you can do it with a BIOS boot menu.

SOLVED
as now leap 15 got runlevel 5 and booting
the fact windows 10 won’t boot is another issue