On Fri, 03 Sep 1999, Steve Youngs wrote:
> Richard Adams wrote in another thread:
>
> I wrote in another thread:
> >> Go all out and put _everything_ you can as modules :)
>
> > Thats the best piossable advice, BUT do not put things like ext2
> > filesystem, harddisk drivers in as modules UNLESS you know what you
> > are doing otherwise your kernel WILL not boot, you need to change the
> > way kmod and lilo work to have things like that as modules.
>
> That's very interesting Richard. Suppose you have the following type
> of setup...
>
> IDE hard drives
> Linux on an ext2 filesystem
>
> How would you go about setting both of those as modules and still get
> your computer to boot properly? What would you have to change in lilo
> and kmod?
Well to be honest, i would'nt do it. it can be done but if one follows
advice given in most distribution INSTALL and README's one would
partition ones drive as follows.
The following sizes are {examples}, otherwise i would need to read a
readme to get the exacht sizes,,
/dev/hda1 64mb swap
/dev/hda2 200mb root filesystem
/dev/hda3 1000mb /usr
Now the above is just an example, we could make an extended partition
and then split up our system for /home /usr/local etc etc.
Now when do modules get loaded and how do they work.
modprobe, insmod, depmod an co, live in /sbin which gets loaded after
the root filesystem which needs its IDE/scsi driver to get it to
work, so the problem would arise in this senario that /sbin is not
mounted when kmod needs to be started, it can be started even to
mount /dev/hda2 the root filesystem.
That is the main reason for NOT compiling ext2 and the ide deiver as
a module, if one has a scsi disk used for anything other than
mounting / or /usr then that can be made as a module.
Now contary to everything i have just written, remember i said
under normal curcumstancies dont compile them as modules, there is
however a way of doing it, but like i explanied a while back i lost a
whole ide disk which contained my last 3 years of work, scripts home
made programs, mail archives and personal notes about things like
howto make ext2 and ide as modules, + much more, {yes i know} it was
my own fault i lost the drive and like a true linux user i did not
have and backups, all i could rescue was a few scripts i had
installed on other machines of which i am the system operator.
Having said all that there would not realy be anything to gain by
compiling ide and ex2 as modules as you need them constantly. so
there would be no memory saving etc.
You could try to find the way to do it yourself by looking in
/usr/doc/lilo*/README /usr/doc/modules /usr/doc/HOWTO.mini.Modules
and possably the man pages for conf.modules lilo.conf lilo.
I do remember it means moving one hell of a lot of files and libs
needed by kmod and friends, remember ldconfig has to be run first
before any program can be started properly.
I hope i have explaned this in such a way that it is understandable
to all, as i have seen so many times people trying to make ext2 and
ide as modules.
> --
> ---Regards, Steve Youngs--------Email:-<[EMAIL PROTECTED]>---
> | If Microsoft is the answer, then all I can say is that |
> | you are asking the wrong question. |
> ------------------------------<Don't be a Newbie--Be a Gnu-bie>---
--
Regards Richard
[EMAIL PROTECTED]