Date: Sat, 7 Aug 1999 09:44:18 +0930 From: Greg Lehey <grog@lemis.com> To: Kiril Mitev <kiril@ideaglobal.com> Cc: FreeBSD Questions <questions@FreeBSD.org> Subject: Re: CCD config error: CCDIOCSET error Message-ID: <19990807094418.U5126@freebie.lemis.com> In-Reply-To: <199908061339.NAA11326@loki.ideaglobal.com>; from Kiril Mitev on Fri, Aug 06, 1999 at 01:39:39PM %2B0000 References: <19990806090039.K5126@freebie.lemis.com> <199908061339.NAA11326@loki.ideaglobal.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, 6 August 1999 at 13:39:39 +0000, Kiril Mitev wrote: >>>>> == error: >>>>> ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format >>>> >>>> This is telling you that you have the wrong partition type for your >>>> underlying disk partitions (/dev/da1e or /dev/da2e). >>> >>> is it really :-) ???? >> >> Well, the obvious thing is to look. 'disklabel da1' and 'disklabel da2' > > :-) What I meant was: "does this error message REALLY tell me that the > disk partition should be 4.2BSD ?" Yes: if (dpart.part->p_fstype == FS_BSDFFS) { maxsecsize = ((dpart.disklab->d_secsize > maxsecsize) ? dpart.disklab->d_secsize : maxsecsize); size = dpart.part->p_size - CCD_OFFSET; } else { #ifdef DEBUG if (ccddebug & (CCDB_FOLLOW|CCDB_INIT)) printf("ccd%d: %s: incorrect partition type\n", ccd->ccd_unit, ci->ci_path); #endif while (ci >= cs->sc_cinfo) { free(ci->ci_path, M_DEVBUF); ci--; } free(cs->sc_cinfo, M_DEVBUF); return (EFTYPE); } >>>> ccd requires them to be of type 4.2BSD, so that you can easily >>>> trash a file system with ccd. >>> >>> Thanks, will do :-), (hmm, lemme see, what was that send-pr >>> thingie...) >> >> It's in the base system. Just run send-pr. But you don't need it >> here: this looks like a pilot error. > > You are absolutely correct. > > ccd(4) states that a 4.2BSD partition is required. This does NOT mean > that is shouldn't be mentioned in the ccdconfig(8) page as well, though... And it doesn't mean it's correct to do so. Just yesterday I saw a case where somebody had wiped out his system disk while trying to configure a ccd. Vinum won't let you do that. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key 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?19990807094418.U5126>