Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
My boot order has automatically changed, before I was booting Windows XP/ Vista as the default OS, now all of the sudden Fedora has become the default OS. So plz ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11

    Changing boot order, and make XP as the default OS

    My boot order has automatically changed, before I was booting Windows XP/ Vista as the default OS, now all of the sudden Fedora has become the default OS. So plz help me change the boot order. These are my grub settings at the moment. Thanksss

    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You have a /boot partition. This means that
    # all kernel and initrd paths are relative to /boot/, eg.
    # root (hd0,2)
    # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
    # initrd /initrd-version.img
    #boot=/dev/sda
    default=0
    timeout=3
    splashimage=(hd0,2)/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.27.19-170.2.35.fc10.i686)
    root (hd0,2)
    kernel /vmlinuz-2.6.27.19-170.2.35.fc10.i686 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.27.19-170.2.35.fc10.i686.img
    title Fedora (2.6.27.5-117.fc10.i686)
    root (hd0,2)
    kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=4200feca-2d99-45d3-a8b3-6acfbc65dae9 rhgb quiet
    initrd /initrd-2.6.27.5-117.fc10.i686.img
    title Windows XP/ Vista
    rootnoverify (hd0,0)
    chainloader +1

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,942
    If you just have Fedora and your xp/vista on the computer and boot with Grub, change this line in the menu.lst file:

    default 0

    to:

    default 2

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11
    Can you please tell me step by step how to do that. I don't even have basic knowledge of Fedora. This is how I was doing, plz correct me if there's a different method to configure this. Applications and then System Tools, Terminal. Then I typed, su. then the paswd, then I typed "sudo gedit /boot/grub/grub.conf" at root.

    Then when I try to change default from 0 to 2 it gives me the following error message:


    ** (gedit:3292): WARNING **: Could not write gedit state file: Failed to create file '/root/.gnome2/gedit-2.GWPKRU': No such file or directory

    I/O error : No such file or directory
    I/O error : No such file or directory


    So for now i've left the boot order as is. Plz help me boot XP/Vista from grub. Thanksss.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Open Terminal and execute this
    Code:
    su -
    nano /boot/grub/grub.conf
    Set default=2. Press Ctrl+X, Y and hit Enter key to save file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Quote Originally Posted by amit_27 View Post
    I typed, su. then the paswd, then I typed "sudo gedit /boot/grub/grub.conf" at root.
    When you type su and give the root password, your prompt changes from '$' to '#'. Have you observed it? We use 'su' to change to root (administrator). No need to use 'sudo' when you are root.

    Once you have done 'su', just try
    Code:
    gedit /boot/grub/grub.conf
    Edit as told and save it. Nano may be little difficult for you.

    If you are wondering why all of a sudden it changed form XP to Fedora, here is the clue.
    Quote Originally Posted by amit_27 View Post
    root (hd0,2)
    kernel /vmlinuz-2.6.27.19-170.2.35.fc10.i686 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.27.19-170.2.35.fc10.i686.img
    title Fedora (2.6.27.5-117.fc10.i686)
    root (hd0,2)
    kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=4200feca-2d99-45d3-a8b3-6acfbc65dae9 rhgb quiet
    initrd /initrd-2.6.27.5-117.fc10.i686.img
    Fedora upgraded itself and in doing so rewrote the grub file. And by default the 'dafault' value is '0'.

    Casper, is it grub.conf in Fedora and not menu.lst? I have always used Debian to boot anything else on my system.
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by saivin
    Casper, is it grub.conf in Fedora and not menu.lst? I have always used Debian to boot anything else on my system.
    Hi !

    RedHat based distros uses grub.conf file only. There is a symlinked menu.lst file too in a few RH based distros though.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11
    Thank you guys!!!! u guys are great. But can i prevent this from happening, so when next time Fedora upgrades itself, it doesn't override my boot order . Thanksss!!!!

  8. #8
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by amit_27 View Post
    Thank you guys!!!! u guys are great. But can i prevent this from happening, so when next time Fedora upgrades itself, it doesn't override my boot order . Thanksss!!!!
    Nope, not that I'm aware of.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    GRUB upgrade will not change boot order.
    You have two kernel versions now. If latest kernel working fine then I would suggest to un-install earlier version.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11
    But Savin who replied on this thread says fedora upgrade caused the grub to be changed.

Page 1 of 2 1 2 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
  •  
...