Date: Wed, 9 Jul 2014 08:58:44 -0700 From: gahn <ipfreak@yahoo.com> To: Freebsd General Questions <freebsd-questions@freebsd.org> Subject: boot section corruption Message-ID: <1404921524.5512.YahooMailNeo@web122303.mail.ne1.yahoo.com>
next in thread | raw e-mail | index | archive | help
hi all:=0A=0Ait is a just general question for freebsd/unix.=0A=0Ai got puz= zled when sometime the freebsd either failed to=A0 mount a slice, gets into= mountroot> prompt or even worse, corrupted the whole boot section and gets= into db> mode.besides the recovery procedures, i am more interested in kno= wing how those scenarios might happen and what we can do to prevent them to= happen.=0A=0Athanks=0A=0A_dave From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 17:00:43 2014 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EBF507E1 for <freebsd-questions@freebsd.org>; Wed, 9 Jul 2014 17:00:42 +0000 (UTC) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0244.outbound.protection.outlook.com [207.46.163.244]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CEE8D2351 for <freebsd-questions@freebsd.org>; Wed, 9 Jul 2014 17:00:41 +0000 (UTC) Received: from [IPv6:2601:2:4780:2fd:3dce:590f:6ed5:85f6] (2601:2:4780:2fd:3dce:590f:6ed5:85f6) by BY2PR03MB026.namprd03.prod.outlook.com (10.255.240.40) with Microsoft SMTP Server (TLS) id 15.0.980.8; Wed, 9 Jul 2014 17:00:38 +0000 Message-ID: <53BD7533.1000302@my.hennepintech.edu> Date: Wed, 9 Jul 2014 12:00:35 -0500 From: Andrew Berg <aberg010@my.hennepintech.edu> User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: <freebsd-questions@freebsd.org> Subject: Re: Reconfiguring a package and other questions. References: <8738eaochn.fsf@UlanBator.myhome.westell.com> In-Reply-To: <8738eaochn.fsf@UlanBator.myhome.westell.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:2:4780:2fd:3dce:590f:6ed5:85f6] X-ClientProxiedBy: BY2PR03CA054.namprd03.prod.outlook.com (10.141.249.27) To BY2PR03MB026.namprd03.prod.outlook.com (10.255.240.40) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0267E514F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(199002)(24454002)(189002)(51704005)(74502001)(95666004)(88552001)(46102001)(101416001)(86362001)(33656002)(23676002)(107886001)(83072002)(20776003)(105586002)(89122001)(74662001)(31966008)(77096002)(76482001)(81342001)(83322001)(85306003)(42186005)(50466002)(80022001)(102836001)(64126003)(47776003)(106356001)(59896001)(75432001)(65956001)(92566001)(76176999)(4396001)(87266999)(2351001)(50986999)(110136001)(64706001)(77982001)(87976001)(81542001)(65816999)(85852003)(83506001)(21056001)(107046002)(80316001)(92726001)(79102001)(54356999)(99396002)(3826002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB026; H:[IPv6:2601:2:4780:2fd:3dce:590f:6ed5:85f6]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; X-OriginatorOrg: my.hennepintech.edu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 09 Jul 2014 17:00:43 -0000 On 2014.07.09 09:03, R. Clayton wrote: > 1: I usually install xorg from ports, and what I do in this case (which usually > happens) is reconfigure xorg-server to disable hal. However, I don't see how > packages can be reconfigured. the pkg-config man page seems to show how to > reconfigure pkg itself, not individual packages. How it possible to > reconfigure packages? Use ports or a repo that uses the options you want for its packages. If you have multiple machines that need packages with non-default compile options, you will likely want to look at poudriere. > 2: How do I undo the effects of installing a metapackage like xorg? Doing the > obvious > > # whereis X > X: /usr/local/bin/X > > # pkg remove xorg > Deinstallation has been requested for the following 1 packages: > > xorg-7.7 > > Proceed with deinstalling packages [y/N]: y > [1/1] Deleting xorg-7.7... done > > # whereis X > X: /usr/local/bin/X > > # > > doesn't do what I wanted ("pkg delete -R xorg" behaves as above). That binary was installed by another package. # pkg which $(which X) /usr/local/bin/X was installed by package xorg-server-1.12.4_7,1 'pkg info' will give you information such as dependencies, reverse dependencies, and installed files for installed packages. Each subcommand for pkg (and there are many) has a man page, so you can refer to them to see what pkg can do. > 3: I resorted to deleting xorg-server as a package and re-installing it as a > port with appropriate configuration. This works, but raises the question of > consistency between ports and packages. What is the relation between the > software in ports and the software in packages? Binary packages are prebuilt ports. You can only decide compile options at compile time, so binary packages cannot be reconfigured (but they can be rebuilt with different options). There is no difference between installing a port with a given set of options and installing a package built from the same source with the same options.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1404921524.5512.YahooMailNeo>