how to change the boot order in grub file without login to the linux

Posted on 2011-04-27
Last Modified: 2012-05-11
hi there,

One of my colleagues installed Ubuntu on one of the work laptops. it is dual boot with XP. the problem is that linux is at the prefer OS in the GRUB menu. Since he left the company i need to change the grub menu so that XP will be the prefer OS. He forgot the root password so that i can't log in to the linux and change the GRUB file.

Is there a way to modify Grub without logging in to the linux. I know it sounds silly but if i know the root password i know how to change the GRUB file. since i didn't the root password. i am pretty helpless.

Any Help will be appreciated.

Question by:koala-london
    LVL 12

    Accepted Solution

    Boot your Linux in Single User Mode and execute the passwd command, It will reset the root password.

    One Important thing in Ubuntu by default we can not login with root, we need to use sudo previleges to execute admin commands, so If you know the password for the other user which you configured then login with that user and modify the grub.conf, else choose the first option.

    Update if you require further help.
    LVL 12

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now