From owner-freebsd-hackers Wed Jan 17 4:37:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id D5C2237B400 for ; Wed, 17 Jan 2001 04:36:58 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 17 Jan 2001 12:36:57 +0000 (GMT) To: "Daniel C. Sobral" Cc: mouss , Philippe CASIDY , gerald_stoller@hotmail.com, freebsd-hackers@FreeBSD.ORG, iedowse@maths.tcd.ie Subject: Re: Mounting a CDROM in freeBSD 4.2 In-Reply-To: Your message of "Wed, 17 Jan 2001 19:59:57 +0900." <3A657B2D.381A913E@newsguy.com> Date: Wed, 17 Jan 2001 12:36:57 +0000 From: Ian Dowse Message-ID: <200101171236.aa47862@salmon.maths.tcd.ie> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3A657B2D.381A913E@newsguy.com>, "Daniel C. Sobral" writes: >> and you must make sure your kernel is compiled with >> options CD9660 > >Err... no. The kld gets autoloaded if the kernel doesn't have cd9660 >compiled-in. The error message that is printed is misleading though, and gives the impression that cd9660 filesystem support is missing: cd9660: No such file or directory When mount(8) runs mount_cd9660, it gives it an argv[0] of the fileystem type i.e. 'cd9660'. That's where the cd9660 in the error message comes from. Maybe mount_cd9660 (and other mount_* programs) should provide a bit more information in the error message? Ian Index: mount_cd9660.c =================================================================== RCS file: /home/iedowse/CVS/src/sbin/mount_cd9660/mount_cd9660.c,v retrieving revision 1.15 diff -u -r1.15 mount_cd9660.c --- mount_cd9660.c 1999/10/09 11:54:08 1.15 +++ mount_cd9660.c 2001/01/17 12:34:23 @@ -176,7 +176,7 @@ errx(1, "cd9660 filesystem is not available"); if (mount(vfc.vfc_name, mntpath, mntflags, &args) < 0) - err(1, NULL); + err(1, "%s on %s: mount", mntpath, dev); exit(0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message