Nico Berndt schrieb:
Rainer Peter Feller schrieb:
On Thu, 2006-09-07 at 15:10 +0200, Nico Berndt wrote:
Nico Berndt schrieb:
Hi again!
So I got down with it and the system is down to 50 mb already still
shrinking.. Once I have a replacement for vim it will be good.
I don't need it to be awfully small, but I will target around 20 mb
maybe, vim takes around 30!
Now the next big question arises: How can I make it load into ram
entirely, so I can put the system on a flashdisk?
Any nice hints anybody?
Regards,
../nico
Hi,
how about busybox ... it includes almost everything a basic system
needs, also a vi, staticly linked about 1.3MB (glibc-3.6).
To make it work from ram just use an initrd.
Make a out of /dev/zero file of desired size, put a filesystem on it,
mount it loopback, copy your darn smal system [DSS] to it, unmount it,
gzip it and load it as initrd with your kernel ...
No need actually for busybox, since flash-disks are big nowadays and the
system has 1 GB RAM, anyway. Still it might be fun trying it..
So I created the ramdisk and filled it, I just couldn't figure out yet,
how to load it. I need to mount /dev quite early and I need a linuxrc,
so far i figured things out but now I'll call it a day..
Greetings,
../nico
Me again,
Argh, I don't get it together!
- I don't have enough understanding of the booting process to understand
how I tell the system to uncompress the ramdisk and mount its content
into RAM as the /root filesystem.
I understand linuxrc should contain all the needed commands but I don't
know what steps exactly have to be done.
Also I don't understand what my /etc/fstab should look like.
Is there anything else I forgot? Once /root is mounted it should not
matter, if the system runs on a harddisk or in RAM, right?
Maybe someone can point out these things for me?
Best regards,
../nico
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page