From owner-freebsd-questions Tue Jun 18 9: 6:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp02.iafrica.com (smtp02.iafrica.com [196.7.0.140]) by hub.freebsd.org (Postfix) with ESMTP id 93B1C37B40F for ; Tue, 18 Jun 2002 09:05:31 -0700 (PDT) Received: from gabba.so.cpt1.za.uu.net ([196.30.72.25]) by smtp02.iafrica.com with esmtp (Exim 3.20 #1) id 17KLTw-000Fr8-00; Tue, 18 Jun 2002 18:05:24 +0200 Received: from localhost ([127.0.0.1]) by gabba.so.cpt1.za.uu.net with esmtp (Exim 3.31 #1) id 17KLTr-0003eE-00; Tue, 18 Jun 2002 18:05:19 +0200 Date: Tue, 18 Jun 2002 18:05:19 +0200 (SAST) From: Gareth Hopkins X-X-Sender: ghopkins@gabba.so.cpt1.za.uu.net To: mlijst@xs4all.nl Cc: freebsd-questions@freebsd.org Subject: Re: how to mount iso`s at startup In-Reply-To: <5167.213.84.74.151.1024416001.squirrel@webmail.xs4all.nl> Message-ID: <20020618180247.L13875-100000@gabba.so.cpt1.za.uu.net> X-Cell: +27 82 389 5389 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 18 Jun 2002 mlijst@xs4all.nl wrote: >Hi listmembers, > >my problem: > >i want 3 iso`s (4.5-install.iso, 4.5-disc3.iso & 4.5-disc4.iso) to be >mounted at startup. >some efforts/thoughts: > >i tried vnconfig, but the mount seems to be gone after a reboot. >so i added 'pseudo-device vn' in the kernel and compiled a.s.o, but i`m >getting confused and don`t really know where to go from there.maybe the smartest and/or easiest thing to do is to mount it all via a >script in /usr/local/etc/rc.d >if you have any insight on this matter i`d be glad to hear it. Howdie, This is how I am doing it #!/bin/sh if `/sbin/kldstat -n vn > /dev/null 2>&1`; then echo "vn ready"; else /usr/sbin/kldload /modules/vn.ko; echo "vn ready"; fi for i in vn0c do /sbin/umount /dev/$i > /dev/null 2>&1 /usr/sbin/vnconfig -u /dev/$i > /dev/null 2>&1 done /usr/sbin/vnconfig /dev/vn0c /mountpoint/4.6-install.iso /sbin/mount_cd9660 /dev/vn0c /mountpoint/4.6-RELEASE --- Gareth Hopkins Server Operations UUNET SA, a WorldCom Company (o) +27.21.658.8700 (f) +27.21.658.8552 (m) +27.82.389.5389 http://www.uunet.co.za 08600 UUNET (08600 88638) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message