• Grub Problem


    @manuel i will reboot and execute the two lines

  • @oussama.ah95
    Sorry, could you please do these three commands:

    mount /dev/sda2 /mnt  # if not done already
    ls -la /mnt
    ls -la /mnt/boot
    
  • @manuel

    [[email protected] ~]$ sudo mount /dev/sda2 /mnt
    [[email protected] ~]$ ls -la /mnt
    total 3
    drwxr-xr-x 4 root root 1024 Jan  1  1970  .
    drwxr-xr-x 1 root root  140 Jan 14 20:46  ..
    drwxr-xr-x 6 root root 1024 Jan 12 19:28  EFI
    drwxr-xr-x 2 root root 1024 Dec 22 20:43 'System Volume Information'
    [[email protected] ~]$ ls -la /mnt/boot
    ls: cannot access '/mnt/boot': No such file or directory
    
    
  • @manuel
    I think , i am mounting sda2 to the usb drive /mnt folder

  • @oussama.ah95
    OK, you have deleted your EFI partition. Can you boot at all without the stick?
    The following commands should get you back to business (stop if any of them fail):

    su
    mount /dev/sda2 /mnt  # if not already mounted
    arch-chroot /mnt
    grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=antergos_grub
    grub-mkconfig -o /boot/grub/grub.cfg
    

    And yes, the mount point is /mnt of your USB drive, it is OK.
    Now reboot will (hopefully) work as usual (but maybe not Windows…).

  • @manuel
    i didnt delete anything’, i just clicked on load defecault setting on BIOS menu.

    here is the output

    [[email protected] ~]$ su
    [[email protected] antergos]# mount /dev/sda2 /mnt
    mount: /mnt: /dev/sda2 already mounted on /mnt.
    [[email protected] antergos]# arch-chroot /mnt
    mount: /mnt/proc: mount point does not exist.
    ==> ERROR: failed to setup chroot /mnt
    umount: bad usage
    Try 'umount --help' for more information.
    
    
  • @oussama.ah95
    Hmmm…
    What’s the output of

    ls -la /mnt/EFI
    
  • @manuel

    [[email protected] antergos]# ls -la /mnt/EFI
    total 6
    drwxr-xr-x 6 root root 1024 Jan 12 19:28 .
    drwxr-xr-x 4 root root 1024 Jan  1  1970 ..
    drwxr-xr-x 2 root root 1024 Dec 22 22:12 antergos_grub
    drwxr-xr-x 2 root root 1024 Jul 30 00:36 Boot
    drwxr-xr-x 2 root root 1024 Jan 12 19:28 memtest86
    drwxr-xr-x 4 root root 1024 Jul 30 00:23 Microsoft
    [[email protected] antergos]# 
    
    
  • @oussama.ah95
    OK, a new try. What’s the output of

    sudo blkid
    
  • @manuel
    thank you

    [[email protected] antergos]# sudo blkid
    /dev/sda1: LABEL="Recovery" UUID="B61008B310087C9D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="f822adbd-623e-468d-905e-d0ea0d18aada"
    /dev/sda2: UUID="560B-8395" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="3505a1e8-a8c3-43f1-8db2-d0a6d72238e0"
    /dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="445f3166-87f2-4e98-bfed-9329ace02a00"
    /dev/sda4: UUID="8A9814B49814A0AD" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a56d6028-6911-4aa8-9498-a676c352d351"
    /dev/sda5: UUID="124E2EFD4E2ED8ED" TYPE="ntfs" PARTUUID="b45fd491-d286-40e3-b645-438b2b41c96b"
    /dev/sda6: LABEL="Nouveau nom" UUID="CCF008FFF008F18E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b7f932ed-1fc6-4ff6-8709-8c4b30f2dcda"
    /dev/sda7: UUID="1ef84f7a-825a-4dcb-abcf-70e9e229df6c" TYPE="swap" PARTUUID="80511851-bcfb-4f5e-85e5-00a33db2ab5a"
    /dev/sda8: UUID="cd5cb14d-1872-4fe3-8d66-56992a506015" TYPE="ext4" PARTUUID="81c5edc7-ccbb-4108-8815-d95c973c2d4c"
    /dev/sda9: UUID="f94620b6-8ec3-46b7-9ce9-74f70242fc15" TYPE="ext4" PARTUUID="8f84ab5e-b593-4173-81cf-faa29489b907"
    /dev/sdb1: LABEL="ANTERGOS" UUID="1A13-2C2E" TYPE="vfat" PARTUUID="0004e7cc-01"
    /dev/loop0: TYPE="squashfs"
    
    
  • @oussama.ah95
    One more tedious question: do you know which partition is the Antergos root?
    It is either /dev/sda8 or /dev/sda9.

  • @manuel sd8 is my home directory

  • @oussama.ah95
    Can you show the output of:

    umount /mnt
    mount /dev/sda9 /mnt
    ls -la /mnt/boot
    

    Sorry that this takes so much time, but I need to get facts in order.

  • @manuel
    no problem and thanks for helping me

    [[email protected] antergos]# umount /mnt
    [[email protected] antergos]# mount /dev/sda9 /mnt
    [[email protected] antergos]# ls -la /mnt/boot
    total 73956
    drwxr-xr-x  5 root root     4096 Jan 14 13:09 .
    drwxr-xr-x 18 root root     4096 Dec 22 22:15 ..
    drwxr-xr-x  2 root root     4096 Dec 22 20:58 efi
    drwxr-xr-x  6 root root     4096 Dec 22 22:16 grub
    -rw-r--r--  1 root root 27211191 Jan 11 18:48 initramfs-linux-fallback.img
    -rw-r--r--  1 root root  7160991 Jan 11 18:47 initramfs-linux.img
    -rw-r--r--  1 root root 23148939 Jan 14 13:10 initramfs-linux-lts-fallback.img
    -rw-r--r--  1 root root  6957922 Jan 14 13:09 initramfs-linux-lts.img
    -rw-r--r--  1 root root  1614336 Jan 10 08:53 intel-ucode.img
    drwxr-xr-x  2 root root     4096 Dec 22 22:06 syslinux
    -rw-r--r--  1 root root  4769552 Jan 10 11:18 vmlinuz-linux
    -rw-r--r--  1 root root  4831520 Jan 10 15:16 vmlinuz-linux-lts
    
  • @oussama.ah95
    Still one more… Bear with me!

    ls -la /mnt/boot/efi
    
  • @manuel

    [[email protected] antergos]# ls -la /mnt/boot/efi
    total 8
    drwxr-xr-x 2 root root 4096 Dec 22 20:58 .
    drwxr-xr-x 5 root root 4096 Jan 14 13:09 ..
    
    
  • @oussama.ah95
    OK, so that is empty.
    So here’s the new set:

    su
    umount /mnt
    mount /dev/sda9 /mnt
    arch-chroot /mnt
    mkdir -p /boot/efi
    mount /dev/sda2 /boot/efi
    grub-install --target=x86_64-efi --efi-directory=/boot/efi/EFI --bootloader-id=antergos_grub
    grub-mkconfig -o /boot/grub/grub.cfg
    

    Hopefully this helps. If any command fails, then stop.

  • If that goes without errors, could you show

    ls -la /boot/efi /boot/efi/EFI
    
  • @manuel
    the output of grub-mkconfig -o /boot/grub/grub.cfg

    [[email protected] /]# grub-mkconfig -o /boot/grub/grub.cfg
    Generating grub configuration file ...
    Found theme: /boot/grub/themes/deepin/theme.txt
    Found Intel Microcode image
    Found linux image: /boot/vmlinuz-linux
    Found initrd image: /boot/initramfs-linux.img
    Found fallback initramfs image: /boot/initramfs-linux-fallback.img
    Found linux image: /boot/vmlinuz-linux-lts
    Found initrd image: /boot/initramfs-linux-lts.img
    Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
      WARNING: Failed to connect to lvmetad. Falling back to device scanning.
    done
    
    

    the output of ls -la /boot/efi /boot/efi/EFI

    [[email protected] /]# ls -la /boot/efi /boot/efi/EFI
    /boot/efi:
    total 7
    drwxr-xr-x 4 root root 1024 Jan  1  1970  .
    drwxr-xr-x 5 root root 4096 Jan 14 14:09  ..
    drwxr-xr-x 7 root root 1024 Jan 14 22:37  EFI
    drwxr-xr-x 2 root root 1024 Dec 22 21:43 'System Volume Information'
    
    /boot/efi/EFI:
    total 7
    drwxr-xr-x 7 root root 1024 Jan 14 22:37 .
    drwxr-xr-x 4 root root 1024 Jan  1  1970 ..
    drwxr-xr-x 2 root root 1024 Dec 22 23:12 antergos_grub
    drwxr-xr-x 2 root root 1024 Jul 30 01:36 Boot
    drwxr-xr-x 3 root root 1024 Jan 14 22:37 EFI
    drwxr-xr-x 2 root root 1024 Jan 12 20:28 memtest86
    drwxr-xr-x 4 root root 1024 Jul 30 01:23 Microsoft
    
    
grub127 Posts 62Views 3037
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.