Announcement

Collapse
No announcement yet.

Help with change default boot to Windows

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with change default boot to Windows

    I want to have windows 7 as default loader. I have read some post about this but it seems be complicated or may be not but I am confused. I looked for menu list and used: sudo /boot/grub/menu.lst but nothing, also I found grub.cfg but I read that it should not be changed directly, so I am lost.

    I am using Kubuntu 11.04, KDE 4.6.2, Grub: 0.97ubuntu61


    #2
    Re: Help with change default boot to Windows

    post your grub.cfg hear

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Re: Help with change default boot to Windows

      you mean this? :

      #
      # DO NOT EDIT THIS FILE
      #
      # It is automatically generated by grub-mkconfig using templates
      # from /etc/grub.d and settings from /etc/default/grub
      #

      ### BEGIN /etc/grub.d/00_header ###
      if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
      fi
      set default="0"
      if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
      fi

      function savedefault {
      if [ -z "${boot_once}" ]; then
      saved_entry="${chosen}"
      save_env saved_entry
      fi
      }

      function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
      }

      function load_video {
      insmod vbe
      insmod vga
      insmod video_bochs
      insmod video_cirrus
      }

      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos9)'
      search --no-floppy --fs-uuid --set=root 9f7cdd25-c4c2-4b90-adc3-07529ffc8682
      if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      fi
      terminal_output gfxterm
      if [ "${recordfail}" = 1 ]; then
      set timeout=-1
      else
      set timeout=10
      fi
      ### END /etc/grub.d/00_header ###

      ### BEGIN /etc/grub.d/05_debian_theme ###
      set menu_color_normal=white/black
      set menu_color_highlight=black/light-gray
      if background_color 0,71,115; then
      clear
      fi
      ### END /etc/grub.d/05_debian_theme ###

      ### BEGIN /etc/grub.d/10_linux ###
      if [ ${recordfail} != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
      if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
      set linux_gfx_mode=keep
      else
      set linux_gfx_mode=text
      fi
      else
      set linux_gfx_mode=text
      fi
      else
      set linux_gfx_mode=keep
      fi
      else
      set linux_gfx_mode=text
      fi
      export linux_gfx_mode
      if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
      menuentry 'Ubuntu, with Linux 2.6.38-11-generic' --class ubuntu --class gnu-linux --class gnu --class os {
      recordfail
      set gfxpayload=$linux_gfx_mode
      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos9)'
      search --no-floppy --fs-uuid --set=root 9f7cdd25-c4c2-4b90-adc3-07529ffc8682
      linux /boot/vmlinuz-2.6.38-11-generic root=UUID=9f7cdd25-c4c2-4b90-adc3-07529ffc8682 ro quiet splash vt.handoff=7
      initrd /boot/initrd.img-2.6.38-11-generic
      }
      menuentry 'Ubuntu, with Linux 2.6.38-11-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
      recordfail
      set gfxpayload=$linux_gfx_mode
      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos9)'
      search --no-floppy --fs-uuid --set=root 9f7cdd25-c4c2-4b90-adc3-07529ffc8682
      echo 'Loading Linux 2.6.38-11-generic ...'
      linux /boot/vmlinuz-2.6.38-11-generic root=UUID=9f7cdd25-c4c2-4b90-adc3-07529ffc8682 ro single
      echo 'Loading initial ramdisk ...'
      initrd /boot/initrd.img-2.6.38-11-generic
      }
      submenu "Previous Linux versions" {
      menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
      recordfail
      set gfxpayload=$linux_gfx_mode
      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos9)'
      search --no-floppy --fs-uuid --set=root 9f7cdd25-c4c2-4b90-adc3-07529ffc8682
      linux /boot/vmlinuz-2.6.38-8-generic root=UUID=9f7cdd25-c4c2-4b90-adc3-07529ffc8682 ro quiet splash vt.handoff=7
      initrd /boot/initrd.img-2.6.38-8-generic
      }
      menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
      recordfail
      set gfxpayload=$linux_gfx_mode
      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos9)'
      search --no-floppy --fs-uuid --set=root 9f7cdd25-c4c2-4b90-adc3-07529ffc8682
      echo 'Loading Linux 2.6.38-8-generic ...'
      linux /boot/vmlinuz-2.6.38-8-generic root=UUID=9f7cdd25-c4c2-4b90-adc3-07529ffc8682 ro single
      echo 'Loading initial ramdisk ...'
      initrd /boot/initrd.img-2.6.38-8-generic
      }
      }
      ### END /etc/grub.d/10_linux ###

      ### BEGIN /etc/grub.d/20_linux_xen ###
      ### END /etc/grub.d/20_linux_xen ###

      ### BEGIN /etc/grub.d/20_memtest86+ ###
      menuentry "Memory test (memtest86+)" {
      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos9)'
      search --no-floppy --fs-uuid --set=root 9f7cdd25-c4c2-4b90-adc3-07529ffc8682
      linux16 /boot/memtest86+.bin
      }
      menuentry "Memory test (memtest86+, serial console 115200)" {
      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos9)'
      search --no-floppy --fs-uuid --set=root 9f7cdd25-c4c2-4b90-adc3-07529ffc8682
      linux16 /boot/memtest86+.bin console=ttyS0,115200n8
      }
      ### END /etc/grub.d/20_memtest86+ ###

      ### BEGIN /etc/grub.d/30_os-prober ###
      menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
      insmod part_msdos
      insmod ntfs
      set root='(/dev/sda,msdos1)'
      search --no-floppy --fs-uuid --set=root 88A42F48A42F37D8
      chainloader +1
      }
      ### END /etc/grub.d/30_os-prober ###

      ### BEGIN /etc/grub.d/40_custom ###
      # This file provides an easy way to add custom menu entries. Simply type the
      # menu entries you want to add after this comment. Be careful not to change
      # the 'exec tail' line above.
      ### END /etc/grub.d/40_custom ###

      ### BEGIN /etc/grub.d/41_custom ###
      if [ -f $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
      fi
      ### END /etc/grub.d/41_custom ###

      Comment


        #4
        Re: Help with change default boot to Windows

        Install kde-config-grub2 package and then go to SystemSetting>Startup and shutdown>Grub2 Bootloader tab and choose Windows as "Default Entry".
        Plasma 5 look&feel for KDE4: http://kde-look.org/content/show.php...content=166438

        Comment


          #5
          Re: Help with change default boot to Windows

          OK so it looks like you kneed to edit /etc/default/grub and change the line
          GRUB_DEFAULT=0
          to
          GRUB_DEFAULT=6
          with kate as root "kdesudo kate"
          then run "sudo update-grub" and you should be good if it boots the rong entry then at the grub screen count down 0,1,2,3,untill you get to win7 and use that #

          VINNY
          i7 4core HT 8MB L3 2.9GHz
          16GB RAM
          Nvidia GTX 860M 4GB RAM 1152 cuda cores

          Comment


            #6
            Re: Help with change default boot to Windows

            thank Vinny, it worked, it wasn't as complicated as I've read on other posts

            also I think the other option should work, may be I'll try it next time

            Comment


              #7
              Re: Help with change default boot to Windows

              BTW, Vinn's solution will work until you add a kernel or another item to the boot menu.

              Another, less breakable solution is to change

              GRUB_DEFAULT=6

              to

              GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)"

              This will boot to the Win7 install regardless of how many other OS's or kernel you have installed.

              Please Read Me

              Comment


                #8
                Re: Help with change default boot to Windows

                Originally posted by oshunluvr
                BTW, Vinn's solution will work until you add a kernel or another item to the boot menu.

                Another, less breakable solution is to change

                GRUB_DEFAULT=6

                to

                GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)"

                This will boot to the Win7 install regardless of how many other OS's or kernel you have installed.
                True

                VINNY
                i7 4core HT 8MB L3 2.9GHz
                16GB RAM
                Nvidia GTX 860M 4GB RAM 1152 cuda cores

                Comment


                  #9
                  Re: Help with change default boot to Windows

                  Didn't mean to pick on you Vinny...

                  I came across this solution recently because I am forced to use XP on my work laptop. I like being able to push the power button and walk away for the 20 minutes or so it take for it to finally have a usable desktop. :P That is of course, unless it desides to BSOD on me which is two or three times a month

                  Please Read Me

                  Comment

                  Working...
                  X