From owner-freebsd-stable Sun Sep 15 6:29:49 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 138B137B400; Sun, 15 Sep 2002 06:29:47 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3929143E42; Sun, 15 Sep 2002 06:29:46 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g8FDTZS76500; Sun, 15 Sep 2002 08:29:39 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020915082934.00fbeac8@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 15 Sep 2002 08:29:34 -0500 To: Dmitry Suhodoev , stable@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: creating ad2s1a Cc: freebsd-stable@FreeBSD.ORG In-Reply-To: <3920151836.20020915165112@bingo.chel.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 04:51 PM 9.15.2002 +0600, Dmitry Suhodoev wrote: >hi, guys! > >i has insert new (huge :) hdd in my computer with FreeBSD 4.6-STABLE (28 august >2002), and try make the new filesytem on it, for move my FreeBSD to new hdd. i >has try make new partition (as on old hdd) with /stand/sysinstall. but the >slice list begins from ad2s1e, and i can't create slices as on old hdd: > >/dev/ad0s1a / >/dev/ad0s1b swap >/dev/ad0s1e /var >/dev/ad0s1f /usr > >command newfs /dev/ad2s1a also cannot create this slice. > >how i can create ad2s1a and ad2s1b slices on new hdd for correct moving my >system? > >-- >Dmitry Suhodoev, http://bingo.chel.ru/, icq#550315 > You can use this script to do what you want. Just edit the partition sizes. Then you can use dump/restore from old HD to ad2. #!/bin/sh #cd / #/sbin/umount /mnt #/sbin/fdisk -BI ad2 #/sbin/disklabel -w -r -B ad2s1 auto ### Need to change this to sizes desired #/sbin/disklabel -r ad2 > /usr/local/etc/backups/disk.label #/bin/echo 'a: 256M 0 4.2BSD' >> /usr/local/etc/backups/disk.label #/bin/echo 'b: 1G * swap' >> /usr/local/etc/backups/disk.label #/bin/echo 'e: 30G * 4.2BSD' >> /usr/local/etc/backups/disk.label #/bin/echo 'f: * * 4.2BSD' >> /usr/local/etc/backups/disk.label #/sbin/disklabel -R -B ad2s1 /usr/local/etc/backups/disk.label #/bin/rm /usr/local/etc/backups/disk.label #/sbin/newfs -U /dev/ad2s1a #/sbin/newfs -U /dev/ad2s1e #/sbin/newfs -U /dev/ad2s1f Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message