Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: Install bootloader in sdb5

  1. #1

    Default Install bootloader in sdb5

    Hi
    I used the rescue cd to mount sdb5 and chroot into opensuse (wich is installed in the logical /root partition sdb5). Here I was trying to install the boot loader:
    Code:
    grub2-install /dev/sdb5
    but got the following error message:
    Code:
    error cannot find a device for /boot/grub2 (is /dev mounted?)
    After installing opensuse as in a dualboot with manjaro(sdb1), opensuse´s bootloader was installed in sdb1 and overtook the boot menue without being able to boot manjaro. Now after trying to solve it, manjaro´s boot menu is back but opensuse doesnt apear there. Thats why I´m trying to install bootloader in sdb5.

    What am I doing wrong?

  2. #2

    Default Re: Install bootloader in sdb5

    Quote Originally Posted by chapati View Post
    What am I doing wrong?
    You need to mount /dev, /proc and /sys in chroot.

  3. #3

    Default Re: Install bootloader in sdb5

    Thanks for the help!
    I tried that, but still got the same error message ("cannot find a device for /boot/grub2 (is /dev mounted?)")
    Is anything missing here?

    Code:
    root
    mount /dev/sdb5 /mnt
    mount --bind /dev /mnt/dev
    mount --bind /sys /mnt/sys
    mount --bind /proc /mnt/proc
    chroot /mnt

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    21,920

    Default Re: Install bootloader in sdb5

    A bit of a wild guess, but imho you can not install to a logical partition. You can to the extended partition. Based on my memory that the installer offers to install Grub on the MBR, the root partition or the extended partition. But my memory may be lousy.
    Henk van Velden

  5. #5
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    2,708

    Default Re: Install bootloader in sdb5

    Quote Originally Posted by chapati View Post
    Thanks for the help!
    I tried that, but still got the same error message ("cannot find a device for /boot/grub2 (is /dev mounted?)")
    Is anything missing here?

    Code:
    root
    mount /dev/sdb5 /mnt
    mount --bind /dev /mnt/dev
    mount --bind /sys /mnt/sys
    mount --bind /proc /mnt/proc
    chroot /mnt
    The sequence should be:
    Code:
    mount /dev/sdb5 /mnt
    mount --bind /dev /mnt/dev
    chroot /mnt
    mount -t proc proc /proc
    mount -t sysfs sysfs /sys
    grub2-mkconfig -o /boot/grub2/grub.cfg
    grub2-install /dev/sdb5
    ... but, this is not a UEFI system, is it? If you are using EFI, there are differences in the above commands.
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~~~~
    If I helped you, consider clicking the Star at the bottom left of my post.

  6. #6
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    2,708

    Default Re: Install bootloader in sdb5

    You might, though -- as Henk suggests -- be better off installing it the the Extended partition.
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~~~~
    If I helped you, consider clicking the Star at the bottom left of my post.

  7. #7
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    9,050
    Blog Entries
    3

    Default Re: Install bootloader in sdb5

    An additional comment.

    Yes, you can install to "/dev/sdb5". But it might not work, because typical boot code does not look at logical partitions. Hence the suggestion to install to the extended partition.

    Also, the command would probably need to be:

    Code:
    grub2-install --force /dev/sdb5
    Unless installing to the MBR, you probably need the "--force". Otherwise you will get an error saying why it is unwise to do that.

    And, as Fraser_Bell indicated, if you have a UEFI system then you need a different command to install and you need the EFI partition to be mounted.
    opensuse Leap 42.3; KDE Plasma 5;
    opensuse tumbleweed; KDE Plasma 5 (test system);

  8. #8

    Default Re: Install bootloader in sdb5

    Quote Originally Posted by chapati View Post
    I tried that, but still got the same error message ("cannot find a device for /boot/grub2 (is /dev mounted?)")
    Is anything missing here?
    Is /boot on separate partition?

  9. #9

    Default Re: Install bootloader in sdb5

    Quote Originally Posted by Fraser_Bell View Post
    The sequence should be:
    No, it should not. Do not confuse newbies even more.

  10. #10

    Question Re: Install bootloader in sdb5

    Hi
    Reading your suggestions i tried to install grub in the extended partition (sdb3) but without success. Trying to mount sdb3 (mount /dev/sdb3 /mnt) ended up with:
    mount.bin: /dev/sdb3 is write-protected, mounting read only
    mount.bin: wrong fs type, bad option, bad superblock on /dev/sdb3,
    missing codepage or helper program, or other error
    trying to install grub (grub2-install --force /dev/sdb3):
    error: unable to identify a filesystem in hd0: safety check can´t be performed
    -I´m using a bios system
    -there is no seperate boot partition
    I hope there is an easy solution for that...
    ?

Page 1 of 5 123 ... 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
  •