Booting single user mode-rescue mode- Emergency mode. completely explained.

1) Linux Resuce mode.
Using rescue mode, you can access the files stored on your system’s hard drive, even if you cannot actually run Red Hat Linux from that hard drive.
To boot into rescue mode, you must be able to boot the system using one of the following methods:
*
By booting the system from an installation boot diskette made from the bootdisk.img image. [1]
*
By booting the system from an installation boot CD-ROM. [2]
*
By booting the system from the Red Hat Linux CD-ROM …

Read On »

Repair a Linux File system (ext2 ext3) and FSCK

1) File system must be unmounted, you cannot repair it while it is running. Take system down to runlevel one (make sure you run all command as root user):
# init 1
2)Unmount file system, for example if it is /home (/dev/sda3) file system then type command:
# umount /home
OR
# umount /dev/sda3
3) Now run fsck on the partition:
# fsck /dev/sda3
However be sure to specify the file system type using -t option. Otherwise, Result would be more corruption as fsck by default assumes ext2 …

Read On »

Install Perl Module using Cpan

If you are using Red Hat Linux then use up2date command to install most common modules:
# up2date module-name
Use following command to list all supported modules:
# up2date –showall | grep -i ‘perl’
OR use yum command under CentOS/RHEL 5/Fedora core:
# yum list available ‘perl’
If you are using Debian Linux, try to use apt-get command to install common perl module. However following is the recommended way to install a perl module.
A) Start CPAN Shell:
# perl -MCPAN -e shell
B) Install a perl module:
At cpan> …

Read On »