Thursday, June 15, 2006

Linux ---How to break the grub password?

------------------------------------------------------------------------------------------------
Steps ..............
------------------------------------------------------------------------------------------------
1) Boot up in 'rescue mode' using first installation(with the distribution you use) disk
For this give 'linux rescue' as the boot option instead of entering normal installtion.


2) Give proper answers to the queries asked.

3) Then you will get the rescue mod command prompt,give the command 'chroot /mnt/sysimage' this gives you access to the file system

NB:
chroot changes the root directory to that specified in path.
This directory will be used for path names beginning with /.
The root directory is inherited by all children of the current process.
Only the super-user may change the root directory.
Note that this call does not change the current working directory, so that `.' can be outside the tree rooted at `/'.
In particular, the super-user can escape from a `chroot jail' by doing `mkdir foo; chroot foo; cd ..'.

4)Go to the grub interface configuration file (/boot/grub/grub.conf) and comment out the password command.

Your Grub password is broken!!!!

------------------------------------------------------------------



No comments: