Results 1 to 2 of 2

Thread: Add "boot from second hard drive" entry to GRUB2

  1. #1
    Join Date
    Oct 2009
    Location
    Germany
    Beans
    82
    Distro
    Ubuntu 12.04 Precise Pangolin

    Add "boot from second hard drive" entry to GRUB2

    I'm using GRUB2 on my main drive and I have a second hard drive where GRUB is also installed on. Now when I want to boot from the other HD, I need to switch boot order in the BIOS every time, which is unconvenient. So I want an entry in GRUB that simply boots from the other hard drive (i.e. "switches" to the other GRUB).

    I should be able to add a new entry to GRUB by editing /etc/grub.d/40_custom...
    however, I don't know much about GRUB and came up with the following:

    Code:
    menuentry "Boot from second hard drive" {
        set root=(hd1)
        chainloader +1
    }
    But I don't know if that'll work. Can I just omit the partition for set root like this?
    Do I need to add anything else?

  2. #2
    Join Date
    Oct 2009
    Location
    Germany
    Beans
    82
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Add "boot from second hard drive" entry to GRUB2

    Found a different solution:
    I added "(hd1) /dev/sdb" to /boot/grub/device.map and ran update-grub.
    This adds to operating systems on the second drive to GRUB, which works just as well.

Bookmarks

Posting Permissions

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