Results 1 to 5 of 5

Thread: editing the master boot record

  1. #1
    Join Date
    Oct 2008
    Beans
    47

    editing the master boot record

    hi,

    i am using a dual-boot desktop that can either boot into windows xp or ubuntu hardy. usually, when the computer is booted up, the OS-selection screen comes up, and the default option is win xp, such that if i do not make any manual selection, win xp is automatically booted.

    however, after doing some software updates in ubuntu some days back, many more options have appeared (i learnt from some other threads that these are various kernels that were installed by the updates), and the default selection has now been changed to a 'recovery mode' of one of these kernels. this makes things quite inconvenient as i have to manually make a selection for either win xp or ubuntu at each start-up.

    i was told the master boot record is what i should edit to change the boot OS priority. can someone pls show me how to edit it? i would like to choose win xp as the default option. thanks!

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: editing the master boot record

    Quote Originally Posted by ubun_tut View Post
    hi,

    i am using a dual-boot desktop that can either boot into windows xp or ubuntu hardy. usually, when the computer is booted up, the OS-selection screen comes up, and the default option is win xp, such that if i do not make any manual selection, win xp is automatically booted.

    however, after doing some software updates in ubuntu some days back, many more options have appeared (i learnt from some other threads that these are various kernels that were installed by the updates), and the default selection has now been changed to a 'recovery mode' of one of these kernels. this makes things quite inconvenient as i have to manually make a selection for either win xp or ubuntu at each start-up.

    i was told the master boot record is what i should edit to change the boot OS priority. can someone pls show me how to edit it? i would like to choose win xp as the default option. thanks!
    /etc/default/grub is what you'll want to edit, there you can change the default number to what you want, remember it starts at 0

    In synaptic you can also remove old kernels. I often keep an extra one just in case the most recent doesn't boot. just search for linux-image or something like that (i usually just type "image") and remove/uninstall the older versions.
    That will shorten up your boot list

  3. #3
    Join Date
    Mar 2006
    Beans
    18

    Re: editing the master boot record

    There may be a solution in these websites? http://www.google.com/cse?cx=partner...d+ubuntu&hl=en

  4. #4
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: editing the master boot record

    Lightstar is correct. I just want to add that you should not attempt to edit the Master Boot Record (MBR)! That's the first sector of your hard disk, and it contains two things: stage 0 of the boot loader and the partition table. When using GRUB or GRUB 2, the boot loader's stage 0 does not control which of the options you see is the default, and of course you don't want to mess with the partition table. The MBR is encoded in binary, so editing it directly would require a binary editor. Going down that path is likely to get you into trouble, and quickly! Don't attempt it unless you're an expert. Whoever suggested you edit the MBR is one of four things: writing for experts, maliciously trying to get you into trouble, completely misinformed, or completely misunderstood your simple question. Any of those possibilities means you should probably ignore advice from this source.

  5. #5
    Join Date
    Oct 2008
    Beans
    47

    Re: editing the master boot record

    i managed to uninstall the older kernels through the synaptic manager, and edited the boot OS priority in /boot/grub/menu.lst.

    thanks for all your help!

Bookmarks

Posting Permissions

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