Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
Like Tree2Likes
Within XP I used "...Windows installer-ubuntu..." which gives Wubi to install Ubuntu 11.04, & dual booting with XP. On startup I get two options:- 1st menu:- "Windows" whitch boots in ...
  1. #1
    Linux Newbie nichos's Avatar
    Join Date
    Sep 2006
    Location
    S.Bucks / W.London UK
    Posts
    101

    [SOLVED] change boot order

    Within XP I used "...Windows installer-ubuntu..." which gives Wubi to install Ubuntu 11.04, & dual booting with XP.

    On startup I get two options:-

    1st menu:-

    "Windows" whitch boots in 30secs.
    "Ubuntu"

    If I select Ubuntu it gives a 2nd menu with a few Generic Ubuntus & a Windows.

    Can I alter it to give in the 1st menu Upuntu first priority insted of windows?

    Thanx ....nick
    Home build, Asus P5K Premium WiFiiFi Intel,
    Intel Core 2 Quad Pro Q6600 2.4GHz, OCZ Cpu Cooler,
    2x2GB, DDR2 800, GeForce 9800 GTX , Excelsior sata 250gb,
    OCZ 600W Psu, X45, XPpro sp3/Ubuntu 8.10

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Posts
    2
    open /boot/grub/grub.cfg and look for "set default="0"", this is the first boot sector listed. count from zero down to you next "menuentry" section in this file. If you only have two listed when you boot now, it will be "1". Change to set default = "1"

  3. #3
    Just Joined! reginaldperrin's Avatar
    Join Date
    Oct 2010
    Posts
    66
    If you can boot into Ubuntu, then there is a nice GUI-based Grub editor which I use. Read about it here:
    Grub Customizer - Graphical interface to configure the grub2/burg settings*|*Ubuntu Geek

    You can use this to set time-outs, boot priority, etc.
    Seraphiel100 likes this.

  4. #4
    Linux Newbie nichos's Avatar
    Join Date
    Sep 2006
    Location
    S.Bucks / W.London UK
    Posts
    101
    Quote Originally Posted by mtbhowie View Post
    open /boot/grub/grub.cfg and look for "set default="0"", this is the first boot sector listed. count from zero down to you next "menuentry" section in this file. If you only have two listed when you boot now, it will be "1". Change to set default = "1"
    Thanx,
    grub.cfg gives all these below but cannot edit the zero to 1, or did I get the wrong file?.

    Could you direct me how to edit it & what No. should type to get "ubuntu" priority ?.

    I noticed 3 ubuntus first then Windows is the 4th & 5th, then five more ubuntus, how come XPt boots first?. ............nick




    grub.cfg
    # 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 {
    true
    }

    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 343453D934539D24
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    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 44,0,30; then
    clear
    fi
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/10_lupin ###
    menuentry "Ubuntu, Linux 2.6.38-10-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 343453D934539D24
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-10-generic root=UUID=343453D934539D24 loop=/ubuntu/disks/root.disk ro quiet splash
    initrd /boot/initrd.img-2.6.38-10-generic
    }
    menuentry "Ubuntu, Linux 2.6.38-10-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 343453D934539D24
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-10-generic root=UUID=343453D934539D24 loop=/ubuntu/disks/root.disk ro single
    initrd /boot/initrd.img-2.6.38-10-generic
    }
    menuentry "Ubuntu, Linux 2.6.38-8-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 343453D934539D24
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=343453D934539D24 loop=/ubuntu/disks/root.disk ro quiet splash
    initrd /boot/initrd.img-2.6.38-8-generic
    }
    menuentry "Ubuntu, Linux 2.6.38-8-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 343453D934539D24
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=343453D934539D24 loop=/ubuntu/disks/root.disk ro single
    initrd /boot/initrd.img-2.6.38-8-generic
    }
    ### END /etc/grub.d/10_lupin ###

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

    ### BEGIN /etc/grub.d/20_memtest86+ ###
    ### END /etc/grub.d/20_memtest86+ ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows Recovery Environment (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 9278CA2A78CA0CC3
    drivemap -s (hd0) ${root}
    chainloader +1
    }
    menuentry "Windows NT/2000/XP (on /dev/sda3)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 343453D934539D24
    drivemap -s (hd0) ${root}
    chainloader +1
    }
    menuentry "Linux Mint 11 Katya (11) (on /dev/sda5)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos5)'
    search --no-floppy --fs-uuid --set=root 22512e7a-bb8c-49a6-98f2-1b0fd4e10dad
    linux /vmlinuz root=/dev/sda5
    initrd /initrd.img
    }
    menuentry "Linux Mint 11 Katya (11) (on /dev/sda5)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos5)'
    search --no-floppy --fs-uuid --set=root 22512e7a-bb8c-49a6-98f2-1b0fd4e10dad
    linux /vmlinuz root=/dev/sda5
    initrd /initrd.img
    }
    menuentry "Linux Mint 11 Katya (11) (on /dev/sda5)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos5)'
    search --no-floppy --fs-uuid --set=root 22512e7a-bb8c-49a6-98f2-1b0fd4e10dad
    linux /boot/vmlinuz-2.6.38-8-generic root=/dev/sda5
    initrd /boot/initrd.img-2.6.38-8-generic
    }
    menuentry "Linux Mint 11 Katya (11) (on /dev/sda5)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos5)'
    search --no-floppy --fs-uuid --set=root 22512e7a-bb8c-49a6-98f2-1b0fd4e10dad
    linux /vmlinuz root=/dev/sda5
    initrd /initrd.img
    }
    menuentry "Linux Mint 11 Katya (11) (on /dev/sda5)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos5)'
    search --no-floppy --fs-uuid --set=root 22512e7a-bb8c-49a6-98f2-1b0fd4e10dad
    linux /vmlinuz root=/dev/sda5
    initrd /initrd.img
    }
    ### 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 ###
    Last edited by nichos; 08-02-2011 at 12:50 PM.
    Home build, Asus P5K Premium WiFiiFi Intel,
    Intel Core 2 Quad Pro Q6600 2.4GHz, OCZ Cpu Cooler,
    2x2GB, DDR2 800, GeForce 9800 GTX , Excelsior sata 250gb,
    OCZ 600W Psu, X45, XPpro sp3/Ubuntu 8.10

  5. #5
    Linux Newbie nichos's Avatar
    Join Date
    Sep 2006
    Location
    S.Bucks / W.London UK
    Posts
    101
    Thanx Reg...
    Please note my Grub is v. 0.98, NOT V 2.


    I got these:-

    x@ubuntu:~$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
    [sudo] password for x:
    Sorry, try again.
    [sudo] password for x:
    Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 59DAD276B942642B1BBD0EACA8AA1FAA3F055C03
    gpg: requesting key 3F055C03 from hkp server keyserver.ubuntu.com
    gpg: key 3F055C03: public key "Launchpad PPA for Daniel Richter" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
    x@ubuntu:~$

    & found this file "danielrichter2007/grub-customizer" but nothing in the Aplications<system.

    I cannot find the "tools" bit.

    Perhaps I have to install it, how would I do that? ......nick
    Last edited by nichos; 08-02-2011 at 01:32 PM.

  6. #6
    Just Joined!
    Join Date
    Feb 2007
    Location
    Cobleskill, NY
    Posts
    51
    Quote Originally Posted by nichos
    1st menu:-

    "Windows" whitch boots in 30secs.
    "Ubuntu"
    I'm guessing the first menu is the Windows boot.ini menu. What does your boot.ini file look like? It is a hidden file so open Notepad and in the open file dialog type in C:\boot.ini .

  7. #7
    Just Joined!
    Join Date
    Dec 2006
    Posts
    2

    Edit grub.cfg

    "Thanx,
    grub.cfg gives all these below but cannot edit the zero to 1, or did I get the wrong file?."


    Open a terminal and type

    sudo gedit /boot/grub/grub.cfg

    If anything goes wrong, you can rebuild this file by typing

    sudo update-grub

  8. #8
    Linux Newbie nichos's Avatar
    Join Date
    Sep 2006
    Location
    S.Bucks / W.London UK
    Posts
    101
    THIS IS A NOTE FOR ALL :- My GRUB is v. 0.98 Not grb2, do I have to change to grub2?

    Thanx Prof...

    here are both of them :-

    1st)

    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(3)\WINDOW S
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(3)\WINDOWS="Micro soft Windows XP Home Edition" /noexecute=optin /fastdetect
    C:\wubildr.mbr = "Ubuntu"

    2nd)

    GRUB_DEFAULT=0
    GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""



    Thanx Mibho...

    I did that before but what do I do with it ?. see it above in my post #4
    Last edited by nichos; 08-02-2011 at 01:13 PM.
    Home build, Asus P5K Premium WiFiiFi Intel,
    Intel Core 2 Quad Pro Q6600 2.4GHz, OCZ Cpu Cooler,
    2x2GB, DDR2 800, GeForce 9800 GTX , Excelsior sata 250gb,
    OCZ 600W Psu, X45, XPpro sp3/Ubuntu 8.10

  9. #9
    Linux Newbie BoDiddley's Avatar
    Join Date
    Oct 2010
    Location
    Plainfield, New Jersey
    Posts
    132
    Not sure why this sounds so difficult. I am Debian. I simply edited /boot/grub/menu.lst.

    You do not need to reconfigure anything. Just cut and place below the line where menu.lst tells you to. It must be different. I do remember a grub update that I believe I undid because it got complicated. I have GNU Grub Version 0.97

  10. #10
    Linux Newbie nichos's Avatar
    Join Date
    Sep 2006
    Location
    S.Bucks / W.London UK
    Posts
    101
    It is because I am confused, you are Desbian, what am I?, I installed ubuntu 11.04

    Found directory "boot" but it does not have "grub/menu.lst" in it.

    Found file grub on its own, and found menu.lst.save.

    Somebody sugested I download "grub customizer" which I did, but did not appear in Applications, & it seems to be a file that I could not install. When double clicked it gives:-

    " .......deb Index of /danielrichter2007/grub-customizer/ubuntu natty main
    deb-src Index of /danielrichter2007/grub-customizer/ubuntu natty main......"

    What can I do with it, or is it for grub2 only?

    And then somebody said to try these below & edit grub default=0 to another N0. I tried #1, #2,#3, #4 & =saved" but nothing changes. I get the same startmenu with XP priority.

    Can you help in any way?
    Home build, Asus P5K Premium WiFiiFi Intel,
    Intel Core 2 Quad Pro Q6600 2.4GHz, OCZ Cpu Cooler,
    2x2GB, DDR2 800, GeForce 9800 GTX , Excelsior sata 250gb,
    OCZ 600W Psu, X45, XPpro sp3/Ubuntu 8.10

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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