Quantcast
Channel: Any Look Up
Viewing all articles
Browse latest Browse all 10

HowTo: Recover Linux Grub Boot Loader Password

$
0
0

when you have, a security password protected grub boot loader and you also forgot equally root and also grub security password, then it is possible to recover grub-boot loader password while using the following method/procedure:

* Utilize Knoppix compact disk
* Eliminate the password coming from Grub setting file
* Reboot the device
* Change the basis password
* Create new Grub security password if necessary (recommended)
Knoppix Stay cd

The ultimate way to recovering (or perhaps reset) any password (also to solve a great many other problem) will be use Knoppix Stay CD. Initial downloaded knoppix and also burn that on COMPACT DISK. Put COMPACT DISK into CD/DVD rom and boot the device. You must boot system in to a single consumer mode, with boot: fast type linux individual:
boot: linux individual
knoppix shoe single consumer mode HowTo: Recouping Linux Grub Shoe Loader PasswordFig. 01 knoppix doing his thing

Mount Partition

You should mount any partition in which you grub setting file will be stored. Rely upon your Linux distribution the positioning of Grub setting file adjustments. Following record summaries Grub setting file place for pouplar distros:

Debian Linux Grub setting file place: /boot/grub/menu. lst
Suse Linux Grub setting file place: /etc/grub. conf
Reddish Hat/Fedora Linux Grub setting file place: /boot/grub/grub. conf

In the event you forgot partition name utilize the fdisk -l control to received partition record / brands:
# fdisk -l
fdisk partition record HowTo: Recouping Linux Grub Shoe Loader PasswordFig. 02: The fdisk control displaying the existing partition record

Finally, you should mount the partition as follows:
# support /dev/sdb1 /mnt
Eliminate the Grub Security password

a) If you use Debian Linux you should modify /boot/grub/menu. lst record:
# compact disk /mnt/boot/grub
# vi menu. lst

b) If you use Suse Linux you should modify /etc/grub. conf record
# compact disk /mnt/etc
# vi grub. conf

If you use Red Head wear / Fedora Linux you should modify /boot/grub/grub. conf record
# compact disk /mnt/boot/grub
# vi grub. conf
Once record opened employing a text manager, locate security password line and eliminate it:
password –md5 $1$9sdflksdf/sdf44k
vi grub food selection conf HowTo: Recouping Linux Grub Shoe Loader PasswordFig. 03: Removing The particular Grub Security password Line

Help save and shut the record. Reboot the device.
# connect; sync
# compact disk /
# umount /mnt
# system
Change Main password

Now the Grub security password is taken from the method. You must login for the system without the password. To bring back root consumer password shoe system in to a single consumer mode.

1) With Grub fast press ‘e’ to be able to edit control before booting.

a couple of) Pick second series

3) Once more, press ‘e’ to be able to edit picked command

4) Type these line
init=/bin/sh
OR PERHAPS
init=/bin/bash
grub shoe press t HowTo: Recouping Linux Grub Shoe Loader PasswordFig. 2008: Booting in to a single consumer mode making use of Grub

4) Media ‘b’ on top of that system.

5) Now you might be at covering prompt. Just modify root password with all the passwd control:
# passwd
Please remember that depend after your Linux distribution you may have to remount main partition inside read/write function before running the aforementioned command.

other
click here
click here
clicky
other
other
other
friendly link
friendly link
read more
read more
friendly link
clicky
click here
friendly link


Viewing all articles
Browse latest Browse all 10

Trending Articles