(solved) How to change the boot sequence in Grub in antiX 12?

Forum Forums General Software (solved) How to change the boot sequence in Grub in antiX 12?

  • This topic has 4 replies, 2 voices, and was last updated Jan 23-11:15 am by Leentje.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5711
    Member
    Leentje

      Good day, goeie middag,

      I cannot open grub/menu.lst by using the Terminal, but I found this film on internet: antiX 13-edit boot loader.I can open the list by controle center>system> (bewerk)/change config systems

      I’d like to change the boot sequence (opstartvolgorde) in Grub from antiX (linux) first to Windows first.
      Windows is on sda/dev 1, Linux on sda5.

      In the screen Linux is 1st now, Windows 2nd.

      What do I have to change/do?

      timeout 10
      color cyan/blue white/blue
      foreground ffffff
      background 0639a1

      gfxmenu /boot/grub/message
      root=(hd0,1)
      title antiX at sda5, kernel 3.5.0-antix.2-486-smp
      kernel /boot/vmlinuz-3.5.0-antix.2-486-smp root=/dev/sda5 nomce quiet nosplash nouveau.modeset=0 vga=791
      initrd /boot/initrd.img-3.5.0-antix.2-486-smp
      boot

      title Microsoft Windows XP Home Edition at sda1
      rootnoverify (hd0,0)
      chainloader +1

      ### 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=1ce7e668-eff2-416c-87d1-c598607595c6 ro
      # kopt_2_6=root=UUID=1ce7e668-eff2-416c-87d1-c598607595c6 ro nosplash quiet

      ## default grub root device
      ## e.g. groot=(hd0,0)
      # groot=(hd0,4)

      ## 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=

      ## 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=(single-user) single
      # altoptions=(init-3) 3

      ## 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

      ## 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 ##

      title Debian GNU/Linux, kernel 3.5.0-antix.2-486-smp
      root (hd0,4)
      kernel /boot/vmlinuz-3.5.0-antix.2-486-smp root=UUID=1ce7e668-eff2-416c-87d1-c598607595c6 ro
      initrd /boot/initrd.img-3.5.0-antix.2-486-smp

      title Debian GNU/Linux, kernel 3.5.0-antix.2-486-smp (init-3)
      root (hd0,4)
      kernel /boot/vmlinuz-3.5.0-antix.2-486-smp root=UUID=1ce7e668-eff2-416c-87d1-c598607595c6 ro 3
      initrd /boot/initrd.img-3.5.0-antix.2-486-smp

      title Debian GNU/Linux, kernel memtest86+
      root (hd0,4)
      kernel /boot/memtest86+.bin

      ### END DEBIAN AUTOMAGIC KERNELS LIST

      #5712
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        How about just puting the Windows section above the antiX one

        timeout 10
        color cyan/blue white/blue
        foreground ffffff
        background 0639a1

        gfxmenu /boot/grub/message
        root=(hd0,1)
        title Microsoft Windows XP Home Edition at sda1
        rootnoverify (hd0,0)
        chainloader +1

        title antiX at sda5, kernel 3.5.0-antix.2-486-smp
        kernel /boot/vmlinuz-3.5.0-antix.2-486-smp root=/dev/sda5 nomce quiet nosplash nouveau.modeset=0 vga=791
        initrd /boot/initrd.img-3.5.0-antix.2-486-smp
        boot

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #5713
        Member
        Leentje
          #5714
          Forum Admin
          anticapitalista
            Helpful
            Up
            0
            ::

            If you are using an old version of antiX (12) then you have to use legacy-grub code in your initial post not code used for grub2

            BTW Make sure you keep a copy of the original menu.lst just in case …

            • This reply was modified 5 years, 3 months ago by anticapitalista.

            Philosophers have interpreted the world in many ways; the point is to change it.

            antiX with runit - leaner and meaner.

            #5716
            Member
            Leentje
              Helpful
              Up
              0
              ::

              @anticapitalista: I missed Your first post. And it worked. The problem is solved. Thank you.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.