changed to title the appropriate.<br><br><b><i>Daniel Foote <freefoote@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> > I have 2 storage boxes here, one has 15 250GB drives in a RAID-6 and one has 4 200GB in a RAID-5. I<br>> used to have 2 complete copies of the nfs-root and mount them separately. Now I use a single<br>> initramfs and a very early script in rcS.d that sets whatever parameters are different between the 2<br>> boxes based on eth0 mac address (mainly hostname actually).<br><br>In the case of my two boxes, I was running X on them. Naturally, one<br>has a built in Intel chipset, and the other a Savage. Two additional<br>lines to /etc/init.d/gdm, and I get a different xorg config per MAC<br>address:<br><br>MACADDR=`ifconfig | grep HWaddr | awk '{print $5}'`<br>export XORGCONFIG="xorg.$MACADDR.conf"<br><br>Users are served up by NIS from my fileserver, as
 are the home directories.<br><br>> The kernel is non-modular and I have the drivers for both boxes built in, so PXE loads the one<br>> kernel then loads the initramfs and away they go.<br><br>I used the Shipped Debian Kernel and corresponding initrd, rather than<br>compile my own. You have to have the initrd to be able to mount the<br>NFS root, as it's not built in the default Debian kernel. I chose to<br>do it this way because I wanted easy upgrades to the kernel in the<br>future.<br><br>> > I was also a few weeks ago trying to netboot an ancient 386 just for<br>> > kicks, and was thinking of using a very small initrd for it's root. So<br>> > far, I've made the machine boot a kernel, but that's about it. I have<br>> > two things working against me: the machine has 8MB of RAM, and Debian<br>> > is compiled for 486 or better machines these days... resulting in code<br>> > that won't run on that machine... I had to manually compile a
 kernel<br>> > for it, but 2.6.21 boots quite happily on it.<br>><br>> Hrm.. you will be pretty tight, even my Belkin ADSL router has 16mb of ram. An nfs root will be ok,<br>> but you *will* need swap, and swap over nfs particularly on small memory machines has a tendency to<br>> deadlock. I had better luck with swap over nbd but there is still a theoretical deadlock there (not<br>> that I ever hit it).<br><br>Thanks for that - I'll look into it.<br><br>> My biggest issue converting a debian install to initramfs was making udev work properly, and that<br>> was a matter of adding a single line in /etc/udev/udev.conf<br>><br>> no_static_dev="1"<br>><br>> Once I did that it "just worked".<br>><br>> I've had a play with a few extra bits and bobs to make the root visible (which it's not by default<br>> if you just use a single initramfs). Without a visible root, apt-get would not run as it could not<br>> tell how much space it
 has to play with.<br><br>I didn't need to make the 386 do much at all (this was all a bit of<br>lark, anyway) - basically, busybox would be fine by itself. I guess<br>I'll have to try Linux-from-scratch into a chroot to keep the size<br>down, and compile it for 386.<br><br>Thanks for your scripts, I'll have a look into it when I get some time<br>this week.<br><br>Daniel Foote.<br>_______________________________________________<br>PLUG discussion list: plug@plug.org.au<br>http://www.plug.org.au/mailman/listinfo/plug<br>Committee e-mail: committee@plug.linux.org.au<br></blockquote><br><p>
        



      <hr size=1>
Yahoo!7 Mail has just got even bigger and better with unlimited storage on all webmail accounts. <a href="http://au.docs.yahoo.com/mail/unlimitedstorage.html" target=_blank>Find out more</a>.