From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 12:45:29 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 D981D106566C; Wed, 21 Jan 2009 12:45:29 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id A50C78FC1D; Wed, 21 Jan 2009 12:45:29 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so4040836wfg.7 for ; Wed, 21 Jan 2009 04:45:29 -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 :content-transfer-encoding; bh=nXG/q+XXIuzUTv2TIPHSi0n+ksClY0B4t9M51Y6xs5M=; b=mn4ZX6sDafImTeiUS+wxMu1jFY812r9XbBl5cTXp1DaTpPpOAgt6qIYiekIWvjHnD2 1NPbbagl1YqMG+wdK2XGHX9ZWZR81AhO0fA3IT37rPeMzadb1H7orzM3C5FByQ+v81uo XwRdhXNiBt4OFkDq+sg8wzvrgtFBrfNlRRLkE= 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:content-transfer-encoding; b=Ow7jqzFeHV0E56TlsgLl+odBqPlyy5zN6hlPlflxzGifIdqKilOpe+cTHLuHSNscjL joyGavYoucoT8oQRSx7jXwrq29751Sd3Z5AD+OsY/AHEmbWF5wohjemg9YRCBl9Wc5sO KVUPq2y3Z8MhtkVN4tU3gWHM5godKTG/CRnXA= MIME-Version: 1.0 Received: by 10.142.134.17 with SMTP id h17mr28408wfd.228.1232541928053; Wed, 21 Jan 2009 04:45:28 -0800 (PST) In-Reply-To: <20090120184216.GA57318@gizmo.acns.msu.edu> References: <20090120161355.GA28525@hugo10.ka.punkt.de> <20090120184216.GA57318@gizmo.acns.msu.edu> Date: Wed, 21 Jan 2009 10:45:28 -0200 Message-ID: From: Eduardo Meyer To: Jerry McAllister Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Wed, 21 Jan 2009 12:45:30 -0000 On Tue, Jan 20, 2009 at 4:42 PM, Jerry McAllister wrote: > 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 wro= te: >> > 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 savedlabe= l) >> > >> > 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 boo= t > 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 Hello Patrick, thanks again. Yes, label is switched. Yes there really are stuff on the partitions. No, I dont boot from da0s1d. It is a disk for migration. But the one who partitioned was fooled by Sysinstall which creates the first label on extra disks as 'd' and the last from the allowed 7 as 'a'. Therefore this server is still booting on the original disk (ad6s1a) and everything else is mounted in the new one (da0s1), everything but root. > > > > >> >> > >> > 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=FCrgen Egeling AG Mannheim 108285 >> > >> >> >> >> -- >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> 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" >> > --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br