Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

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

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.

  • 2
2 Solutions
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.

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now