We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

How do I (re)move Ubuntu Memtest?

Options
D.K.
D.K. Posts: 596 Forumite
I have Ubuntu as a dual boot and Windows (used to) boot by default.
I'm not too sure what I've done but I now have Memtest booting up. Could some kind person please advise me on how to remove Memtest or change the boot up order.

Thanks,

D.
«1

Comments

  • fwor
    fwor Posts: 6,862 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Assuming you're using the GRUB boot loader, all you need to do is to edit the file /boot/grub/menu.lst, as root.

    In a terminal window type:

    sudo gedit /boot/grub/menu.lst

    Look for the "Default 0" or similar statement. The number in that statement corresponds to the entry number in the kernel list at the bottom of the file that you want to run by default, starting from zero and incrementing as you go down the list.
  • mdbarber
    mdbarber Posts: 1,116 Forumite
    haven't left the disk in the drive have you?
    click here to achieve nothing!
  • D.K.
    D.K. Posts: 596 Forumite
    Thanks mdbarber but I have a dual boot...1 boot wasn't enough!

    Thank you fwor also. What you say sounds familiar, I'll give it a go later.

    Cheers!
  • Linbox
    Linbox Posts: 383 Forumite
    You need to edit the file /boot/grub/menu.lst, as root.
    In a terminal window type:

    sudo gedit /boot/grub/menu.lst

    Cut and paste to move the required boot option to the top of the list.
    Dont forget to save
  • D.K.
    D.K. Posts: 596 Forumite
    Hi Linbox,

    I think I followed your instructions OK...memtest is now up the list. Windows is at the bottom so it should boot by default, well it used to but even though it still is at the bottom Ubuntu now boots by default.(2nd from the bottom)
    Do you know of a way I can get good old Windows to boot first again?

    Many thanks,
    D.
  • wolfman
    wolfman Posts: 3,225 Forumite
    Another way to save faffing around with menu.lst, is to use SuperGrub.

    http://www.supergrubdisk.org/
    (Download the CDROM version using the links on the right)

    It'll re-build your grub options. I use it whenever I've reinstalled windows and its killed grub. Very handy. Easy to use too.
    "Boonowa tweepi, ha, ha."
  • fwor
    fwor Posts: 6,862 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    D.K. wrote: »
    Windows is at the bottom so it should boot by default, well it used to but even though it still is at the bottom Ubuntu now boots by default.(2nd from the bottom)

    GRUB starts counting from the TOP of the list of OS's. If you have no DEFAULT statement (usually near the top of menu.lst) then it should start the one at the top of the list.

    If you have a DEFAULT statement then the number following it should correspond to the entry number in the list, and the numbering starts from zero (i.e. count down the list the number of times it says TITLE to the one you want to start and subtract one from that number).

    Wolfman - good suggestion. Just downloading it now to give it a try...
  • D.K.
    D.K. Posts: 596 Forumite
    Sorry, I didn't know you had replied...I didn't get e-mailed.

    fwor, I do have default but don't see any numbers?

    Wolfman I think your suggestion might be better. I'm obviously not a good faffer When I click on the CDROM which options should I use?
    Download CDROM Mirror #0
    Download CDROM Mirror #1
    Download CDROM Mirror #2

    How do I burn Super Grub Disk Cdrom
    How do I boot Super Grub Disk Cdrom

    thanks again for your help,
    D.
  • fwor
    fwor Posts: 6,862 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Supergrubdisk looks quite good, but it's more complicated than you need just to change the default OS - you just need to change or add one number to the file.

    Here's an example - note that every line that starts with a hash symbol is a comment and is ignored by GRUB.

    The "default 4" points to the fifth item in the kernels list which in this case is Windows XP.

    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.

    default 4

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10

    <snipped for brevity>

    ## ## End Default Options ##

    title Ubuntu 8.04, kernel 2.6.24-19-generic
    root (hd0,0)
    kernel /vmlinuz-2.6.24-19-generic root=UUID=9e4dc9ad-6f70-4c5b-a312-68a95aa07180 ro quiet splash
    initrd /initrd.img-2.6.24-19-generic
    quiet

    title Ubuntu 8.04, kernel 2.6.24-19-generic (recovery mode)
    root (hd0,0)
    kernel /vmlinuz-2.6.24-19-generic root=UUID=9e4dc9ad-6f70-4c5b-a312-68a95aa07180 ro single
    initrd /initrd.img-2.6.24-19-generic

    title Ubuntu 8.04, memtest86+
    root (hd0,0)
    kernel /memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.

    title Other operating systems:
    root

    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sdb1

    title Windows NT/2000/XP (loader)
    root (hd1,0)
    savedefault
    makeactive
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1
  • wolfman
    wolfman Posts: 3,225 Forumite
    Hmmm I get your point, but asking the average person to edit a system file is harder. What's a kernel list, where does it start, is their's differently setup etc... If they're willing to learn about Linux, not such a problem, but if they just want to get it fixed, then it's harder.

    You can go here:
    http://forjamari.linex.org/frs/?group_id=61&release_id=620#620

    And download: super_grub_disk_0.9726.iso

    If you're running Ubuntu 8.04 Hardy. To burn the iso file:

    Along your menu bar, go to Applications > Sound And Video > Brasero

    Using Brasero you can burn CD's / DVD's etc... You want to select the "Burn An Image" option and browse to where you downloaded the iso file.

    Once done, you need to pop the CD in the drive, and boot from it. I'll download it too, just so I can run through it (as I've got an older version) in case you need help with the steps. It should be quite straight forward though, it typically highlights/selects the right option for you.
    "Boonowa tweepi, ha, ha."
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.9K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.9K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.9K Life & Family
  • 257.2K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.