From owner-freebsd-questions@FreeBSD.ORG Tue Nov 6 01:55:20 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 381BFD30 for ; Tue, 6 Nov 2012 01:55:20 +0000 (UTC) (envelope-from snow.mountains.4@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0DDC98FC08 for ; Tue, 6 Nov 2012 01:55:19 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so4596897pad.13 for ; Mon, 05 Nov 2012 17:55:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=y+Xhzt0TjN0rL9RGFPbLPmq2Wo3J2ulLCWjYAyBZRIw=; b=n1EdaBu8H4NwmDWoH7bPFdikJ/b1ZSQJjJltL/WUCTQquYZv2mjq3VZrawAWZEc7xs A+tN7QLY221c8FjI8rImotUO8u8xA9zGjLg6VjgcEYDaVbmd3lJMsbc7JBqyD5rz3lYP guULV521h9y10fJKPy8vX8gTm5qUqNZck1411xNAtowVzCiYmlW4sIMJvtTSvN523dxF R78cUNBbx2ZOTggTa6XU3DdobtvBMYYB76RJf8eQdsKglvS/f71vpGGcTqRxwoovMvXz U0i6TTy82wWQIvzKX+70neCjyKG40JAdNPuExNJiU30opb4yxss2v55iXBds/Wi398Kp 7yNw== MIME-Version: 1.0 Received: by 10.68.224.138 with SMTP id rc10mr35769945pbc.34.1352166919481; Mon, 05 Nov 2012 17:55:19 -0800 (PST) Received: by 10.66.20.197 with HTTP; Mon, 5 Nov 2012 17:55:19 -0800 (PST) Date: Tue, 6 Nov 2012 05:55:19 +0400 Message-ID: Subject: Groupping restored partitions into slices From: Snow Mountains To: freebsd questions list Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 01:55:20 -0000 Hi folks, Short version: Is it possible to group existing partitions into slices without affecting data? Long version: I had a disk sliced/partitioned like this: ad4s1 ad4s1a ad4s1b (swap) ad4s1d ad4s1e ad4s1f ad4s2 (storage) ad4s3 ad4s3a ad4s3b (swap) ad4s3d ad4s3e ad4s3f Then, I accidentally deleted *something* (wrong use of boot0cfg), which left me with /dev/ad4 only! scan_ffs correctly detected where all 9 data partitions begin. I created new bsdlabel table, wrote it to ad4, so I now have ad4a (former ad4s1a) ad4b (former ad4s1b - swap) ad4d (former ad4s1d) ad4e (former ad4s1e) ad4f (former ad4s1f) ad4g (former ad4s2) ad4h (former ad4s3a) and beginning sectors of the rest (former ad4s3d-f). Of course, I can't make more than 8 labels. I can mount all of them and I see my data. I can even 'swapon ad4b'. Now, the question: how can I restore s1, s2 and s3? As you can guess, s1 and s3 were working systems. Processing all this from FreeBSD-8/amd64 on another disc. Thanks! Sergi M