Logu wrote:
<snip>

Thanks for your response. I think you missed my previous post. I have gone
through all these stages. I used PXE of my machine bios and syslinux in the
server. I am able to load the kernel and machine comes up.  I want to get a
root file system from the server instead of a local or nfs root file system
when the kernel tries to mount root file system.

Oops! After reading your initial post again, I realised my oversight.

Ok, here goes the details of getting tomsrtbt working with PXE:

tomsrtbt is meant to be located on a floppy. It has hard coded references to /dev/fd0 in it's initialization scripts. Basically, it is really not meant for being used as network bootable image.

But that's not going to stop me from using it as network bootable image.

Two options:

-> The easier one, if it works: Use the memdisk kernel image that comes with PXELinux. This is supposed to simulate a virtual floppy drive and install the boot image/root file system on that virtual floppy drive. This might work with tomsrtbt, since it expects to be run from a floppy disk.

Why it might not work is since good old Tom is relying onm being able to squeeze 1.7MB on 1.44MB disk, using some non-standard stuff. The memdisk driver may not be able to support this.

Note: I haven't tried this option since a subtle limitation in my setup prevents me from doing so. The details of the subtle limitation are long and I'll post it only if anyone is interested.

-> The one that I got to work [not going to explain the details]:

--> Let's say you have extracted tomsrtbt tar ball in the directory named TOMSRTBT
--> Run "./unpack.s" TOMSRTBT
--> cd TOMSRTBT/tomsrtbt-[version].unpacked/1
--> Use bz2bzImage as your PXELinux kernel image
--> cp settings.s rc.custom.gz ../2/fl
--> edit ../2/etc/rc.S and comment/remove the lines where fd0 is mounted and unmounted
--> dd if=/dev/zero of=~/tomsinitrd count=4096 bs=1024
--> losetup /dev/loop0 ~/tomsinitrd [Use /dev/loop1 - /dev/loop16 in case /dev/loop0 is busy]
--> mke2fs /dev/loop0
--> mkdir ~/mnt-tomsinitrd
--> mount /dev/loop0 ~/mnt-tomsinitrd
--> cp -a TOMSRTBT/tomsrtbt-[version].unpacked/2/* ~/mnt-tomsinitrd
--> umount /dev/loop0
--> bzip2 -c ~/tomsinitrd
--> Use the resulting ~/tomsinitrd.bz2 file as the initrd file as your PXELinux initrd


Lemme know how it goes.

--
Regards,
Varun Varma
---------------------------------------
Mindframe Software & Services Pvt. Ltd.
http://www.mindsw.com
---------------------------------------


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to