From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Nasrat Subject: Re: root disk! Date: Mon, 14 Oct 2002 20:10:49 +0100 Sender: linux-8086-owner@vger.kernel.org Message-ID: <20021014191049.GC12349@raq465.uk2net.com> References: Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: elks On Mon, Oct 14, 2002 at 11:49:15AM -0600, Miguel Bolanos wrote: > Hi all! > > i have been trying to create an elks root disk, but when i run 'make root' > on the elkscmd dir, it mounts the minixfs to /mnt/elks/ it runs the script > /mnt/elks/dev/MAKEDEV, but it gets executed i get the folling error: Umm, yes elkscmd is a bit b0rked atm - keep meaning to look at it. It's halfway between being runnable on elks itself - hence /bin/test and calls to MAKESET, etc. I've haven't been using elkscmd, rather I've make a minix filesystem using dd if=/dev/zero of=myroot bs=1024 count=1440 /sbin/mkfs.minix -n14 myroot 1440 mount -t minix -o loop myroot /mnt/elks Then I take harry's prebuilt image (link on elks.sf.net) and mount that. mount -t minix -o loop root /mnt/elksroot Use rsync/cp to replicate the filesystem and add my own binaries on as necessary. > 2 additional things that i would like to mention is that i have realized > is that the current documentation on how to create root disks for elks is > not good enought i have found some issues that are not documented, such > as... /mnt/elks must exist because it is needed to mount the minixfs Umm, there are two other ways of making elkscmd images other than via loopback - ramdisk and floppy. I haven't tried either but they're in the Make.defs file for elkscmd. > there, the error is very obvious but still i belive it should be on the > papers, as well i found that it runs /bin/test, but test is actually a is > a shell builtin so of course it cant be found under that path, solved this > by creating a dummy script under /bin/test: Test isn't built in for ash/sash the shells that elks use, MAKESET is an elks shell based script rather than a bash script. I guess just using test would work as elks will have /bin in the PATH and bash will do the right thing. If I have time I'll have a poke around elkscmd tomorrow. If you want a root disk - grab the images from Harry's site, if you want to customise one, you can do so by following my instructions. Paul