From owner-freebsd-questions Fri Aug 6 17:15:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 453B814D26 for ; Fri, 6 Aug 1999 17:14:58 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id JAA20772; Sat, 7 Aug 1999 09:44:19 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA51667; Sat, 7 Aug 1999 09:44:18 +0930 (CST) Date: Sat, 7 Aug 1999 09:44:18 +0930 From: Greg Lehey To: Kiril Mitev Cc: FreeBSD Questions Subject: Re: CCD config error: CCDIOCSET error Message-ID: <19990807094418.U5126@freebie.lemis.com> References: <19990806090039.K5126@freebie.lemis.com> <199908061339.NAA11326@loki.ideaglobal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199908061339.NAA11326@loki.ideaglobal.com>; from Kiril Mitev on Fri, Aug 06, 1999 at 01:39:39PM +0000 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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