From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 18:43:06 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 EEA99106568B for ; Tue, 20 Jan 2009 18:43:06 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 8CCE28FC19 for ; Tue, 20 Jan 2009 18:43:06 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id n0KIgHmJ057341; Tue, 20 Jan 2009 13:42:17 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id n0KIgGVb057340; Tue, 20 Jan 2009 13:42:16 -0500 (EST) (envelope-from jerrymc) Date: Tue, 20 Jan 2009 13:42:16 -0500 From: Jerry McAllister To: Eduardo Meyer Message-ID: <20090120184216.GA57318@gizmo.acns.msu.edu> References: <20090120161355.GA28525@hugo10.ka.punkt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: "Patrick M. Hausen" , stable@freebsd.org, questions@freebsd.org Subject: Re: switching bsdlabel's label 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: Tue, 20 Jan 2009 18:43:07 -0000 On Tue, Jan 20, 2009 at 03:36:34PM -0200, Eduardo Meyer wrote: > On Tue, Jan 20, 2009 at 2:13 PM, Patrick M. Hausen wrote: > > Hello, > > > > On Tue, Jan 20, 2009 at 01:24:27PM -0200, Eduardo Meyer wrote: > >> I have a certain disk where da0s1a and da0s1d are inverted. By some > >> reason someone labelled root as 'd' and home as 'a'. > >> > >> Can I just > >> > >> bsdlabel -n da0s1 > savedabel.txt > >> > >> Edit savedlabel.txt, switch and restore? (bsdlabel -R da0s1 savedlabel) > > > > Why not simply use bsdlabel -e da0s1? > > Because I didnt know about that? ;-) > > Thank you for the hint. > > However I still have the same doubt. Since basically its the same > task, Is it safe do relabel this way? Hmmm. Is there stuff written on the disk. Is root stuff really written on da0s1d and /home stuff really written on da0s1a? Does the system boot from it OK? Or is it just that the mounts are switched. The mount points are not written in to the label. That comes after booting. If it boots, I wonder if it really is switched on the partitions or if it is just that the partitions are mounted backwards (probably due to editing /etc/fstab incorrectly). ////jerry > > > > > Kind regards, > > Patrick > > -- > > punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe > > Tel. 0721 9109 0 * Fax 0721 9109 100 > > info@punkt.de http://www.punkt.de > > Gf: Jürgen Egeling AG Mannheim 108285 > > > > > > -- > =========== > Eduardo Meyer > pessoal: dudu.meyer@gmail.com > profissional: ddm.farmaciap@saude.gov.br > _______________________________________________ > 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" >