Fixing initrd.img and vmlinuz symbolic links after R1 > R2 upgrade
After recently performing the R1 > R2 upgrade process I noticed that the symbolic links to the kernel for initrd.img and vmlinuz are not updated and will still point to the older 2.6.39.4 kernel. This is not a show stopping issue, however it does mean that certain scripts that update boot related actions will automatically go for the older kernel rather than the new kernel which can be a tad annoying. The fix is to remove and recreate the symbolic links manually:
1. cd onto the root of your filesystem:
Use ls -l to confirm you are on the root of the filesystem. You will see folders like /etc /home /usr etc. All were interested in is the initrd.img and vmlinuz symbolic links which are signified with an -> symbol. These two files are pointing to the boot initrd and vmlinuz files. They will look like this at this point from a R1 > R2 upgrade:
Quote:
initrd.img -> boot/initrd.img-2.6.39.4
vmlinuz -> boot/vmlinuz-2.6.39.4
These need to be updated to default to the new kernel.
2. Remove the symbolic links with rm:
Code:
rm initrd.img && rm vmlinuz
3. Recreate the symbolic links with the following commands:
Code:
ln -s boot/initrd.img-3.2.6 initrd.img
ln -s boot/vmlinuz-3.2.6 vmlinuz
4. Re run ls -l to confirm the symbolic links were correctly created. They should now look like this:
Quote:
initrd.img -> boot/initrd.img-3.2.6
vmlinuz -> boot/vmlinuz-3.2.6
Now the symbolic links point to the newer kernel and running scripts like: update-initramfs -u will automatically select the latest kernel.
Note: This change does not affect the use of the older kernel. Providing you leave the older kernel packages alone you will still be able to boot it with no problem.
Re: Fixing initrd.img and vmlinuz symbolic links after R1 > R2 upgrade
Thank you very much Its Work
Solved the problem I was having them since 3 days
شكراً :)
Re: Fixing initrd.img and vmlinuz symbolic links after R1 > R2 upgrade
Re: Fixing initrd.img and vmlinuz symbolic links after R1 > R2 upgrade
thanks a lot, I'm fix this problem. Good job