8.1.
|
How to gain root user access without login? |
|
|
8.2.
|
How to modify kernel boot-up arguments, to gain root
user access? |
|
Boot-up computer
If GRUB menu is hidden, press
Esc to enter the GRUB
menu
If GRUB password is set, press
p to unlock the GRUB
menu
Select Ubuntu, kernel
2.6.12-8-386
Press e to edit the commands
before booting
Select kernel
/boot/vmlinuz-2.6.12-8-386 root=/dev/hda2 ro
quiet splash
Press e to edit the selected
command in the boot sequence
-
Add rw init=/bin/bash to
the end of the arguments
grub edit> kernel /boot/vmlinuz-2.6.12-8-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
Press b to boot
|
8.3.
|
How to use a Ubuntu installation CD to gain root user access? |
|
Boot-up computer into
Ubuntu Installation CD
-
At “boot:” prompt, add
“rescue” to the argument
boot: rescue
Follow the instructions on screen
|
8.4.
|
How to change root user/main user password if
forgotten? |
|
|
8.5.
|
How to change GRUB menu password if forgotten? |
|
-
grub
grub> md5crypt
Password: ****** (ubuntu)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst
-
Find this line
...
password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
...
-
Replace with the following line
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
Save the edited file (sample/menu.lst_changegrubpasswordforgotten)
|
8.6.
|
How to restore GRUB menu after Windows
installation? |
|
|
8.7.
|
How to add Windows entry into GRUB menu? |
|
If you need to reinstall GRUB, read How do I check disk space and view the partition table?
Launch
->->
Click on Add.
Choose a name such as "Windows XP" and the OS type is unknown.
Assuming that /dev/hda1 is the location of
Windows partition, choose that from the drop-down list
|
8.8.
|
How to read Linux partitions (ext2, ext3) in
Windows? |
|
|