From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 17:56:34 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16CB4106566B for ; Thu, 26 Feb 2009 17:56:34 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.8]) by mx1.freebsd.org (Postfix) with ESMTP id C7D4F8FC13 for ; Thu, 26 Feb 2009 17:56:33 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.14.3/8.14.3) with ESMTP id n1QHUGwd069415 for ; Thu, 26 Feb 2009 12:30:17 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.14.3/8.14.3/Submit) id n1QHUGUV069414 for questions@freebsd.org; Thu, 26 Feb 2009 12:30:16 -0500 (EST) (envelope-from mwlucas) Date: Thu, 26 Feb 2009 12:30:16 -0500 From: "Michael W. Lucas" To: questions@freebsd.org Message-ID: <20090226173016.GA69357@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (bewilderbeast.blackhelicopters.org [127.0.0.1]); Thu, 26 Feb 2009 12:30:17 -0500 (EST) Cc: Subject: "disklabel: Class not found" when editing USB disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 17:56:34 -0000 Hi, I'm following Ceri's instructions for getting FreeBSD on a flash drive. My laptop is a Feb 1 -current, I'm installing FreeBSD 7.1, and the instructions are for 6.1, so we have all kinds of things that could be going wrong. The USB boots with the error: F1 FreeBSD F6 PXE Boot: F1 Not ufs Not ufs No /boot/loader When I investigated the flash's disklabel, I saw: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 4000106 16 unused 0 0 c: 4000122 0 unused 0 0 # "raw" part, don't edit I newfs'd this flash drive and put data on it. The obvious thing to do is set the disklabel for partition a to 4.2BSD. Even if I have to reinstall the data, no big deal. So, run bsdlabel -e /dev/da0s1 and change the disklabel to: # size offset fstype [fsize bsize bps/cpg] a: 4000106 16 4.2BSD 0 0 c: 4000122 0 unused 0 0 # "raw" part, don't edit Then I get the error: bsdlabel: Class not found re-edit the label? [y]: The same error appears if I try to edit the disklabel off-disk and restore (-R). Google tells me that this error is not uncommon, but the only solutions I saw (loading geom_mbr and setting kern.geom.debugflags=16) did not help. Anyone have any suggestions? Or, can anyone tell me I'm running down the wrong path? Thanks, ==ml -- Michael W. Lucas mwlucas@BlackHelicopters.org, mwlucas@FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Latest book: Cisco Routers for the Desperate, 2nd Edition http://www.CiscoRoutersForTheDesperate.com/