Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

  1. #11
    Join Date
    Dec 2009
    Beans
    440

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    Quote Originally Posted by oldfred View Post
    You have grub in the MBR, but with gpt partitioning you
    have to have a bios_grub partition for grub to correctly install in BIOS boot
    mode.
    For whatever reason Boot-Repair does not see your efi partition. It looks
    correct as a FAT32 partition with the boot flag and partition table says it is
    the efi partition.
    Perhaps the issue in the partition boot sector on start of partition is an
    issue?
    Try this:
    sudo /sbin/fsck.vfat -V <the fat32 device>
    or:
    sudo fsck -t vfat /dev/sda1

    If that does not work, just use gparted to delete the sda1 partition. If you
    do have any data in it back that up first.
    And then recreate a new FAT32 partition with the boot flag using gparted.
    Or use gdisk and give it code ef00. It is in repository.
    sudo apt-get install gdisk

    GPT fdisk Tutorial - user srs5694 in forums
    http://ubuntuforums.org/showthread.php?t=1439794
    http://www.rodsbooks.com/gdisk/


    Then see if Boot-Repair sees efi partition to let you install grub-efi for
    UEFI boot.
    The command sudo fsck -t vfat /dev/sda1 gives
    Code:
    fsck from util-linux 2.20.1
    fsck.fat 3.0.26 (2014-03-07)
    0x41: Dirty bit is set. Fs was not properly unmounted and some data may be 
    corrupt.
    1) Remove dirty bit
    2) No action
    ? 1
    Leaving filesystem unchanged.
    /dev/sda1: 282 files, 1248/72812 clusters
    Then, I tried with gparted and I made a fat32 partition with boot flag. But Boot-repairs gives the same answers as before.
    Finally, with sudo gdisk -l /dev/sda
    Code:
    GPT fdisk (gdisk) version 0.8.8
    Partition table scan:
      MBR: protective
      BSD: not present
      APM: not present
      GPT: present
    
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 2387EF34-CE79-4736-980C-9E7EB43305A5
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 3437 sectors (1.7 MiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            2048          585727   285.0 MiB   EF00  
       2          585728       195928063   93.1 GiB    8300  
       3       195928064       211552255   7.5 GiB     8200  
       4       211552256      1953523711   830.6 GiB   0700 
    
    Command (? for help): p
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 2387EF34-CE79-4736-980C-9E7EB43305A5
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 3437 sectors (1.7 MiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            2048          585727   285.0 MiB   EF00  EFI System
       2          585728       195928063   93.1 GiB    8300  
       3       195928064       211552255   7.5 GiB     8200  
       4       211552256      1953523711   830.6 GiB   0700  
    
    Command (? for help): v
    
    No problems found. 3437 free sectors (1.7 MiB) available in 2
    segments, the largest of which is 2014 (1007.0 KiB) in size.
    
    Command (? for help): w
    
    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
    PARTITIONS!!
    
    Do you want to proceed? (Y/N): y
    OK; writing new GUID partition table (GPT) to /dev/sda.
    Warning: The kernel is still using the old partition table.
    The new table will be used at the next reboot.
    The operation has completed successfully.
    Unfortunately the boot-repair behavior is the same as before with this output message
    http://paste.ubuntu.com/7459264/
    I tried also with another Ubuntu live with integrated Boot-repair https://help.ubuntu.com/community/LinuxSecureRemix, but the result is the same http://paste.ubuntu.com/7459295/
    I hope to avoid to reformat
    Last edited by erotavlas; May 13th, 2014 at 09:18 PM.

  2. #12
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    The ef00 in gdisk should make the partition be the efi partition.
    Still do not know why installing of grub does not see the efi partition.
    The insistence of a bios_grub is only for BIOS boot.
    You now show a efi file entry in fstab which usually is from the grub-efi installing.

    Can you copy files into the efi partition, just to verify it is writeable?

    copy this from live installer into your efi partition.
    /EFI/BOOT/grubx64.efi

    That by itself will not boot Ubuntu.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #13
    Join Date
    Mar 2011
    Beans
    1,019

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    When you remade the EFI paritiion, the UUID changed, but the /etc/fstab file still has the old UUID. That needs to be updated to
    441D-E8A8
    You are booting in legacy mode, probably because there apparently no grub boot files at all in the EFI (boot-repair will
    list any found early in the report at the partition examination. Check your BIOS/UEFI settings to ensure you are in the
    UEFI mode and not in CSM or Legacy.

  4. #14
    Join Date
    Dec 2009
    Beans
    440

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    Quote Originally Posted by ubfan1 View Post
    When you remade the EFI paritiion, the UUID changed, but the /etc/fstab file still has the old UUID. That needs to be updated to
    441D-E8A8
    You are booting in legacy mode, probably because there apparently no grub boot files at all in the EFI (boot-repair will
    list any found early in the report at the partition examination. Check your BIOS/UEFI settings to ensure you are in the
    UEFI mode and not in CSM or Legacy.
    You are right I forget to change UUID after that I used gdisk or gparted.
    How can I boot in efi mode?
    I have found this tutorial https://help.ubuntu.com/community/UEFI that explains how to boot in efi mode and it seems that my live Ubuntu 14.04 is booted in efi mode.
    Code:
    [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
    and the result is EFI boot on HDD. Moreover, the first screen is with menu list instead of graphical screen with disk and sticky man.

    Now Boot-repair says as before
    Code:
    GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
    and the report is http://paste.ubuntu.com/7461702/

    So seems that there is no solution to my problem...
    Last edited by erotavlas; May 14th, 2014 at 09:48 AM.

  5. #15
    Join Date
    Dec 2009
    Beans
    440

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    Quote Originally Posted by oldfred View Post
    The ef00 in gdisk should make the partition be the efi partition.
    Still do not know why installing of grub does not see the efi partition.
    The insistence of a bios_grub is only for BIOS boot.
    You now show a efi file entry in fstab which usually is from the grub-efi installing.

    Can you copy files into the efi partition, just to verify it is writeable?

    copy this from live installer into your efi partition.
    /EFI/BOOT/grubx64.efi

    That by itself will not boot Ubuntu.
    Where can I find /EFI/BOOT/grubx64.efi?
    I mounted /dev/sda2 (my Ubuntu system) in mnt/system/ and I mounted /dev/sda1 in /mnt/system/boot/efi

    I can make touch file inside the /mnt/system/boot/efi as sudo user.
    Code:
    sudo touch /mnt/system/boot/efi/file
    I tried to run boot-repair as sudo user without success.

  6. #16
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    You can try to copy /boot/efi from your USB installer.
    Then change the grub.cfg in that or create a /boot/ubuntu folder to just call the actual grub.cfg in your install.

    configfile (hd0,gpt2)/boot/grub/grub.cfg
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #17
    Join Date
    Dec 2009
    Beans
    440

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    Quote Originally Posted by oldfred View Post
    You can try to copy /boot/efi from your USB installer.
    Then change the grub.cfg in that or create a /boot/ubuntu folder to just call the actual grub.cfg in your install.

    configfile (hd0,gpt2)/boot/grub/grub.cfg
    My USB installer does not contain /boot/efi...

  8. #18
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    Then you must have a 32bit installer and that is the entire issue.
    Only the 64 bit has the UEFI install capability.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #19
    Join Date
    Dec 2009
    Beans
    440

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    Quote Originally Posted by oldfred View Post
    Then you must have a 32bit installer and that is the entire issue.
    Only the 64 bit has the UEFI install capability.
    Ok. Probably I have not explained well the procedure. On first of May I installed Ubuntu 14.04 64 bit on my notebook. Two days ago I broken my system. Then, I download the ISO Ubuntu 14.04 64 bit and I made a USB pen with the guide http://www.ubuntu.com/download/deskt...ick-on-windows. So I think that the live Ubuntu is 64 bit system. If I type uname -a it says to me that I'm on 64 bit and moreover it says that it is UEFI system.

    Code:
    uname -a
    result x86_64
    Code:
    [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
    result EFI boot on HDD

    If I disable from BIOS UEFI mode I receive Legacy boot on HDD.

    Where is the problem? I cannot understand...

  10. #20
    Join Date
    Oct 2010
    Beans
    204

    Re: Ubuntu 14.04 UEFI boot partition and GRUB reinstall problem

    Quote Originally Posted by erotavlas View Post
    My USB installer does not contain /boot/efi...
    It's efi/boot, not boot/efi.

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

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