Archive for the ‘Troubleshoot’ Category

Troubleshooting

September 10, 2008

1. Get password to enter kernel

Ø Insert the 1st CD of Linux

Ø Boot: linux rescue [Enter]

Ø Language: English [Enter]

Ø Keyboard: US [Enter]

Ø Yes/No [Enter]

Ø Continue [Enter]

Ø Ok [Enter]

Ø chroot /mnt/sysimage à to work in root user.

ü [#] vi /etc/grub.conf
password = 1234 à write this line below or upper of hide menu line

2. Get root password

ü Insert CD and take the above steps.

ü [#] vi /etc/passwd
delete password [:x: à ::]
root: x: 0:0: root: /root/bin/bash

ü Reboot the machine and login without root password and then write

ü [#] passwd à and change the root password.

Or

ü Reboot the server by Alt+ctrl+del

ü When booting option come select Linux à press e for edit run level à select Kernel (2nd option) à e à give a space and write 1 (run level) or single or single b or single boot (single user mode to change password) à Enter à b

ü After login write Passwd and give a new password root

3. Recover Linux boot loader.

ü Insert CD and take the above steps.

ü [#] fdisk –l à See the hard disk is hda or hdb

ü [#] grub-install /dev/hdc

ü [#] reboot

4. Reboot the machine during startup

ü [#] vi /etc/rc.local à This file execute during startup a machine
erase reboot or give hash before reboot to inactive the command.

ü [#] reboot


Or

ü Reboot the server by Alt+ctrl+del

ü When booting option come select Linux à press e for edit run level à select Kernel (2nd option) à e à give a space and write 1 (run level) or single or single b or single boot (single user mode to change password) à Enter à b

ü After login write vi /etc/inittab and change the run level form 0 or 6 to 3

5. Retrieve file and data loss due to power loss before save the file.

ü During editing a file if the power goes down before save it the file will save as .abc.swp format where abc is the original file name.

ü [#] vi -r abc à To recover the file and it’s data

ü [#] rm .abc.swp à Delete the .swp file that created for power loss.


6. dsafda