Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Grub keeps getting deleted

  1. #1

    Default Grub keeps getting deleted

    Hi, I am using opensuse leap. I have grub 2 installed in /dev/sda and it keeps getting wiped every 2 days (sometimes every day). This has happened for a month now. Gnome-shell restarts itself usually every day (could it be related?) and sometimes my computer would freeze dhe tell me that it can not unmound /home. HDD is fine because i use windows without any problem. Grub is wiped when using linux (windows doesn't play any part because i don't open it). The process happens like this:
    1. I shutdown my computer.
    2. I open laptop.
    3. It sends me to BIOS and there is no boot record at all.
    4. I click save and reboot
    5. It reboots in windows (it was not listed in step 4)
    6. When i use a USB tool to list grub entries, it shows opensuse and i can boot using the USB tool (it doesn't write anything to HDD).

    Can someone help me troubleshoot?

    Laptop has EFI and secure boot is disabled.

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,579

    Default Re: Grub keeps getting deleted

    Show as root

    efibootmgr

  3. #3

    Default Re: Grub keeps getting deleted

    Quote Originally Posted by gogalthorp View Post
    Show as root

    efibootmgr
    BootCurrent: 0002
    Timeout: 0 seconds
    BootOrder: 0000,0001,0002
    Boot0000* opensuse
    Boot0001* Windows Boot Manager
    Boot0002* UEFI: silicon -power 0.00

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,579

    Default Re: Grub keeps getting deleted

    That looks correct opensuse is set to be default boot.

    Is it booting correctly?

    The current boot is 2 But I don't know what that is???

    Some hardware insists on booting Windows.. Is it an HP??

  5. #5

    Default Re: Grub keeps getting deleted

    Quote Originally Posted by gogalthorp View Post
    That looks correct opensuse is set to be default boot.

    Is it booting correctly?

    The current boot is 2 But I don't know what that is???

    Some hardware insists on booting Windows.. Is it an HP??
    Yeah for now it is.

    The last is the USB device that i use to list grub when it is removed from BIOS.

    I have an ASUS x550cc.

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,579

    Default Re: Grub keeps getting deleted

    need to see list when it is broken.

    If you boot to Windows does that break it?

  7. #7

    Default Re: Grub keeps getting deleted

    Quote Originally Posted by gogalthorp View Post
    need to see list when it is broken.

    If you boot to Windows does that break it?
    I turned my laptop on today and the grub was gone. It sent me to BIOS settings. When i clicked save and reboot, it booted me to windows (even that windows was not listed first before rebooting). I didn't open windows before.

    I managed to boot to grub via one iso software that listed grub files. here is what sudo efibootmgr returns:

    BootCurrent: 0002
    Timeout: 0 seconds
    BootOrder: 0001,0002
    Boot0001* Windows Boot Manager
    Boot0002* UEFI: silicon -power 0.00


    Here is the grub output: http://i.imgur.com/1Coszwa.png

    dev/sda3 is supposed to mount /boot/efi

    What should i do?

  8. #8
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    16,689
    Blog Entries
    13

    Default Re: Grub keeps getting deleted

    Quote Originally Posted by Arjoni View Post

    Here is the grub output: http://i.imgur.com/1Coszwa.png

    dev/sda3 is supposed to mount /boot/efi

    What should i do?
    From what it looks like here, it doesn't. /dev/sda7 gets mounted on /boot/efi
    But what's interesting is the fact that two partitions have the boot flag on
    ° Appreciate my reply? Click the star and let me kow why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  9. #9

    Default Re: Grub keeps getting deleted

    Quote Originally Posted by Knurpht View Post
    From what it looks like here, it doesn't. /dev/sda7 gets mounted on /boot/efi
    But what's interesting is the fact that two partitions have the boot flag on
    Well how do i fix that? I want to delete /dev/sda7 and use the other one.

  10. #10
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,579

    Default Re: Grub keeps getting deleted

    Boot flag is not used in EFI booting

    Look into each and see what is exactly happening ie what OS it serves. You can have more then one efi boot partition the UEFI should see and use both

    To change you would need to reinstall grub2 and point it to the partition you want to use

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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