Date: Sun, 15 Sep 2002 08:29:34 -0500 From: "Jack L. Stone" <jackstone@sage-one.net> To: Dmitry Suhodoev <raven@bingo.chel.ru>, stable@FreeBSD.ORG Cc: freebsd-stable@FreeBSD.ORG Subject: Re: creating ad2s1a Message-ID: <3.0.5.32.20020915082934.00fbeac8@mail.sage-one.net> In-Reply-To: <3920151836.20020915165112@bingo.chel.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020915082934.00fbeac8>