From owner-freebsd-current Mon Dec 15 03:34:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA19315 for current-outgoing; Mon, 15 Dec 1997 03:34:34 -0800 (PST) (envelope-from owner-freebsd-current) Received: from zed.ludd.luth.se (zed.ludd.luth.se [130.240.16.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA19299 for ; Mon, 15 Dec 1997 03:34:28 -0800 (PST) (envelope-from gozer@ludd.luth.se) Received: from brother.ludd.luth.se (gozer@brother.ludd.luth.se [130.240.16.78]) by zed.ludd.luth.se (8.8.5/8.8.5) with SMTP id MAA11095 for ; Mon, 15 Dec 1997 12:34:25 +0100 Date: Mon, 15 Dec 1997 12:34:24 +0100 (MET) From: Johan Larsson To: FreeBSD Current Subject: mount_cd9660 panics. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I don't know if this is related to current only. But i'll start here. Whenever i try to use this script to mount the cdrom and the cdrom is empty or contains a noniso cd the kernel panics. I have taken it from slackware linux and modified it a bit to work under freebsd, it has worked for quite a while, but a month ago or something like that it started panicing. Now i always use mount /cdrom to mount it, but should it really panic??? #!/bin/sh - # /etc/rc.cdrom # MOUNTPOINT="/cdrom" unset SKIP if mount | fgrep "on $MOUNTPOINT " 1> /dev/null 2> /dev/null ; then SKIP=1 elif [ ! -d $MOUNTPOINT ]; then SKIP=1 fi if [ ! "$SKIP" = "1" ]; then unset MOUNT echo "" echo -n "Checking for a CD... " for device in wcd0c scd0c mcd0c ; do # check for a CD-ROM drive with a disc in it. if mount_cd9660 /dev/$device $MOUNTPOINT 1> /dev/null 2> /dev/null ; then MOUNT=1 rm -f /dev/cdrom ln -sf /dev/$device /dev/cdrom break; fi done if [ "$MOUNT" = "1" ]; then # mount successful echo "found on /dev/$device." echo " Mounting unknown ISO9660 CD-ROM under $MOUNTPOINT." else echo "no CD found." fi fi Johan -- * mailto:gozer@ludd.luth.se * http://www.ludd.luth.se/users/gozer/ * * Powered by FreeBSD. http://www.se.freebsd.org/ +-+-+-+-+-+-+-+-+ *