Find the answer to your Linux question:
Results 1 to 7 of 7
Hey I have a dual boot system and I have made fedora the default choice for the OS to be loaded during time of installation.Now how can I edit the ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Location
    India
    Posts
    24

    [SOLVED] Configuring The Grub Loader

    Hey I have a dual boot system and I have made fedora the default choice for the OS to be loaded during time of installation.Now how can I edit the Grub loader to make Windows the default OS.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Change the default line in your /boot/grub/grub.conf file so that the entry equals the Windows entry in the operating systems list:

    Code:
    default 0
    ...changing the 0 to a 1, 2, or whatever number equals Windows in the list.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Location
    India
    Posts
    24
    Quote Originally Posted by ozar View Post
    Change the default line in your /boot/grub/grub.conf file so that the entry equals the Windows entry in the operating systems list:

    Code:
    default 0
    ...changing the 0 to a 1, 2, or whatever number equals Windows in the list.
    Here is the output when i run less grub.conf
    ------------------------------------------------------------------------------------------------------------
    boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,4)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.27.25-170.2.72.fc10.i686)
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.27.25-170.2.72.fc10.i686 ro root=UUID=6184342e-
    fd24-45d7-abe0-cad05037c562 rhgb quiet
    initrd /boot/initrd-2.6.27.25-170.2.72.fc10.i686.img
    title Fedora (2.6.27.5-117.fc10.i686)
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=6184342e-fd24-4
    5d7-abe0-cad05037c562 rhgb quiet
    initrd /boot/initrd-2.6.27.5-117.fc10.i686.img
    title windows
    rootnoverify (hd0,0)
    chainloader +1
    -----------------------------------------------------------------------------------------------------
    Could you tell me how to edit it from the terminal.

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Quote Originally Posted by fob500 View Post
    Could you tell me how to edit it from the terminal.
    Go to a terminal and issue these commands:

    Code:
    su -
    nano /boot/grub/grub.conf
    ...edit file as desired, then reboot. The first title entry is 0, the second is 1, and so on.

    You might want to make a back of the file first, just in case you should make any errors.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Just Joined!
    Join Date
    Jul 2009
    Location
    India
    Posts
    24
    Ok that is helpful.but you are asking me to make default = 1 ,2 and so on for windows.Is there no way by reading the grub.conf file to find out what is the number desired ??
    I have posted the contents of grub.conf file in the earlier post but i cant find what number is associated with windows.
    As it is zero now so if I simply make it one would it work.

  6. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Quote Originally Posted by fob500 View Post
    I have posted the contents of grub.conf file in the earlier post but i cant find what number is associated with windows.
    I think making it default 2 should work for booting Windows as the default OS.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  7. #7
    Just Joined!
    Join Date
    Jul 2009
    Location
    India
    Posts
    24
    Thanks that was helpfull

Posting Permissions

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