Three ways:
1. Go to the single user status in the system, change directly with Passwd root
2. Use the installation CD boot system to carry out the Linux Rescue state, the original / partition mount, the data is as follows:
CD / MNT
Mkdir HD
Mount -T Auto / DEV / HDAX (partition number where the original / partition is located) HD
CD HD
Chroot ./
Passwd root
This can be done
3. Take the hard disk of this unit and hang it on other Linux systems. The way is used as the second
RH8
One. LILO
1. Type Linux Single when LILO: Tips
Screen display LILO: Linux Single
2. Enter to enter the Linux command line directly
3. #vi / etc / shadow
Put the first line, that is, ROOT: and next: The previous content is removed,
The first line will be similar to
root :: ......
6/31
save
4. #Reboot restart, the root password is empty
Two. GRUB
1. When the GRUB screen appears, use the upper and lower keys to select the one you usually start (Don't choose DOS 哟), then press the E key.
2. Use the up and down button to select the one you usually start in LINUX (similar to kernel /boot/vmlinuz-2.4.18-14 ro
Root = label = /), then press E key
3. Modify the command line you see now, join Single, as follows:
Kernel /Boot/vmlinuz-2.4.18-14 Single Ro root = label = /
4. Enter back, then press B to start, you can directly enter the Linux command line
5. #vi / etc / shadow
Put the first line, that is, ROOT: and next: The previous content is removed,
The first line will be similar to
root :: ......
save
6. #Reboot restart, the root password is empty