LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-02-2003, 06:44 AM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
simple question


starting to use the 2.4.20 kernel yesterday and want to get rid of everything to do with old kernel to save space....got rid of source and old module directory, when does the actual kernel image stay at?? in /boot there is two files that have a .old extension but they are close to 1mb only....is the kernel that small?? Also, to make a new boot disk in slackware i just choose SYSLINUX option then point it to /boot/vmlinuz correct??? thanks
 
Old 03-02-2003, 06:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah the kernel is tiny... it has to be able to fit on a floppy disk after all.... any other modules compiled outside fo the kernel will be in /lib/modules/2.4.x/ which you can safely remove.
 
Old 03-02-2003, 07:21 AM   #3
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
brian@nixbox:~$ cd /boot
brian@nixbox:/boot$ ls
System.map boot-text.b config@ vmlinuz
System.map-ide-2.4.18 boot.0300 config-ide-2.4.18 vmlinuz-ide-2.4.18
System.old@ boot.b@ map vmlinuz.old@
boot-bmp.b boot_message.txt mbr.b
boot-menu.b chain.b os2_d.b


there is a list of everything in boot, everything is still using the 2.4.18 name, thats probably normal i guess?? so just the vmlinuz.old, and the System.old to go?? -thanks
 
Old 03-02-2003, 08:51 AM   #4
kater
Member
 
Registered: Feb 2003
Location: Switzerland, Berne
Distribution: Slackware 9.0
Posts: 186

Rep: Reputation: 30
I see
All files with an '@' are symbolic filelinks. They point to *.2.4.18. Just remove the symlinks (=@-files) and edit your lilo.conf:

image = /boot/vmlinuz
label = Slackware

image = /boot/vmlinuz.old
label = Old_kernel

So 'Slackware' ist your new kernel and 'Old_kernel' would boot your old kernel.

Don't forget to run 'lilo' after you edited your lilo.conf!
After you assumed that your new kernel works well, you can delete the old kernel and old kernelomdules (here too: don't forget to edit lilo.conf again!).
 
Old 03-02-2003, 11:56 AM   #5
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
my kernel is 573,801. It has not been above 600K for a while.
smaller allows me to put both new and previous on diskette - I only boot from diskette.

small kernel = rebuild kernel with max use of modules and least amount of unneeded options (just say "N")
source = /usr/src/linux or /usr/src/*2.4.20 *
 
Old 03-02-2003, 01:10 PM   #6
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
ok thanks i am just doing this pretty much for learning sake.....i figured everything out but one thing,

System.Old----->System.map-ide-2.4.18------not needed
vmlinuz.old------>vmlinuz-ide-2.4.18------not needed
config-------->config-ide-2.4.18----seems like not need

Where is my current kernel config file at??? the config-ide-2.4.18 is definetly from the old kernel because i even looked to see if some of the new features were in it, they werent....so i dont understand, where is the new kernel config??? -thanks
 
Old 03-02-2003, 01:26 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... how exactly did you install the new kernel? :)
Maybe you created it, but didn't copy it to the right place? :)

Cheers,
Tink
 
Old 03-02-2003, 03:36 PM   #8
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
i used this guide to compile it http://p-two.net/modules.php?op=modl...=article&sid=5
I did everthing step by step except did a 'make oldconfig'. Said no to all the new things except for a module for the TI 83 graphing calculators......i looked in the 2.4.20 kernel source config and it was listed but its not in the /boot config (which still has the old kernels config), the module was made because i can load it. So i guess it really doesn't matter but should i copy it over?? or just leave it alone?? Im sure you can tell this was my first kernel compile so just trying to learn whatever i can from it and keep my system as tidy as possible. -thanks
 
Old 03-02-2003, 03:43 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I have to admit that I never ran "make install"
but rather copied my files manually :}

cp /usr/src/linux/System.map /boot/System.map.<mine>
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz.<mine>

And I never worried where my kernel might end up ;)

Cheers,
Tink
 
Old 03-02-2003, 07:31 PM   #10
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
yea i guess everything is fine, i think when i uncommented the line "export path = /boot" it copies the stuff over. thanks
 
Old 03-02-2003, 08:01 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Cool :)

I do prefer to have a bunch of kernels sitting in
/boot, so I can go back & forth, fool around with
configurations, which is why I don't use install
but rather manually copy my files and
symlink System.map and vmlinuz as required :}

Cheers,
Tink
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
Hopefully a Simple Question Arcane Kidd Linux - Newbie 5 01-17-2003 04:27 PM
Really Simple Question -- Please help! Cia420 Linux - General 3 05-07-2002 06:42 AM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 PM.

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
Open Source Consulting | Domain Registration