From owner-freebsd-questions@FreeBSD.ORG Tue Jun 13 06:43:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FB2516A473 for ; Tue, 13 Jun 2006 06:43:50 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58CF643D62 for ; Tue, 13 Jun 2006 06:43:49 +0000 (GMT) (envelope-from rakheshster@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so2118140ugc for ; Mon, 12 Jun 2006 23:43:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pQrHYjkSzLPEWBlK8tydrBKrrjUKEbTBBNRPnIHemAtBtCBy3bYuYiiJLVkxyQGLmBpKNgfn2//q1ThPGuHEdL/TRp/Bq4K5HPmv/TxiFr8xz++jqgw66dduxLtJIGGFo2JG4YA8D913vYze91oCQb3VaPO7v6InUaEECmL78RA= Received: by 10.66.216.6 with SMTP id o6mr5019664ugg; Mon, 12 Jun 2006 03:32:31 -0700 (PDT) Received: by 10.66.245.3 with HTTP; Mon, 12 Jun 2006 03:32:30 -0700 (PDT) Message-ID: <74bdbced0606120332i6e27baf2s7dd6613c9aa79b4d@mail.gmail.com> Date: Mon, 12 Jun 2006 14:32:30 +0400 From: "Rakhesh Sasidharan" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Creating a disklabel for NetBSD slice 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, 13 Jun 2006 06:43:50 -0000 Hi, I have FreeBSD 6.1 and NetBSD 3.0 on my machine. I can make disklabel entries (in NetBSD) for the FreeBSD partitions, and that way mount them in NetBSD. Just a matter of giving the absolute offset values of the partitions. But I cant find any straight forward way of mounting NetBSD partitions under FreeBSD. Doing "disklabel /dev/ad0s2" (my NetBSD slice) gives an error message that there's no valid label to be found. So I make up a disklabel for ad0s2. I get the NetBSD disklabel into a file, edit it to make the number of partitions less than 8, remove all the miscellaneous info, change all the offsets to relative values, and then make a disklabel thus: "disklabel -R ad0s2 nbsd.txt" ("nbsd.txt" being the file which contains the disklabels). After this the disklabel is created fine, but when I boot into NetBSD, the disklabel there is messed up and so NetBSD can't load. I had a backup of the disklabels anyways (was expecting something like this), so I managed to get it fixed. Booted into a NetBSD install CD and restored the disklabel. And now when I boot into FreeBSD I see that its lost whatever disklabel I had written. So my question is this: is there any way I can get FreeBSD to create a disklabel for ad0s2, but *not overwrite* the NetBSD one? I mean, I see frequent references to "on-disk" label and "in-core" label in the manpage, and I was wondering maybe its possible to create a disklabel that's internal to FreeBSD and doesn't really overwrite the NetBSD one. Is that possible? What are these "in-core" and "on-disk" labels anyways? Thanks, Rakhesh -- NetBSD/i386 3.0 + pkgsrc-current | OpenBSD/i386 3.9 Toshiba Satellite L10-102