Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-19-2008, 03:17 AM
|
#1
|
|
LQ Newbie
Registered: Feb 2008
Posts: 6
Rep:
|
/vmlinuz /initrd.img links
Hi,
Does someone know reasons for the /vmlinuz{,.old} and /initrd.img{,.old} links (pointing to the actual kernel and initrd image under /boot) existence? In Debian there is a configuration file /etc/kernel-img.conf where I can set do_symlinks=no and those links should not be created and updated anymore. Can I safely set this option to "No" and remove those links? Should this prevent the machine to boot/upgrade correctly or interfere with other services of applications?
Thanks
|
|
|
|
02-19-2008, 03:34 AM
|
#2
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Probably used by grub. What's in /boot/grub/menu.lst
|
|
|
|
02-19-2008, 03:49 AM
|
#3
|
|
LQ Newbie
Registered: Feb 2008
Posts: 6
Original Poster
Rep:
|
#########################################################
title Debian GNU/Linux, kernel 2.6.18-4-686
root (hd0,1)
kernel /vmlinuz-2.6.18-4-686 root=/dev/sda3 ro
initrd /initrd.img-2.6.18-4-686
savedefault
#########################################################
Here are the actual kernel and initrd.img versions, and not the links that lack version number in the filename. I think grub takes the path relatively to the /boot directory. Or may be I'm wrong?
Last edited by ninj4fly; 02-19-2008 at 03:51 AM.
|
|
|
|
02-19-2008, 07:31 AM
|
#4
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
Quote:
Originally Posted by ninj4fly
Here are the actual kernel and initrd.img versions, and not the links that lack version number in the filename. I think grub takes the path relatively to the /boot directory. Or may be I'm wrong?
|
The root statement tells grub which partition contains /boot. The paths are relative from there.
I always softlink the kernel and initrd files, so that I can use the shorter names in menu.lst.
eg ln -s vmlinuz<stuff> vmlinuz
then the menu.lst entry will be kernel /path/vmlinuz
|
|
|
|
02-19-2008, 08:33 AM
|
#5
|
|
LQ Newbie
Registered: Feb 2008
Posts: 6
Original Poster
Rep:
|
Thanks for the explanation pixellany. The main question still remains. Is it save to remove /vmlinuz and /initrd.img links and change the /etc/kernel-img.conf file so that they should never be created again on update.
Thanks
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:24 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|