Rainer Peter Feller schrieb:
On Mon, 2006-09-11 at 15:36 +0200, Nico Berndt wrote:
Rainer Peter Feller schrieb:
On Fri, 2006-09-08 at 15:10 +0200, Nico Berndt wrote:
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.
*sigh*
do you have the corect root=/dev/ram ?
if not (theheh) /linuxrc will be executed and after linuxrc is finished
your root (hda1) will get mounted /dev/ram will pivot_root
with /dev/hda1 then /sbin/init will be executed ...
what tells "rdev [your kernel]? may be this gives a hint ...
Finally solved it!
I had everything correct, also understood, BUT (shame on me..) I was so
sure I had ramdisk support in my kernel, since I BUILT it for that that
I didn't check again. Also upon booting the kernel told me about seeing
a ramdisk in the first place, so I had no reason to check that again.
Well, finally I did, because it slowly became obvious that everything
else is just fine and bingo!
So thanks for all the hints and patience!
Best regards,
../nico
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page