From owner-freebsd-questions Wed Sep 27 4:32:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 1B04737B43E for ; Wed, 27 Sep 2000 04:32:12 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id PAA17873 for ; Wed, 27 Sep 2000 15:50:59 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e8RBW3S20646 for freebsd-questions@freebsd.org; Wed, 27 Sep 2000 15:32:03 +0400 Date: Wed, 27 Sep 2000 15:32:03 +0400 From: Igor Roboul To: FreeBSD questions Subject: Diskless boot, NFS etc. Message-ID: <20000927153203.A20571@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: FreeBSD questions Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i X-Operating-System: Linux linux.rainbow 2.2.14-plus-SMP X-Best-Window-Manager: Window Maker (www.windowmaker.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I'm back again with my diskless-boot problem :-) Now I have discovered, that if I export pure / as root for diskless wks, it boots. On other hand, if I export something different, for example /usr/local/Diskless. It does not boot :-( But if I remove /usr/local/Diskless/sbin/init then it complains that it can't find init. So, I assume that it boots and even mounts rootfs. I have tried replace /usr/local/Diskless/sbin/init with sh. Does not matter, it just does not work. I even made simple static linked binary: main() { puts("INIT"); reboot(0); } And copied it as "init" into /usr/local/Diskless/sbin Nothing is shown on console and no reboot :-( But it still complain when there is no sbin/init. [some time] After some time, I also discovered that if I remove /usr/local/Diskless/sbin/init then system boots into /stand/sysinstall. If I replace "init" with "sysinstall" diskless kernel panics : init exited. If I move sbin/init into stand/sysinstall nothing happens. So I assume, that "init" is not diskless-safe when root is different from real rootfs. So, maybe can tell me where to look? PS. But why my fake init does not work too? [some time later] any /sbin/init does not work :-( anything except real /stand/sysinstall does not work when /sbin/init is not found :-( So how can I make diskless FreeBSDs boot from my FreeBSD server and mount root from /usr/local/Diskless? I know I'm stupid :-( But I should not make it work :,-(((( -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message