[SOLVED] UEFI Dual Boot - /boot/efi/ problem
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 26
  1. #1
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    [SOLVED] UEFI Dual Boot - /boot/efi/ problem

    Hi everybody,

    Few month ago, I had to reinstall Windows 10 in UEFI for some reasons, so for the first time of my life I tried to install Fedora on a UEFI system... what a pain !
    I have one SSD for Windows, and another for half ntfs partition and other for Fedora. Windows is on my sdd, I try to install Fedora on sdc.

    So here is my setup during the installation (I recently read that I don't need /boot partition, if someone can confirm) :

    Click image for larger version. 

Name:	EFI_SDD.jpg 
Views:	351 
Size:	75.9 KB 
ID:	29530

    You can see that I put the /boot/efi on sdd2 when I install Fedora on sdc.
    So I confirmed and I had this message :
    Click image for larger version. 

Name:	EFI_error.png 
Views:	297 
Size:	9.6 KB 
ID:	29532

    If I create a new /boot/efi on sdc like that :
    Click image for larger version. 

Name:	EFI_SDC.jpg 
Views:	204 
Size:	71.7 KB 
ID:	29533

    I haven't the error message but it was blocked on the boot loader installation
    Click image for larger version. 

Name:	Screenshot_from_2018_04_07_16_27_09.jpg 
Views:	186 
Size:	69.7 KB 
ID:	29534


    My SSD are in GPT, fast boot is disable, I boot my live usb on UEFI and here are some command returns that you may ask :

    Code:
    # fdisk -l
    Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
    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: 0x01cc3398
    
    Device     Boot Start        End    Sectors  Size Id Type
    /dev/sda1  *     2048 3907026943 3907024896  1.8T  7 HPFS/NTFS/exFAT
    
    
    Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
    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: gpt
    Disk identifier: F01CC640-D6D3-4438-97B7-A6ABE67F7C28
    
    Device      Start        End    Sectors   Size Type
    /dev/sdb1      34     262177     262144   128M Microsoft reserved
    /dev/sdb2  264192 1953523711 1953259520 931.4G Microsoft basic data
    
    Partition 1 does not start on physical sector boundary.
    
    
    Disk /dev/sdc: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
    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: gpt
    Disk identifier: 28C78578-87D5-4E5C-A18D-3C5DB05C2B23
    
    Device     Start        End    Sectors  Size Type
    /dev/sdc1   2048 1195378687 1195376640  570G Microsoft basic data
    
    
    Disk /dev/sdd: 111.8 GiB, 120034123776 bytes, 234441648 sectors
    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: gpt
    Disk identifier: 0CF6310D-A66C-4806-9CB3-FE4B1AA7192F
    
    Device       Start       End   Sectors   Size Type
    /dev/sdd1     2048    923647    921600   450M Windows recovery environment
    /dev/sdd2   923648   1128447    204800   100M EFI System
    /dev/sdd3  1128448   1161215     32768    16M Microsoft reserved
    /dev/sdd4  1161216 234440703 233279488 111.2G Microsoft basic data
    
    
    Disk /dev/sde: 7.2 GiB, 7776239616 bytes, 15187968 sectors
    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: 0x2563bf1a
    
    Device     Boot  Start     End Sectors  Size Id Type
    /dev/sde1  *         0 3186687 3186688  1.5G  0 Empty
    /dev/sde2       113104  131123   18020  8.8M ef EFI (FAT-12/16/32)
    /dev/sde3       131124  169251   38128 18.6M  0 Empty
    
    
    Disk /dev/loop0: 1.4 GiB, 1535807488 bytes, 2999624 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/loop1: 6.5 GiB, 6981419008 bytes, 13635584 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/loop2: 32 GiB, 34359738368 bytes, 67108864 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/live-rw: 6.5 GiB, 6981419008 bytes, 13635584 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/live-base: 6.5 GiB, 6981419008 bytes, 13635584 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Code:
    # parted
    GNU Parted 3.2
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print all                                                        
    Model: ATA ST2000DX002-2DV1 (scsi)
    Disk /dev/sda: 2000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  2000GB  2000GB  primary  ntfs         boot
    
    
    Model: ATA ST1000DX002-2DV1 (scsi)
    Disk /dev/sdb: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags: 
    
    Number  Start   End     Size    File system  Name                          Flags
     1      17.4kB  134MB   134MB                Microsoft reserved partition  msftres
     2      135MB   1000GB  1000GB  ntfs         Basic data partition          msftdata
    
    
    Model: ATA Samsung SSD 840 (scsi)
    Disk /dev/sdc: 750GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags: 
    
    Number  Start   End    Size   File system  Name  Flags
     1      1049kB  612GB  612GB  ntfs               msftdata
    
    
    Model: ATA INTEL SSDSC2MH12 (scsi)
    Disk /dev/sdd: 120GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags: 
    
    Number  Start   End    Size    File system  Name                          Flags
     1      1049kB  473MB  472MB   ntfs         Basic data partition          hidden, diag
     2      473MB   578MB  105MB   fat32        EFI system partition          boot, esp
     3      578MB   595MB  16.8MB               Microsoft reserved partition  msftres
     4      595MB   120GB  119GB   ntfs         Basic data partition          msftdata
    
    
    Warning: The driver descriptor says the physical block size is 2048 bytes, but
    Linux says it is 512 bytes.
    Ignore/Cancel? Ignore                                                     
    Model: Kingston DataTraveler G3 (scsi)
    Disk /dev/sde: 31.1GB
    Sector size (logical/physical): 2048B/512B
    Partition Table: mac
    Disk Flags: 
    
    Number  Start   End     Size    File system  Name   Flags
     1      2048B   10.2kB  8192B                Apple
     2      57.9MB  67.1MB  9226kB               EFI
     3      67.1MB  86.7MB  19.5MB               EFI

    Thanks for your help
    Last edited by Cuissedemouche; 6th May 2018 at 08:40 PM. Reason: Add boot UEFI usb information

  2. #2
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    Arf nobody know ?

  3. #3
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    427

    Re: UEFI Dual Boot - /boot/efi/ problem

    You didn't show your Windows disk setup. I assume Windows has its own /boot/efi partition on the first (or second) disk. You can use this same partition for your Fedora efi partition. Here are the results of "# fdisk -l" for my triple boot (Fedora and Archlinux with Windows 10):
    Code:
    Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
    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: gpt
    Disk identifier: 93750936-460A-4072-9A5A-2DB9B1B7A424
    
    Device          Start        End   Sectors   Size Type
    /dev/sda1        2048     821247    819200   400M Windows recovery environment
    /dev/sda2      821248    1353727    532480   260M EFI System
    /dev/sda3     1353728    1615871    262144   128M Microsoft reserved
    /dev/sda4     1615872  384020479 382404608 182.4G Microsoft basic data
    /dev/sda5  1420953600 1465147391  44193792  21.1G Microsoft basic data
    /dev/sda6   713617408 1123217407 409600000 195.3G Microsoft basic data
    /dev/sda7  1123217408 1328017407 204800000  97.7G Linux filesystem
    /dev/sda8  1328017408 1389457407  61440000  29.3G Linux swap
    /dev/sda9   384020480  550780927 166760448  79.5G Linux filesystem
    /dev/sda10  550780928  713617407 162836480  77.7G Linux filesystem
    /dev/sda11 1389457408 1420953599  31496192    15G Linux filesystem
    
    Partition table entries are not in disk order.
    You can see that /dev/sda2 is my /boot/efi partition which is used by Windows and my Linux systems for booting. There is no /boot partition on my setup (what would be the purpose of the /boot partition any way?

  4. #4
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    I showed all my disk, maybe I should separate them.
    So here the windows disk alone :

    Code:
     
    Disk /dev/sdd: 111.8 GiB, 120034123776 bytes, 234441648 sectors
    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: gpt
    Disk identifier: 0CF6310D-A66C-4806-9CB3-FE4B1AA7192F
    
    Device       Start       End   Sectors   Size Type
    /dev/sdd1     2048    923647    921600   450M Windows recovery environment
    /dev/sdd2   923648   1128447    204800   100M EFI System
    /dev/sdd3  1128448   1161215     32768    16M Microsoft reserved
    /dev/sdd4  1161216 234440703 233279488 111.2G Microsoft basic data

    The problem as I said is that I have an error message when I select the /boot/efi on that partition

    Click image for larger version. 

Name:	EFI_error.png 
Views:	297 
Size:	9.6 KB 
ID:	29532

  5. #5
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,606

    Re: UEFI Dual Boot - /boot/efi/ problem

    you only need /boot if the root file system is btrfs or encrypted. grubby doesn't support btrfs. but you do need /boot/efi for UEFI dual boot systems.

    it's entirely possible to have EFI partitions on different storage devices, I did this when running Fedora from USB thumb drive. the operating system adds it's own EFI boot menu and chainloader for windows to the new EFI partition and leaves the original intact. that way if you change your mind about using the new OS, it's not going to cause any problems with the startup options of the primary HDD if you simply clear the USB drive for example.

    the EFI partition only needs to be 100Mib, any more than that and it's just wasted space (which MS do enough of already with the mostly pointless recovery and reserved partitions)

    I partitioned the thumb drive using GParted first (marking the EFI partition with boot,esp flags) then loaded anaconda installer and only clicked the thumb drive as the installation destination. using custom partitioning I assigned the necessary mount points and then proceeded with installation.

  6. #6
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    I need Fedora to work (on 3D applications), so I prefer to have all on one EFI. But I have this ***** error.

    But if this is the only way, I don't care to have two /boot/efi. So, to create a new /boot/efi, I tried to create it with anaconda installer, gparted and gdisk, and I was always blocked on the boot loader installation :

    Click image for larger version. 

Name:	Screenshot_from_2018_04_07_16_27_09.jpg 
Views:	186 
Size:	69.7 KB 
ID:	29534

    It runs indefinitely.

  7. #7
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    I tried again without the /boot partition.

    Click image for larger version. 

Name:	Screenshot from 2018-04-22 08-40-13.png 
Views:	99 
Size:	47.9 KB 
ID:	29548

    Same problem, blocked at "Installing boot loader". To be sure, I let the installation all night, and this morning... still on it.

    EDIT : I also tested with new USB key to be sure that the problem doesn't come from my live USB.
    Last edited by Cuissedemouche; 22nd April 2018 at 08:25 AM.

  8. #8
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    427

    Re: UEFI Dual Boot - /boot/efi/ problem

    Try clicking on "Advanced Custom Partitioning" and also choose "regular partitions" instead of LMV which is default. Then create /home, root (/) and swap. Then point /boot/EFI at the Windows efi partition (don't choose to reformat the efi partition).

    What variety of Fedora are you trying to install (workstation, server)? You might also download the iso again and then verify the iso image: https://getfedora.org/verify and then try to install if the above does not work.
    Last edited by donatom; 22nd April 2018 at 06:46 PM.

  9. #9
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    I used the Fedora Media Writer utility to create my boot USB, I try to install the workstation in 64bits.
    I tried with several USB keys.

    I was already on standard partition as you can see in that screenshots :
    Click image for larger version. 

Name:	Screenshot from 2018-04-22 15-51-48.jpg 
Views:	174 
Size:	83.7 KB 
ID:	29551Click image for larger version. 

Name:	Screenshot from 2018-04-22 15-51-52.jpg 
Views:	100 
Size:	79.5 KB 
ID:	29552

    So the problem is the same :
    Click image for larger version. 

Name:	Screenshot from 2018-04-22 15-52-18.png 
Views:	78 
Size:	10.8 KB 
ID:	29553

    And if I create a new /boot/efi on the same drive of Fedora installation, it try to install the boot loader indefinitely.

  10. #10
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,606

    Re: UEFI Dual Boot - /boot/efi/ problem

    On the Installation Destination screen to control which one of your selected storage devices will contain the boot loader, click the Full disk summary and bootloader link in the bottom left corner of the screen. make sure the device you want the system find fedora's /boot/efi from is ticked.

  11. #11
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    Ok thanks, one problem solved :
    The disk was correctly selected, but when I partitioned my disk, it change the boot disk, so I needed to came back select the correct one.

    So now, my installation loop during the boot loader installation as if I previously created the new /boot/efi partition :

    Click image for larger version. 

Name:	Screenshot from 2018-04-23 00-04-34.jpg 
Views:	102 
Size:	73.2 KB 
ID:	29554

  12. #12
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    Still no find a way to install Fedora >_<

    Since the last time, I just can see that the installation write in the /boot/efi partition because I can select Fedora in boot selection list :

    Click image for larger version. 

Name:	IMG_20180423_085722.jpg 
Views:	50 
Size:	211.9 KB 
ID:	29563

    Click image for larger version. 

Name:	IMG_20180423_085816.jpg 
Views:	40 
Size:	181.0 KB 
ID:	29564

  13. #13
    Join Date
    Jan 2013
    Location
    Ventura, CA
    Posts
    427

    Re: UEFI Dual Boot - /boot/efi/ problem

    Try turning off secure-boot in BIOS (if you haven't done so already -- Fedora should be able to boot with secure-boot but you might as well try to boot without secure-boot).

    You do get to the grub terminal which means you probably can boot Fedora manually (until you figure out why your system won't boot normally). Refer to this Fedora grub2 wiki: https://fedoraproject.org/wiki/GRUB_..._2_boot_prompt Ignore the insmod xfx and insmod lvm commands since you don't have those file-systems.
    Use the tab-key for tab completion after you set your root (you would probably set root to hd2,gptX, x being the fedora root partition number -- hd2 in grub refers to /dev/sdc) when setting linux and initrd -- linux-efi (hd2,gptX)/vm... which will complete vmlinuz kernel and initrd-efi (hd2,gptX)/init . . . which will complete your initrmfs.

    Ignore #7 and #8 on the wiki (grub2-mkconfig -o /boot/grub2/grub.cfg) since these are only appropriate for MBR systems.

  14. #14
    Join Date
    Apr 2018
    Location
    France
    Posts
    14

    Re: UEFI Dual Boot - /boot/efi/ problem

    Ok thanks.

    So first I already disable the secure boot on my motherboard.

    So I tried to follow the link that you shared.

    Code:
    #ls (hd2,gpt2)/
    ./ ../ lost+found/ boot/ dev/ home/ proc/ run/ sys/ root/ bin lib lib64 sbin etc/ media/ mnt/ opt/ srv/ tmp/ usr/ var/
    
    #ls(hd2,gpt4)/
    ./ ../ lost+found/
    
    #set root=(hd0,3)
     
    #linux (hd2,gpt2)/boot/vmlinuz-4.13.9-300.fc27.x86_64 root=/dev/sdc2 rhgb quiet selinux=0 
    error: can't find command "linux'.
    I had this error so on find on google that if we boot in efi we should use linuxefi and initrdefi.
    I replace those commands and it works. I finally boot in Fedora.

    I had to create my account because the installation not finished. No problem here.

    After that I tried to create the grub.cfg with grub2-mkconfig but it blocked. It found Linux very quickly, windows in like 10 minutes, and after that it just ran indefinitely.
    So I think that I'm gonna take a look to create it manually, even if I wonder why it bugs.

    I have one question, ecause I stopped my PC during the installation I hadn't the last part of the installation. Will there be any problem in the future ? Do I need to install some specifics things ?
    Here a list of the display information after boot loader installation that I found in a video :

    Configuring installed system
    Creating users
    Generating initramfs
    Running post-installation-scripts

    Thanks.

  15. #15
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,606

    Re: UEFI Dual Boot - /boot/efi/ problem

    If your post doesn't show up, please don't re-submit it. because you are a new user, if you submit something with code box content or web addresses, it will be placed in a moderation queue automatically for the time being until you've been more active on the forum.

    https://forums.fedoraforum.org/showt...Not-Showing-Up!!!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Clean dual boot on UEFI , possible?
    By feddy in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 1st February 2018, 09:15 PM
  2. newbie UEFI dual boot installation
    By elmarts in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 14th January 2017, 02:13 AM
  3. F20-dual boot with archlinux UEFI
    By topiwala in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 4th August 2014, 10:41 AM
  4. Dual Boot UEFI
    By VapidWorx in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 26th February 2014, 01:53 PM
  5. UEFI and Dual Boot
    By Depado in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 2nd October 2012, 05:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •