Date: Tue, 18 Jun 2002 18:05:19 +0200 (SAST) From: Gareth Hopkins <gareth@za.uu.net> To: mlijst@xs4all.nl Cc: freebsd-questions@freebsd.org Subject: Re: how to mount iso`s at startup Message-ID: <20020618180247.L13875-100000@gabba.so.cpt1.za.uu.net> In-Reply-To: <5167.213.84.74.151.1024416001.squirrel@webmail.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020618180247.L13875-100000>