Two common startup failure resolution methods for Linux operation

  

This article proposes two solutions for two common startup problems: Lilo failure and forgetting the root password:
Lilo failure has five reference methods:
1. Have a boot floppy, use it to start, run lilo, restart.
2, red through: through the installation CD to guide the system. After the installation wizard starts, we can slide to another console (press Ctrl Alt F2) and you will see bash#. If your Linux/partition is for /dev/hda3, the filesystem used is ext2.
Note: The starting line is the comment line mount -t ext2 /dev/hda3 /tmp
#(The user of the reiser file system uses reiserfs instead of ext2)
chroot /tmp /sbin/lilo< Br> If you have forgotten the root password, you can use passwd to modify it, remove the CD, and boot it with the hard disk.
3, red through: use Windows boot floppy boot into DOS, assuming the optical drive is g:, Linux is installed in /dev/hda3, put the Linux installation CD into the CD-ROM drive, run the following three commands at the DOS prompt: g: cd\\dosutils\\autoboot ..\\loadlin vmlinuz root=/dev/hda3 1 or ..\\loadlin vmlinuz root=/dev/hda3 single or ..\\loadlin vmlinuz root=/dev/hda3 init=/bin/sh Rw
After booting Linux, at the # prompt, run /sbin/lilo
If you forget the root password at the same time, you can use passwd to modify it at the # prompt and then restart.
4, Red's subsidiary: reinstall with upgrade method, pay attention to what package is not selected, after running the installation program, you can repair Lilo
5, Red hat 7.1 pass: reload (but what package also If you don't choose, you can't choose to format the Linux partition, and then reconfigure Lilo. If you forget the root password at the same time, please remember the password you entered during reinstallation.
Forgot the root password solution:
If you forgot the root password, please reboot, at Lilo, when boot::
Run linux 1 (or linux = single or linux init=/bin/Sh rw) Enter single-user mode, display bash#, then run passwd to change the password, then exit, enter login:, enter root, password to enter new password, everything is OK! Password cracking can also refer to the above methods 2, 3, 5 (if Lilo is normal, you do not have to run lilo)
Attachment: After installing Linux, if you can not start DOS, Windows (assuming installed in /dev/hda1), please enter Linux After that, modify the /etc/lilo.conf file, plus:
other=/dev/hda1 label=dos
Save and exit, execute the lilo command, he will add the dos option to lilo.



Copyright © Windows knowledge All Rights Reserved