> 
> I'm trying to put minirtl on an ide disk.

boot it from the floppy, then

1) create a 2MB msdos fs on /dev/hda1
2) create a 4MB++ minix fs on /dev/hda2

put the image file from the floppy on /dev/hda1

this system can now boot from ide into a RAMDISK

to now put it on the IDE disk so that it will actually run
from the IDE.

1) boot the system into ramdisk
2) upload a default version of cp (the one from busybox laks the -R flag)
3) mount the minix partition under /mnt
4) cd /
5) cp -pRd * /mnt (excluding /mnt naturally...)

now all you need is to make the system dual bootable by compiling
a new kernel , this new kernel should have msdos ide-hd and minix support
statically compiled, no need for inirt-archive mkminix-fs patches

7) put that kernel on to /dev/hda1 ,name it zimage2 and then use the folowing
   /syslinux.cfg

default ramdisk
prompt 1
timeout 600
display syslinux.dpy
F1 syslinux.dpy
F2 general.msg
F3 rtl.msg
F4 net.msg
F5 doc.msg
F6 fsm.msg
F8 hofrat.msg
label ramdisk
        kernel zimage
    append=load_ramdisk=1 initrd=root.rtl initrd_archive=minix ramdisk_size=8192 
root=/dev/ram0 boot=/dev/hda1,msdos RTL=etc,sshd,log,local,modules,thttpd,user
lable harddisk
        kernel zimage2
        append boot=/dev/hda root=/dev/hda2

the system cann now boot and run from the IDE if you enter
harddisk at the boot-prompt or boot into a ramdisk if you
enter ramdisk at the boot-prompt.

making the system dual bootable is quite handy during developement as it alows
you to mess up you IDE version and then simply boot into ramdisk mount it and
correct what ever went wrong. Once you are happy with your version on disk
you can through out the ramdisk version if you need the 2MB or just leave it
where it is (it not bad as a backup)

at the first bootup the system will fuss at you that it can mount / rw since 
the filesystem is unchecked. This is because there is no fsck.minix on the 
system (was not required for a ramdisk based system), so you need to add 
fsck.minix in /sbin and then add a filesystem check to the init scripts
(I put it in /etc/init.d/checkroot.sh but you can put it somwhere else too if
you prefer) and add a line to that file to remount / rw

mount -n -o remount rw /    (there is no , between remount and rw !!)

from then on the system should boot straight into the disk.

hope that helps.

hofrat
*------------------------------------------------------------------------*
*THERE           {__}                              FSMLabs               *
*IS              oo )                        The RTLinux Company         *
*LIFE           O_   `_-------.              Mc  Guire  Nicholas         *
*IN               (-.         ,-\              www.rtlinux.org           *
*THE               || )---<  )             [EMAIL PROTECTED]         *
*NET !             |||     | |          privat: [EMAIL PROTECTED]         *
*                                 [EMAIL PROTECTED]         *
*------------------------------------------------------------------------*
*ASCII-COW (C) 1996-2038 [EMAIL PROTECTED]   http://www.hofr.at           *
*------------------------------------------------------------------------*
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to