Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: grub, menu.lst, auto detect other os

  1. #11
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,100
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: grub, menu.lst, auto detect other os

    2. Install 8.04 Hardy Heron's GRUB to Hardy Heron partition boot sector.
    With your Ubuntu Intrepid Ibex Live/Install CD rebooted and running in your computer once again,
    (i) Open GRUB as a program with superuser powers,
    Code:
    sudo grub
    (ii) run a quick test to determine which partition(s) contain(s) GRUB files, for safety's sake,
    Code:
    find /boot/grub/stage2
    (iii) If the results of the above test indicate that you have a /boot/grub/stage2 in both (hd0,2) and (hd0,4) then choose (hd0,2) as the partition to focus GRUB's attention to,
    Code:
    root (hd0,2)
    (iv) Install code from the /boot/grub/stage1 to the partition boot sector in (hd0,2) to make that boot sector point to the /boot/grub/stage2 file in (hd0,2), which is your Hardy Heron partition.
    Code:
    setup (hd0,2)
    (v) Exit from GRUB for the time being,
    Code:
    quit
    NOTES: Some new websites are skipping the important test for checking which partitions contain GRUB. It's best to always make sure we're installing GRUB's IPL code to a Linux partition. If we neglect to advise people about the safe way someone will make a mistake and install it to their Windows partition and cause themselves some inconvenience. In that case we might as well just have used the grub-install command instead. The grub-install command has the advantage of refreshing the GRUB files in /boot at the same time as installing GRUB's IPL to a MBR or to a boot sector.
    Ubuntu user since 2004 (Warty Warthog)

  2. #12
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,100
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: grub, menu.lst, auto detect other os

    3. Edit Intrepid Ibex's /boot/grub/menu.lst with a boot stanza for chain loading Hardy Heron's GRUB by the partition boot sector.

    (i) Mount your Intrepid Ibex partition's file system, 'Places'-->'Removable Media'-->'INTREPID'

    (ii) Open Nautilus with superuser powers
    Code:
    gksudo nautilus
    (iii) Navigate to your /media/INTREPID/boot/grub/ directory and open your Intrepid Ibex /boot/grub/menu.lst file.

    (iv) Type, (or copy and paste) a boot stanza in for chain loading your boot loader in your Hardy Heron partition by the boot sector.
    Your Hardy Heron boot entry must not be placed within the Debian automagic kernels list which is marked by signs in upper case letters at the top and bottom.
    For example,
    Code:
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    title        Ubuntu Hardy Heron Chainloader boot on /dev/sda3, (hd0,2)
    uuid=xxxxxxxxxxxxxxxxxxxxxxxxx
    chainloader +1
    Where: xxxxxxxxxxxxxxxxxxxxxxxxx is the uuid number for your Ubuntu Hardy Heron file system, to find that open a terminal in another workspace and run 'sudo blkid'. Copy and paste the correct uuid number for Hardy Heron here.
    Code:
    sudo blkid
    (v) save the changes, close the file, exit nautilus and close any other open programs and files
    Ubuntu user since 2004 (Warty Warthog)

  3. #13
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,100
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: grub, menu.lst, auto detect other os

    4. Install 8.10 Intrepid Ibex's GRUB to MBR in your first hard disk

    (i) Open GRUB as a program with superuser powers again,
    Code:
    sudo grub
    (ii) run a quick test to determine which partition(s) contain(s) GRUB files, for safety's sake,
    Code:
    find /boot/grub/stage2
    (iii) If the results of the above test indicate that you have a /boot/grub/stage2 in both (hd0,2) and (hd0,4) then choose (hd0,4) as the partition to focus GRUB's attention to, because that should be your Intrepid partition,
    Code:
    root (hd0,4)
    (iv) Install code from Intrepid's /boot/grub/stage1 to MBR in your first hard disk and stage1_5 of GRUB to the next 21 sectors of the first track of the hard disk, to point to the /boot/grub/stage2 file in (hd0,4), which is your Intrepid Ibex partition.
    Code:
    setup (hd0)
    (v) Exit from GRUB,
    Code:
    quit
    Reboot and make sure it works!
    Ubuntu user since 2004 (Warty Warthog)

Page 2 of 2 FirstFirst 12

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
  •