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 ... -- H CUH Rainer Peter Feller H -- http://linuxfromscratch.org/mailman/listinfo/lfs-chat FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
