LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-19-2008, 03:17 AM   #1
ninj4fly
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
/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
 
Old 02-19-2008, 03:34 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Probably used by grub. What's in /boot/grub/menu.lst
 
Old 02-19-2008, 03:49 AM   #3
ninj4fly
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Original Poster
Rep: Reputation: 0
#########################################################
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.
 
Old 02-19-2008, 07:31 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by ninj4fly View Post
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
 
Old 02-19-2008, 08:33 AM   #5
ninj4fly
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 12:09 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
Is it possible to update the pxe network install initrd.img and vmlinuz ? lets-eat-gary Fedora 1 08-22-2006 04:54 AM
How to update the pxe network install initrd.img and vmlinuz ? lets-eat-gary Linux - Networking 3 08-20-2006 03:45 PM
how to encrypt initrd.img and decrypt in vmlinuz. AshesOfTime Programming 1 12-09-2004 03:48 PM


All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration