Thursday, January 12, 2012

while I start the Linux system, Everyting Booting perfectly. All the Service and Run level script, But for the login session, it is not giving any Login window, it just show the blue screen for long time. While I check the Log LOG MESSAGE /var/log/message Sep 5 12:23:37 Hostname smartd[3407]: Device: /dev/sdb, 14 Currently unreadable (pending) sectors Sep 5 12:23:37 Hostname smartd[3407]: Device: /dev/sdb, 16 Offline uncorrectable sectors About Smartd - Self Monitoring Analysics and Reporting Technlology Daemon. 1)used for checking IDE, SATA Hard Drivers. 2)Monitoring Reliability of the hard drive and Predict Drive failures. SOLUTIION Disable the smartd service. Login into the single usermod then disable that service #chkconfig smartd off Then try it. It will work perfectly. Note: if you still face any issue. Boot directly into run level 3 then try startX command. Booting Problem in /dev/sda /dev/sdb Pending Sector - Offline uncorrectable sectors.

make menuconfig Features
1)configure the Linux kernel Source Code,
2)Allow to choose the Feature of the Linux kernel.
3)make menuconfig target in the Linux kernel makefile.
4)it is Located under /usr/src/kernel/'uname -r'
Example Path : /usr/src/kernels/2.6.18-238.el5-x86_64
Under these path we have to enter the following command.
#make menuconfig
It will open the window here we can configure kernel Features.
Dependencies are 
a)Linux Kernel Source
b)Make tool
3)C compiler
4)ncurses - n curses Library


How To Upgrade New Kernel.
1) Download Kernel form the kernel.org, which one we need to install.
2) Extract .tgz into Kernel Source Directory /usr/src/kernels.
Ex tar kernel.tar.gz -C /usr/src/kernel
3) cd /usr/src/kernel/Kernel_Path_Name/
#make menuconfig -> choose the Features Depends on Requirement
#make Command Build the Kernel Module.
4)Build vmlinuz Package
#make bzImage -- it will Build the vmlinuz Package.
Root device is (3, 1)
Setup is 12760 bytes (padded to 12800 bytes).
System is 1995 kB
CRC accf1f38
Kernel: arch/x86/boot/bzImage is ready  (#55)
Output Kernel File is
/usr/src/kernels/linux-2.6.30.4/arch/i386/boot/bzImage
4.1)Copy the bzimage into /boot directory in name of vmlinux-Kernel_version
#cp /usr/src/kernels/linux-2.6.30.4/arch/i386/boot/bzImage /boot/vmlinuz-2.6.30.4
5) create initrd image using mkinitrd Command.
#make modules_install
#mkinitrd  /boot/initrd-Kernel_version.img  Kernel_version
If we are not making modules_intall then we will get the following Error Message.
# mkinitrd  /boot/initrd-2.6.30.4.img  2.6.30.4
/lib/modules/2.6.30.4 is not a directory.
6) Edit the grub.conf file with New Kernel and initrd image.
Then reboot the system from the New Updated Kernel.

0 comments:

Flag counter

free counters