• Grub not appearing on boot


    Dear Community,

    I have Antergos Gnome installed on my second partition sda2 .
    when i boot my laptop doesn’t load grub instead it says “Boot Device Not Found”.
    But I installed Supergrubdisk on a USB Flash drive so I can still boot into my System with it.
    I previously had Plasma installed on my first partition sda1 and grub was loading fine meaning both plasma and gnome installations were recognized and bootable.
    But since I didn’t use Plasma anymore I decided to delete it and keep my gnome installation.
    I deleted the Plasma partition on gnome using the Drives app.
    Then I reinstalled grub again:

    sudo grub-install --target=i386-pc /dev/sda
    [sudo] Passwort für ****: 
    i386-pc wird für Ihre Plattform installiert.
    installation beendet. Keine Fehler aufgetreten.
    
    

    Then i generated the grub.cfg file with this:

    sudo grub-mkconfig -o /boot/grub/grub.cfg
    GRUB-Konfigurationsdatei wird erstellt …
    Linux-Abbild gefunden: /boot/vmlinuz-linux-lts
    Found initrd image(s) in /boot: intel-ucode.img initramfs-linux-lts.img
    Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-lts-fallback.img
    Linux-Abbild gefunden: /boot/vmlinuz-linux
    Found initrd image(s) in /boot: intel-ucode.img initramfs-linux.img
    Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-fallback.img
    erledigt
    

    So far so good. Then I tried to reboot unfortunately it didn’t boot at all.
    First this appears on screen:
    https://picload.org/view/dgwdiglw/img_20171021_211548139.jpg.html
    Then this:
    https://picload.org/view/dgwdigcr/img_20171021_211555587.jpg.html

    Fortunately I had supergrubdisk installed on a flash drive so i can normally boot into my system using it.

    I have two harddisks on my laptop one SSD where gnome is installed and a second one where i want to keep some other stuff.
    I tried to install grub by removing my second HDD but still the same error occurs.

    Here some information about my partitions:

    sudo parted -l
    Modell: ATA SanDisk SDSSDHII (scsi)
    Festplatte  /dev/sda:  960GB
    Sektorgröße (logisch/physisch): 512B/512B
    Partitionstabelle: msdos
    Disk-Flags: 
    
    Nummer  Anfang  Ende   Größe  Typ       Dateisystem  Flags
     2      129GB   252GB  123GB  primary   ext4
     4      303GB   410GB  107GB  extended
     5      303GB   410GB  107GB  logical   ext4
    
    
    Modell: ATA WDC WD5000LPVX-6 (scsi)
    Festplatte  /dev/sdb:  500GB
    Sektorgröße (logisch/physisch): 512B/4096B
    Partitionstabelle: msdos
    Disk-Flags: 
    
    Nummer  Anfang  Ende   Größe  Typ      Dateisystem  Flags
     1      1049kB  107GB  107GB  primary  ext4
    

    So can someone please help me fix this problem?
    Thanks in advance.

  • $ lsblk -f
    

    ?

  • Here you go.

    NAME   FSTYPE LABEL         UUID                                 MOUNTPOINT
    sda                                                              
    ├─sda2 ext4   AntergosGnome 563b2627-1878-44aa-8589-d54172024f5a /
    ├─sda4                                                           
    └─sda5 ext4   Musik         d09bd591-4e88-43b9-a3b5-62bfc592947c /mnt/d09bd591-4
    sdb                                                              
    └─sdb1 ext4   Backup        92655f8a-86ee-43bb-8962-025bdba4d8cb
    
  • What sda4 do you have on that partition ?

    No partition /boot …

  • sda4 is an extended partition. Its empty. I think i cant put anything on there.

  • cat /etc/fstab
    
  • this looks a bit strange to me…

    where is sda1 and sda3 ? and also no [SWAP] and no /boot partition?
    Antergos default partitions would look like this:

    sda                                                                  
    ├─sda1 ext4   AntergosBoot      **UUID** /boot
    ├─sda2 ext4   AntergosRoot     **UUID** /
    ├─sda3                                                               
    └─sda5 swap   AntergosSwap      **UUID**  [SWAP]
    
    

    so may ou are just deleted sda1 where you have kde before and do not format it? so there is empty space e beginning of the hd and the bios do not see a OS…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • I really do not understand the partition system handled with Parted, I never use it again, I always use Cfdisk or GParted …

  • @judd said in Grub not appearing on boot:

    cat /etc/fstab
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    #
    UUID=563b2627-1878-44aa-8589-d54172024f5a / ext4 defaults,noatime,discard 0 1
    /dev/disk/by-uuid/d09bd591-4e88-43b9-a3b5-62bfc592947c /mnt/d09bd591-4e88-43b9-a3b5-62bfc592947c auto nosuid,nodev,nofail,x-gvfs-show 0 0
    /dev/disk/by-uuid/07958fa7-ee50-43fc-ab3b-fc229d616873 /mnt/07958fa7-ee50-43fc-ab3b-fc229d616873 auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Backup 0 0
    

    @joekamprad said in Grub not appearing on boot:

    this looks a bit strange to me…

    where is sda1 and sda3 ? and also no [SWAP] and no /boot partition?
    Antergos default partitions would look like this:

    sda                                                                  
    ├─sda1 ext4   AntergosBoot      **UUID** /boot
    ├─sda2 ext4   AntergosRoot     **UUID** /
    ├─sda3                                                               
    └─sda5 swap   AntergosSwap      **UUID**  [SWAP]
    
    

    so may ou are just deleted sda1 where you have kde before and do not format it? so there is empty space e beginning of the hd and the bios do not see a OS…

    I never read that if you have more than 1 GB of Ram you don’t need swap anymore. I don’t have a separate boot partition.
    Right I just deleted the partition that was partition sda1. But I formated it again but with same error so I deleted it again.
    I would have used sda3 but I cant increase the size of that partition so I created another partition. sda3 is also a deleted partition.

  • It looks like that the BIOS do not like empty space in the beginning of sda …

    I would format the empty partitions and then rerun grub.cfg generation (may also grub-install)

    System will work without swap and also without extra boot partition yes… as i think swap is usefull also if you got much RAM and on today HD’s it does not hurt to have them too

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • So I just partitioned sda1 and sda3 with gparted.
    Then i installed grub again and then generated the grub.cfg file.
    So far so good everything is fine.
    But unfortunately it didn’t make any difference.
    Grub still doesn’t load.

    NAME   FSTYPE LABEL         UUID                                 MOUNTPOINT
    sda                                                              
    ├─sda1 ext4   Diverses      72e8079f-13a8-4ab7-97d3-688f254f2a57 
    ├─sda2 ext4   AntergosGnome 563b2627-1878-44aa-8589-d54172024f5a /
    ├─sda3 ext4   Diverses2     6209fc4c-1ce6-4651-9855-06382c9ccac7 
    ├─sda4                                                           
    └─sda5 ext4   Musik         d09bd591-4e88-43b9-a3b5-62bfc592947c /mnt/d09bd591-4
    sdb                                                              
    └─sdb1 ext4   Backup        92655f8a-86ee-43bb-8962-025bdba4d8cb
    
  • and you are sure that bios-system try to boot /dev/sda ? do you try pressing F12 and select boot device manually?

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • Yes I did try that but unfortunately it didn’t help.
    So I decided to reinstall Antergos_KDE on sda1.
    Everything went smooth.
    Then grub loads but it only shows Antergos-KDE no sign of the gnome installation.
    So I reinstalled Grub in KDE then regenerated the grub.cfg and rebooted.
    The gnome installation was found but when i try to boot it a error message comes. Kernel Panic.
    Here you can see the error:
    https://picload.org/view/dgwdpwlr/img_20171022_003438956.jpg.html
    No I rebooted into gnome with supergrubdisk again.

  • @pingpong2000 Do this in KDE:
    sudo su
    mount /dev/sda2 /mnt
    arch-chroot /mnt
    grub-install /dev/sda
    grub-mkconfig -o /boot/grub/grub.cfg

  • os-prober has a problem detecting a second installed Archbased system …
    this is a known bug… copy the menuentry for GNOME from /dev/sda2/boot/grub/grub.cfg

    (only the entry not the other script stuff)

    menuentry 'Antergos Linux' --class antergos --class arch
    ....
    rest of the entry.......
    .....
    
    initrd	/intel-ucode.img /initramfs-linux.img
    }
    

    inside /etc/grub.d/40_custom (keep the lines inside as there are and add the entry after them!)

    from kde installation and regenerating grub.cfg inside kde will do the job also…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • As I mentioned in my last post grub detected my gnome installation after I regenerated grub.cfg.
    But now the Kernel panic message comes:
    https://picload.org/view/dgwdpwlr/img_20171022_003438956.jpg.html

  • @pingpong2000 as i mentioned you can copy the menu entry from gnome installation into the /etc/grub.d/40_custom
    file from your kde installation and regenerate the grub.cfg there (KDE) this will add a working entry to grub…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • Just this line:

    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option
    

    ?

    This is the whole entry:

    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-563b2627-1878-44aa-8589-d54172024f5a' {
    	load_video
    	set gfxpayload=keep
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd0,msdos2'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  563b2627-1878-44aa-8589-d54172024f5a
    	else
    	  search --no-floppy --fs-uuid --set=root 563b2627-1878-44aa-8589-d54172024f5a
    	fi
    	echo	'Linux linux-lts wird geladen …'
    	linux	/boot/vmlinuz-linux-lts root=UUID=563b2627-1878-44aa-8589-d54172024f5a rw  quiet
    	echo	'Initiale Ramdisk wird geladen …'
    	initrd  /boot/intel-ucode.img /boot/initramfs-linux-lts.img
    }
    
  • @pingpong2000
    I believe Joe meant the whole entry.
    It solves the problem what the generated line starting with ‘initrd’ has: missing /boot/intel-ucode.img.

  • Thank you very much for your Help.
    Now I can finally boot into my gnome system without using supergrubdisk.

Posts 24Views 410
Log in to reply