How does a Linux user boot a new additional Linux?


Results 1 to 6 of 6

Thread: How does a Linux user boot a new additional Linux?

Threaded View

  1. #1
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,954

    How can a Linux user multi boot a new additional Linux?

    -------Edited 14/1/06--------------
    This is a later thread I wrote that show a lazy way to multi boot with the Grub menu prepared prior to the additional Linux installations. As an example I had 20 empty partitions ready for receiving Linux shown in this thread.
    -------------------------------------

    Here are simple steps to add additional Linux distros to a bootable system using either Lilo or Grub.

    Assumptions:-


    (1) A computer already with an existing Linux ( or any number of them) loaded and has its bootloader in the MBR. Let’s assume the bootloader owner Linux reside is Partition hda6
    (2) The new Linux when install, say at Partition hda7, replaces the original bootloader causing a panic to the user (instead to the kernel!).
    (3) The system now boots with the new Linux in hda7 but not the previous alternatives in hda6.

    Steps to restore the previous bootloader and include the new one for booting.

    (a) Boot to new Linux in hda7 as usual.
    (b) Drop in terminal mode, by clicking terminal or konsole
    (c) Log is as the root user (“su” then follow by password)
    (d) Replicate the bootloader in root partition (“grub-install /dev/hda7”)
    (e) Make a new directory for mounting hda6(“mkdir /mnt/here”)
    (f) Mount the previous hda6 there ( “mount /dev/hda6 /mnt/here”)
    (g) Change root to hda6 (“chroot /mnt/here”). Now you are in side hda6.
    (h) Use desktop to edit hda6’s /boot/grub/menu.lst to include hda7 for booting with lines

    Code:
    title My Linux in hda7
    root (hd0,6)
    chainloader +1
    (i) Restore hda6’s bootloader in MBR (“grub-install /dev/hda”)
    (j) Exit hda6 (“exit”)
    (k) Reboot (“reboot”)

    The above works if both the old hda6 and new hda7 have Grub as the bootloader.

    If the old hda7 uses Lilo then the following replacement is necessary

    (d) Replicate the bootloader in root partition (“lilo –b /dev/hda7”)


    If the new hda6 uses Lilo then the following replacements are necessary

    (h) Edit hda6’s /etc/lilo.conf to include hda7 for booting with lines

    Code:
    label=”Linux_hda7”
    other= /dev/hda7
    After /etc/lilo.conf has been saved type "lilo" to update the system.

    (i) Restore hda6’s bootloader in MBR (“lilo -b /dev/hda”)



    The user can recover his previous bootloader and includes the newly installed Linux in hda7 as another booting choice. That is the method I use to build up more than 20 bootable Linux distros. Lilo and Grub can be mixed together as suggested.

    It should be pointed out that the current Lilo appears to have a maximum of 27 bootable entries. Grub can boot over 100 systems.
    Last edited by saikee; 01-14-2006 at 08:59 PM.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

Posting Permissions

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