Saturday 27 April 2013

kernel panic-occuring from updating SL6.3 to 6.4

  I have went through a kernel panic after updating SL 6.3 to 6.4
  The screen is frozen by displaying:
  kernel panic - not syncing :VFS unable to mount root fs on unknown -block(0,0)


  The way to solve this problem is to reinstall the kernels. However, at this stage, all of the available kernel has been out. how to reinstall then?
  We can use "rescue mode" provided by installation disk.
1. insert the installation disk, select rescue mode.
2. since the kernel has to be downloaded from repo, it is necessary to make internet work. choose dhcp on if your hub supports dhcp.
3. after boot, the file will be mounted at "/mnt/sysimage" to get the root right of the installed system, type
    chroot /mnt/sysimage

chroot is a command that gains the root privilage at the given folder.
we use this method to install gentoo as well.

then we can use the command installed in the harddisk (if we do not do that, we even do not have yum)
4. it is found that dhcp didn't automatically generate dns server. to edit this type
    # vi  /etc/resolv.conf
then add (only for uq machine)
"

domain eait.uq.edu.au
search eait.uq.edu.au
nameserver 130.102.79.50
nameserver 130.102.79.51

"
5. now we can download files from repo. type:

#  yum reinstall kernel-2.6.32-358.6.1.el6.x86_64

and we are ready to go!!!!!