Rainer Peter Feller schrieb:
On Fri, 2006-09-08 at 15:10 +0200, Nico Berndt wrote:
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
Ah, your problem actualy is that you don't know how it works :-)
so the best you could probably do is a:
"less /usr/src/linux/Documentation/initrd.txt"
Well, I have been reading and trying things for 2 entire days now and
actually I should have it working, but I don't.
I found that quite helpfull:
http://www-128.ibm.com/developerworks/linux/library/l-initrd.html
So I built the ramdisk and the according entry in /boot/grub/menu.lst as
well as a simple linuxrc under / .
While booting I am told the ramdisk was found and used but when booting
is finished my normal system was booted with hda1 mounted as root.
Actually that shouldn't happen if a linuxrc file is found. Very strange..
but may be you don't want to do that
which bootloader do you want to use? grub?
grub works fine with usb-flashdisks
you don't want to run your system on a flash-disk ... it would not last
long enough ...
That is one of the reasons why I want it to run in ram. The flashdisk
would never be written wgain, only read and that should do no harm.
hm your /boot/grub/menu.lst could look like this:
-----
default 1
timeout 50
title usb-ram-system
kernel (hd0,0)/boot/[your-kernel vga=6 rw \
ramdisk=[size of uncompressed initrd image] prompt_ramdisk=0 \
init=[your init] root=/dev/ram
initrd (hd0,0)/boot/[your initrd.gz]
-----
So I tried your suggestion and still the big system on hda1 is up.
I must have overlooked something essential.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page