Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Unhappy how to break grub password


    I forget my grub password. so that when i want to go into single user mode from the grub stage. but i can't so that i want to brak that password like root password. So that help to break that password, Please.

    Thank you.

  2. #2
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    Boot up from any LiveCD and mount / ( /boot, if you have one ). Open boot/grub/menu.lst ( or grub.conf ) file and put # sign before 'password --md5 <password-hash>' line.
    #password --md5 <password-hash>
    Save file and reboot machine. GRUB wont prompt for password.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3

    Reset GRUB Password

    - Login the system as a root user
    - open the terminal and just type the command grub-md5-crypt
    - After above command it will ask to enter the password, type the password twice.
    - After reset the password it will give a MD5 HASH password which would look like this <$1$qGzS//$7hrAbB24WKdROVdYyUNVM0>
    - now edit the grub file and add the password in grub file (Located at /boot/grub/grub.conf) like below mentioned.

    password --md5 $1$qGzS//$7hrAbB24WKdROVdYyUNVM0

    You are Done!

  4. $spacer_open

Posting Permissions

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