Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2001 12:36:57 +0000
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        mouss <usebsd@free.fr>, Philippe CASIDY <pcasidy@casidy.com>, gerald_stoller@hotmail.com, freebsd-hackers@FreeBSD.ORG, iedowse@maths.tcd.ie
Subject:   Re: Mounting a CDROM in freeBSD 4.2 
Message-ID:   <200101171236.aa47862@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Wed, 17 Jan 2001 19:59:57 %2B0900." <3A657B2D.381A913E@newsguy.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200101171236.aa47862>