LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-22-2006, 04:01 AM   #1
oser
LQ Newbie
 
Registered: Feb 2006
Posts: 15

Rep: Reputation: 0
yet, two more interesting questions!


1. is it possible/feasible to extract a kernel source NOT to a unix parition, say not to /sur/src, but to a win32 partition, say /dev/hda5; and then, change into that directroy and then use "make" plus "output" option to send the compiled file to the unix ext3/ext2 partition?

for example:
the disk geometry goes like:
-------
/dev/hda1 win32 fat32 mounted as win-1
/dev/hda2 linux ext3 mounted as /
/dev/had5 win32 fat 32 mounted as win-2
-----
and the commands are (briefly to decribe such intentions):
------
cp kernel*.tar.gz /win-2
cd /win-2
tar xfvz kernel*.tar.gz
cd /win-2/kerne*
make O=/kernel-new menuconfig
make O=/kernel-new moudules_install install
(perassume that /kernel-new exists)
--------

2. after compiling, how to clean UNWANTED/TEMP files? since usually a newly compiled kernel consumes at least 600mb.
would "make clean" do?
---
any suggestions would be appreciated!!
 
Old 02-22-2006, 05:59 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
Quote:
newly compiled kernel consumes at least 600mb
this is plain wrong, how did you get that?
 
Old 02-22-2006, 10:09 AM   #3
oser
LQ Newbie
 
Registered: Feb 2006
Posts: 15

Original Poster
Rep: Reputation: 0

sorry for the inexactness!
maybe i did't express EXACTLY,i meant: uncompressed source+compiled files, since i changed directly into the directory where the source was uncompressed and then ran the make commands,
hehe, which totally amounts to about 850M if "make oldconfig" was issued. now minus 207mb as the size of the uncompressed source,the difference is about 650m.

while, this time, i streamlined the kernel and redundancy-free kernel size is about 428m, corresponding to my pc specs.
since i've read the readme again, and used make O=/dirname
and after compile i deleted the source completely, leaving only the compiled files which is a little less than 428m. just now i changed into the output directory and deleted temp files of the size of about 120m, so the net output size is about 338m!

and the modules created reside in /lib/modules, which tooks about 100m.
hence: totally, kernel 2.6.14.5 compile would take at least/about 438mb.
-----
so, a nice way should be:
1. extract the source to /usr/src
2. make,.., but put the compiled files in another directory---mine is /core
3. after compile, delete the source and change into the diretory of output files, delete the temp files there.
-----
well, i've corrected my ignorance!
as for the "transplant" compile, i have not tired:

Last edited by oser; 02-22-2006 at 10:19 AM.
 
Old 02-23-2006, 09:06 AM   #4
oser
LQ Newbie
 
Registered: Feb 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Testing results fot the 2nd question:
as for the second one, i'v tried it out correclty!
it's feasible to compile the source at a partition (here mounted as a directory) with ANY file system supported by ext3/ext2 and output the compliled files to an ext3/ext2 partition.
------
with this it's possible for users with dual/multi boots and with win32-preference to use limited amount of space allocated to linux to compile a kernel without fear of "free space panic"!
 
Old 02-23-2006, 10:06 AM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Code:
du -hs /usr/src/linux-2.6.15-gentoo/
330M    /usr/src/linux-2.6.15-gentoo/
this is one kernel-source which has been compiled and not cleaned afterwards
Code:
du -hs /usr/src/
578M    /usr/src/
this is my whole /usr/src which has 2 kernel sources in it - the one above and one just unpacked and not yet compiled
You probably also have 2 source trees there and not just one...
 
Old 02-23-2006, 12:40 PM   #6
markelo
Member
 
Registered: Mar 2004
Distribution: Red hat 9 -> 64bit fedora
Posts: 190

Rep: Reputation: 30
well...My 64-bit 2.6.15 kernel source takes 340 mbytes and that is source only.
 
Old 02-23-2006, 10:55 PM   #7
oser
LQ Newbie
 
Registered: Feb 2006
Posts: 15

Original Poster
Rep: Reputation: 0
i was confused!
--
this is my whole /usr/src which has 2 kernel sources in it - the one above and one just unpacked and not yet compiled
You probably also have 2 source trees there and not just one...
--
Jomen has a gentoo!
and i've fc 4 /32bit, while Markelo has a 64-bits.
their sizes vary and i have indeed just one kernel in /usr/src


thanks for your concern
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
interesting? oobe Linux - General 1 04-08-2004 09:40 PM
This is interesting...... radix Slackware 4 09-05-2003 08:58 PM
I think it maybe interesting :) nautilus_1987 General 7 09-29-2002 12:21 PM
Interesting mikeyt_3333 Linux - Security 3 11-08-2001 01:44 PM
Interesting thing! nabil Linux - Security 4 06-01-2001 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:50 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