Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Unable to boot without usb stick

  1. #1

    Default Unable to boot without usb stick

    I have a dell inspiron 15 3000.
    After searching everywhere i tried yast2- Boot Loader changed to grub2 for efi and I got : /usr/sbin/grub2-install: error:cannot find EFI directory

    fdisk -l

    /dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
    /dev/nvme0n1p2 1050624 1067007 16384 8M BIOS boot
    /dev/nvme0n1p3 1067008 84953087 83886080 40G Linux filesystem
    /dev/nvme0n1p4 84953088 486940671 401987584 191.7G Linux filesystem
    /dev/nvme0n1p5 486940672 500118158 13177487 6.3G Linux swap

    gdisk

    GPT fdisk (gdisk) version 1.0.1

    efibootmgr -v

    EFI variables are not supported on this system

    Secure boot is disable

    I m loss and I couldn't find any solution , please help, thanks in advance

  2. #2
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    129

    Default Re: Unable to boot without usb stick

    Le 22/05/2019 à 19:46, limonnana a écrit :
    >
    > I have a dell inspiron 15 3000.
    > After searching everywhere i tried yast2- Boot Loader changed to grub2
    > for efi and I got : /usr/sbin/grub2-install: error:cannot find EFI
    > directory
    >
    > fdisk -l
    >
    > /dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
    > /dev/nvme0n1p2 1050624 1067007 16384 8M BIOS boot
    > /dev/nvme0n1p3 1067008 84953087 83886080 40G Linux filesystem
    > /dev/nvme0n1p4 84953088 486940671 401987584 191.7G Linux filesystem
    > /dev/nvme0n1p5 486940672 500118158 13177487 6.3G Linux swap
    >
    >
    >
    > I m loss and I couldn't find any solution , please help, thanks in
    > advance
    >
    >

    is the efi partition mounted?

    jdd

  3. #3
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,409

    Default Re: Unable to boot without usb stick

    To sort this out we may ultimately need you to post output from these:
    Code:
    cat /etc/fstab
    blkid
    Please wrap commands and their ouput in code tags. Select output to wrap, then click the [ # ] button above the input window.

    To get output of current state from gdisk requires -l switch and device name, e.g. 'gdisk -l /dev/sda'.

    The df command would satisfy jdd's request.

    How and when was 15.0 installed? IOW, is it recent or brand new? Was installation from the stick you are booting from now? What does the screen look like when you boot the stick and choose installation instead of installed system? Is there a row of 5-6 function keys and what they do at the bottom of the screen? If so, it is booting in legacy mode, not UEFI.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  4. #4

    Default Re: Unable to boot without usb stick

    Code:
    df
    
    Filesystem     1K-blocks    Used Available Use% Mounted on
    devtmpfs         3282256       0   3282256   0% /dev
    tmpfs            3293852    2860   3290992   1% /dev/shm
    tmpfs            3293852    9952   3283900   1% /run
    tmpfs            3293852       0   3293852   0% /sys/fs/cgroup
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /
    /dev/nvme0n1p4 200895652 1151800 199743852   1% /home
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /srv
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /boot/grub2/i386-pc
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /boot/grub2/x86_64-efi
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /.snapshots
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /var
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /usr/local
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /opt
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /root
    /dev/nvme0n1p3  41943040 9967684  31774636  24% /tmp
    tmpfs             658768      16    658752   1% /run/user/1000
    
    
    Code:
    cat /etc/fstab
    
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /                       btrfs  defaults                      0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /boot/grub2/x86_64-efi  btrfs  subvol=/@/boot/grub2/x86_64-efi  0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /boot/grub2/i386-pc     btrfs  subvol=/@/boot/grub2/i386-pc  0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /.snapshots             btrfs  subvol=/@/.snapshots          0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /var                    btrfs  subvol=/@/var                 0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /usr/local              btrfs  subvol=/@/usr/local           0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /tmp                    btrfs  subvol=/@/tmp                 0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /srv                    btrfs  subvol=/@/srv                 0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /root                   btrfs  subvol=/@/root                0  0
    UUID=7c510b14-9472-4b51-bd27-86c2ac474779  /opt                    btrfs  subvol=/@/opt                 0  0
    UUID=302b7fec-6e5f-47a9-ba58-fb89d73fbd06  /home                   xfs    defaults                      0  0
    UUID=18181192-053e-42cb-885e-c2aa3e98c5aa  swap                    swap   defaults                      0  0
    
    
    Code:
    blkid
    
    /dev/nvme0n1: PTUUID="0c12b7a7-e66d-47e6-92ea-3a9611ce1f19" PTTYPE="gpt"
    /dev/nvme0n1p1: UUID="276C-D28C" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="baecc7d0-81ca-466d-b736-07212712ce34"
    /dev/nvme0n1p2: PARTUUID="7befa8c7-c5c0-4681-80e3-af719f4ef0ea"
    /dev/nvme0n1p3: UUID="7c510b14-9472-4b51-bd27-86c2ac474779" UUID_SUB="28754272-fce2-43ee-9d5b-698341174231" TYPE="btrfs" PARTUUID="de4ed63e-d432-45ef-8053-f797
    8074e646"
    /dev/nvme0n1p4: UUID="302b7fec-6e5f-47a9-ba58-fb89d73fbd06" TYPE="xfs" PARTUUID="c71d934f-402a-45a7-b429-21f7bb091aad"
    /dev/nvme0n1p5: UUID="18181192-053e-42cb-885e-c2aa3e98c5aa" TYPE="swap" PARTUUID="a38aab1a-f8aa-4932-ae6b-8f13299bc66e"
    
    
    Code:
    sudo gdisk -l /dev/nvme0n1
    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/nvme0n1: 500118192 sectors, 238.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 0C12B7A7-E66D-47E6-92EA-3A9611CE1F19
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 500118158
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 2014 sectors (1007.0 KiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            2048         1050623   512.0 MiB   EF00  EFI System Partition
       2         1050624         1067007   8.0 MiB     EF02   
       3         1067008        84953087   40.0 GiB    8300   
       4        84953088       486940671   191.7 GiB   8300   
       5       486940672       500118158   6.3 GiB     8200  
    
    
    How and when was 15.0 installed? from usb stick 2 days ago

    IOW, is it recent or brand new? what is iow ? the computer is new came with ubuntu preinstalled

    Was installation from the stick you are booting from now? 2 days ago

    What does the screen look like when you boot the stick and choose installation instead of installed system? Is there a row of 5-6 function keys

    No

    Thank you for your support

  5. #5
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    11,998
    Blog Entries
    3

    Default Re: Unable to boot without usb stick

    I'm not sure how this happened.

    It looks as if you installed your system for traditional BIOS booting. But your system only boots with EFI. And that's why it won't boot without the install USB.

    You can change your system to use UEFI booting, but that is tricky and depends on the BIOS as to how well it will work.

    If you want to use UEFI booting, then you need to mount the EFI partition at "/boot/efi". So start by doing that.

    Maybe try adding the following line to "/etc/fstab":
    Code:
    UUID=276C-D28C             /boot/efi  vfat  iocharset=utf8    0   0
    I copied that from my Leap 15.0 system, except that I changed the UUID to match what you show in output above. The exact position of the line should not matter. On my system, it is just before the line for "swap".

    When you have made that change, reboot. And then provide the output of
    Code:
    df
    from after that reboot.
    openSUSE Leap 15.1; KDE Plasma 5;

  6. #6
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,409

    Default Re: Unable to boot without usb stick

    This is a puzzle that I'm not sure how to suggest you deal with.

    1. Your NVME is GPT partitioned for both UEFI and Legacy booting (nvme0n1p1 is ESP; nvme0n1p2 is BIOS boot for standard Grub to use)
    2. Leap is installed in Legacy mode (ESP partition is missing from fstab and df output)
    3. The stick booted to installation selection is in UEFI mode (no Function keys "menu" at bottom of first screen)


    I'm guessing:
    1. Leap was installed by booting the stick in legacy mode, leaving Ubuntu's existing ESP partition untouched, while creating 4 partitions for Leap to use
    2. Given it came with Ubuntu and an ESP partition, Leap should be able to be reconfigured as a UEFI installation:
      1. change fstab via YaST partitioner to include the ESP partition
      2. use YaST bootloader to switch Grub booting to UEFI mode
    3. Reboot without using USB stick


    #2 #2 seems to me to be partially consistent with NRickert's recommendation in post #5, but through a different path, and with more steps.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  7. #7
    Join Date
    Sep 2012
    Posts
    4,916

    Default Re: Unable to boot without usb stick

    Quote Originally Posted by mrmazda View Post
    use YaST bootloader to switch Grub booting to UEFI mode
    You cannot switch to "booting in UEFI mode" while booted in legacy mode. It is impossible to write NVRAM boot entry. It is possible to run "grub2-install --no-nvram" to avoid error, manually select grubx64.efi on ESP and complete switch after openSUSE is booted by reinstalling bootloader again.

  8. #8
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,409

    Default Re: Unable to boot without usb stick

    Quote Originally Posted by arvidjaar View Post
    You cannot switch to "booting in UEFI mode" while booted in legacy mode. It is impossible to write NVRAM boot entry. It is possible to run "grub2-install --no-nvram" to avoid error, manually select grubx64.efi on ESP and complete switch after openSUSE is booted by reinstalling bootloader again.
    He booted the stick to UEFI mode installation. Can't the stick be booted in UEFI to chroot to or boot installed system in UEFI mode? It's what I thought was implied both possible and necessary by writing what I wrote.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  9. #9

    Default Re: Unable to boot without usb stick


    Is this helping ?

    https://drive.google.com/file/d/1aak...ew?usp=sharing


    https://drive.google.com/file/d/11mq...ew?usp=sharing

    I m planing to do a new installation but I don't want to have the same results.

    I think will be the easier way ? may be trying tumbleweed instead, what do you suggest ?

    Thanks

  10. #10
    Join Date
    Sep 2012
    Posts
    4,916

    Default Re: Unable to boot without usb stick

    Quote Originally Posted by mrmazda View Post
    He booted the stick to UEFI mode installation
    Really? It is not what original post says.

    Quote Originally Posted by limonnana View Post

    Code:
    efibootmgr -v
    Code:
    EFI variables are not supported on this system
    

Page 1 of 2 12 LastLast

Posting Permissions

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