From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 18:21:07 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 B68321065672 for ; Thu, 26 Feb 2009 18:21:07 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 6349B8FC18 for ; Thu, 26 Feb 2009 18:21:07 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by gxk24 with SMTP id 24so1819612gxk.19 for ; Thu, 26 Feb 2009 10:21:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=S8Zs2gwz588dmQDBihg79dX8DpGlWrQIPHy9YjFYrwo=; b=xLfQgOJMUjDbUi8NYkwd/l1DNtEecvlJcakE+r7XyvI3gF5jOgeFX/TPnsOeuv7Zzh 9YA2AwLFzIfvfyucQYo6KO7svXudgtxlp36g6k0L3tOwsYpDvvcoyRW8WEsJ/i6F+pbs TuUN5oAqSmJ8nq1dtqfjJWbv4D7MhTAYdYf2Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=j8uJ8vwvftUTw7OJ060rT7cTJZ64BP993iAPIkNXyppaWfqcujNTSs1OWG8m8/zJ3l shPDh6Ow66S2n3L2ubeCXgwFaaspJEc1CtjP9L39RIDfYlxmO1hhsAYzijP9Q29ea6UU cgqsvQRNaLQV8JKSQy5ONNnfxctiah+4Dz0tY= MIME-Version: 1.0 Received: by 10.231.12.12 with SMTP id v12mr2073465ibv.4.1235672465336; Thu, 26 Feb 2009 10:21:05 -0800 (PST) In-Reply-To: <20090226173016.GA69357@bewilderbeast.blackhelicopters.org> References: <20090226173016.GA69357@bewilderbeast.blackhelicopters.org> Date: Thu, 26 Feb 2009 11:21:05 -0700 Message-ID: From: Tim Judd To: "Michael W. Lucas" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: "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 18:21:08 -0000 Canonical way to boot FreeBSD by hand, with no tools. Using one slice, one partition fdisk -BI /dev/da0 bsdlabel -Bw /dev/da0s1 newfs /dev/da0s1a Making sure there's a /boot directory with the all important loader Making sure /boot/kernel/kernel exists This should boot -- however is pretty pointless without anything else. init's needed, and everything else to make a full MUM (Multi User Mode) environment... Keep note that not only does the MBR need bootable code, so does the bsdlabel/disklabel newfs will set the proper fstype in the bsdlabel if it's partition is 'a' Good luck... and yes, I top posted. (Deal with it, people who don't like it...) On Thu, Feb 26, 2009 at 10:30 AM, Michael W. Lucas < mwlucas@blackhelicopters.org> wrote: > 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/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >