Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, all: After once appearence the system boot menu doesn't appear again! How should I use grub to boot from multiple system images? Here are my menu.lst: Code: ### BEGIN ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    28

    boot from multiple images!


    Hi, all:

    After once appearence the system boot menu doesn't appear again! How should I use grub to boot from multiple system images?

    Here are my menu.lst:

    Code:
    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below
    
    ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ##      kopt_2_6_8=root=/dev/hdc1 ro
    ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=99339357-923a-4cfb-a288-6336c7499359 ro
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,0)
    
    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ##      alternative=false
    # alternative=true
    
    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ##      lockalternative=false
    # lockalternative=false
    
    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash
    
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ##      lockold=true
    # lockold=false
    
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(recovery) single
    # altoptions=(recovery mode) single
    
    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ##      howmany=7
    # howmany=all
    
    ## specify if running in Xen domU or have grub detect automatically
    ## update-grub will ignore non-xen kernels when running in domU and vice versa
    ## e.g. indomU=detect
    ##      indomU=true
    ##      indomU=false
    # indomU=detect
    
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ##      memtest86=false
    # memtest86=true
    
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    
    ## ## End Default Options ##
    default		0
    timeout		180
    title		Ubuntu 10.04.1 LTS, kernel 3.0.4.old
    root		(hd0,0)
    kernel		/boot/vmlinuz-3.0.4.old ro root=/dev/sda1
    initrd		/boot/initrd.img-3.0.4
    quiet
    
    title		Ubuntu 10.04.1 LTS, kernel 3.0.4.old (recovery mode)
    root		(hd0,0)
    kernel		/boot/vmlinuz-3.0.4.old ro root=/dev/sda1
    initrd		/boot/initrd.img-3.0.4
    
    title		Ubuntu 10.04.1 LTS, kernel 3.0.4
    root		(hd0,0)
    kernel		/boot/vmlinuz-3.0.4 ro root=/dev/sda1
    initrd		/boot/initrd.img-3.0.4
    quiet
    
    title		Ubuntu 10.04.1 LTS, kernel 3.0.4 (recovery mode)
    root		(hd0,0)
    kernel		/boot/vmlinuz-3.0.4 ro root=/dev/sda1
    initrd		/boot/initrd.img-3.0.4
    
    title		Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic
    root		(hd0,0)
    kernel		/boot/vmlinuz-2.6.32-24-generic ro root=/dev/sda1
    initrd		/boot/initrd.img-2.6.32-24-generic
    quiet
    
    title		Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode)
    root		(hd0,0)
    kernel		/boot/vmlinuz-2.6.32-24-generic ro root=/dev/sda1
    initrd		/boot/initrd.img-2.6.32-24-generic
    
    title		Ubuntu 10.04.1 LTS, memtest86+
    root		(hd0,0)
    kernel		/boot/memtest86+.bin
    quiet
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    #grub --version
    grub (GNU GRUB 0.97)

    thanks!
    li,kunlun
    Last edited by MikeTbob; 11-12-2011 at 10:59 PM. Reason: Added Code Tags

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    583
    You are given two minutes start another image. To select which image is to be booted by using the Up and Down arrow keys and "enter" key to select the highlighted image. You can only boot one image at a time on a machine without virtual machine software.

Posting Permissions

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