Results 1 to 4 of 4

Thread: How to restore grub in OpenSuse when another OS takes over

  1. #1

    Default How to restore grub in OpenSuse when another OS takes over

    I ask how to restore grub in OpenSuse for the following reason.
    I have a Toshiba Tecra s-2 as main disk (sda).
    There is installed OpenSuse 12.3 Tumbleweed that usually governs the grub.
    In an external drive connected via USB (sdb) I have many other Linux operating systems, which I change in turn, installing gradually new ones to try.
    A few days ago I installed into the external drive an Arch-based system that has taken over the grub.
    As happened in the past I have tried simply to restore grub using the dedbian-based live cd boot-restore-disk.
    This is to get again Opensuse in charge of grub.

    Using boot-repair-disk I had, however, in the latter circumstance mentioned the following response
    - Please enable a repository containing the [linux] packages in the software sources of openSUSE 12.3 (sda1). Then try again.
    and, after a while I was invited to text
    - sudo chroot "/mnt/boot-sav/sda1" dpkg --configure -a
    - sudo chroot "/mnt/boot-sav/sda1" zypper remove -y grub*-common
    As a result my attempt to text the first "sudo chrot /mnt etc." I got this
    - user@debian:~$ sudo chroot "/mnt/boot-sav/sda1" dpkg --configure -a
    - chroot: failed to run command `dpkg': No such file or directory
    I guess that does not work because dpkg is a valid command for Debian and not for openSUSE.

    What do you advise me to do?
    Thanks

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: How to restore grub in OpenSuse when another OS takes over

    Quote Originally Posted by frananc View Post
    I ask how to restore grub in OpenSuse for the following reason.
    I have a Toshiba Tecra s-2 as main disk (sda).
    There is installed OpenSuse 12.3 Tumbleweed that usually governs the grub.
    In an external drive connected via USB (sdb) I have many other Linux operating systems, which I change in turn, installing gradually new ones to try.
    A few days ago I installed into the external drive an Arch-based system that has taken over the grub.
    As happened in the past I have tried simply to restore grub using the dedbian-based live cd boot-restore-disk.
    This is to get again Opensuse in charge of grub.

    Using boot-repair-disk I had, however, in the latter circumstance mentioned the following response
    - Please enable a repository containing the [linux] packages in the software sources of openSUSE 12.3 (sda1). Then try again.
    and, after a while I was invited to text
    - sudo chroot "/mnt/boot-sav/sda1" dpkg --configure -a
    - sudo chroot "/mnt/boot-sav/sda1" zypper remove -y grub*-common
    As a result my attempt to text the first "sudo chrot /mnt etc." I got this
    - user@debian:~$ sudo chroot "/mnt/boot-sav/sda1" dpkg --configure -a
    - chroot: failed to run command `dpkg': No such file or directory
    I guess that does not work because dpkg is a valid command for Debian and not for openSUSE.

    What do you advise me to do?
    Thanks
    This Article would be our suggested method to recover Grub2 back to working: Re-install Grub2 from DVD Rescue

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,723
    Blog Entries
    20

    Default Re: How to restore grub in OpenSuse when another OS takes over

    Actually
    If another OS takes over, you can usually boot openSUSE from the other OS grub
    So boot to openSUSE
    Open a terminal and do

    Code:
    su -
    grub2-mkconfig -o /boot/grub2/grub.cfg
    Code:
    grub2-install /dev/sda
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  4. #4

    Default Re: How to restore grub in OpenSuse when another OS takes over

    Thanks a lot.
    I did as caf4926 suggested.
    It works for me.

Posting Permissions

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