From owner-freebsd-stable Wed Apr 18 3:36:43 2001 Delivered-To: freebsd-stable@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 85D7237B423 for ; Wed, 18 Apr 2001 03:36:39 -0700 (PDT) (envelope-from danny@cs.huji.ac.il) Received: from sexta.cs.huji.ac.il ([132.65.16.13] ident=exim) by cs.huji.ac.il with esmtp (Exim 3.22 #1) id 14ppK8-0006oY-00; Wed, 18 Apr 2001 13:36:36 +0300 Received: from localhost ([127.0.0.1] helo=sexta.cs.huji.ac.il ident=danny) by sexta.cs.huji.ac.il with esmtp (Exim 3.15 #1) id 14ppK7-0002IR-00; Wed, 18 Apr 2001 13:36:35 +0300 X-Mailer: exmh version 2.2 06/23/2000 with nmh-0.24 To: Sven Huster Cc: freebsd-stable@freebsd.org Subject: Re: 4.3-RC mount_null problem on diskless machine In-reply-to: Your message of Wed, 18 Apr 2001 12:19:47 +0200 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Apr 2001 13:36:35 +0300 From: Danny Braniss Message-Id: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG this is what i do, /etc/rc.diskless1 config() { if [ -d /conf/default/etc ]; then cp -Rp /conf/default/etc/* $1 fi if [ -d /conf/${bootp_ipa} ] ; then cp -Rp /conf/${bootp_ipa}/etc/* $1 elif [ -d /conf/${bootp_ipbca} ] ; then cp -Rp /conf/${bootp_ipbca}/etc/* $1 elif [ -d /conf/${hostname} ] ; then cp -Rp /conf/${hostname}/etc/* $1 #else # cp -Rp /conf/default/etc/* $1 fi } newway () { mount_mfs -s 4096 -T qp120at dummy /var/tmp sysctl -w net.inet.icmp.icmplim=1000 (cd /etc; pax -w -f /var/tmp/etc.tar .) mount_mfs -s 4096 -T qp120at dummy /etc (cd /etc; pax -r -f /var/tmp/etc.tar) config etc rm -f /var/tmp/etc.tar umount /var/tmp } ... newway danny In message <5.1.0.14.0.20010418121945.02580930@mx01.mailsurf.com>you write: }Hi there, } }i got a big problem with mount_null in FreeBSD. }the /etc/rc.diskless* scripts use moun_null to mount their mfs mounted dirs }over /etc and /tmp, }but often when i try to write on /tmp or /etc i get a panic. } }like as i tried to temp change the root passwd on the machine } }Fatal trap 12: page fault while in kernel mode }fault virtual address = 0x6d }fault code = supervisor read, page not present }instruction pointer = 0x8:0x6d }stack pointer = 0x10:0xd03d5c64 }frame pointer = 0x10:0xd03d5cf4 }code segment = base 0x0, limit 0xfffff, type 0x1b } = DPL 0, pres 1, def32 1, gran 1 }processor eflags = interrupt enabled, resume, IOPL = 0 }current process = 109 (mount_mfs) }interrupt mask = none }kernel: type 12 trap, code=0 }Stopped at 0x6d: } }Fatal trap 12: page fault while in kernel mode }fault virtual address = 0x6d }fault code = supervisor read, page not present }instruction pointer = 0x8:0xc0250388 }stack pointer = 0x10:0xd03d5acc }frame pointer = 0x10:0xd03d5ad0 }code segment = base 0x0, limit 0xfffff, type 0x1b } = DPL 0, pres 1, def32 1, gran 1 }processor eflags = interrupt enabled, resume, IOPL = 0 }current process = 109 (mount_mfs) }interrupt mask = none } kernel: type 12 trap, code=0 } }/ is mounted via nfs + /etc/rc.diskless* scripts run normally at startup } }i know mount_null is not declared stable (in the man page), but }if its like this why is this thing in /etc/rc.diskless*? } }i fixed /tmp by changing it to a symlink, but not 100% sure what to do with }/etc. } }test# uname -a }FreeBSD test.mailsurf.com 4.3-RC FreeBSD 4.3-RC #1: Tue Apr 17 12:16:14 GMT }2001 root@test.mailsurf.com:/usr/obj/usr/src/sys/MAILSURF i386 } }any suggestions? }regards } }Sven Huster }Senior IT Systems Administrator }*BSD, Linux, Solaris } } }To Unsubscribe: send mail to majordomo@FreeBSD.org }with "unsubscribe freebsd-stable" in the body of the message } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message