From owner-freebsd-questions Wed Sep 20 11:38:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from winconx.com (ns1.winconx.net [63.114.199.2]) by hub.freebsd.org (Postfix) with SMTP id CBBE037B424 for ; Wed, 20 Sep 2000 11:38:07 -0700 (PDT) Received: (qmail 83624 invoked from network); 20 Sep 2000 18:39:54 -0000 Received: from home-isdn-pc6.winconx.net (HELO travis) (63.114.200.151) by ns1.winconx.net with SMTP; 20 Sep 2000 18:39:54 -0000 Message-ID: <00b701c02331$f9068e60$97c8723f@travis> From: "Travis Leuthauser" To: "David Banning" , References: <20000920135043.A439@www3.pacific-pages.com> Subject: Re: install new drive problem Date: Wed, 20 Sep 2000 13:38:30 -0500 Organization: WinConX Online, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here's excerpts from a message Chris Clark wrote on July 12, 1999 that I found in the archives when I was researching the same thing. Slice and partition the new drive. for each filesystem you want to mirror, mount the corresponding slice of the new drive and dump/restore the original filesystem ie. # mount /dev/wd0s1a /mnt # cd /mnt # dump -0af - / | restore -rf - Repeat for all slices. Travis Leuthauser Network Administrator WinConX Online, Inc. 225-751-0959 225-752-6517 ----- Original Message ----- From: "David Banning" To: Sent: Wednesday, September 20, 2000 12:50 PM Subject: install new drive problem > I want to replace my 3.4 gig drive with a new 20 gig drive > I just bought. > > While I'm actually running 4.0 Stable - I used my FreeBSD 2.2.8 old > cdrom set to install the file systems and set as bootable. > > Then I booted from my 3.4 gig drive, mounted my 20 gig drive > and commenced copying all files over with "cp -R" to the individual > file systems. > > There are two problems. One is - the file systems on the new drive fill up > too quickly, and problem 2: the new 20 gig drive won't boot. > > Here is what df shows; > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/wd1s1a 87055 38184 41907 48% / > /dev/wd1s1f 2971838 2044310 689781 75% /usr > /dev/wd1s1e 58031 9332 44057 17% /var > procfs 4 4 0 100% /proc > /dev/wd0s1a 98479 40240 50361 44% /newroot > /dev/wd0s1f 19048854 7380208 10144738 42% /newusr > /dev/wd0s1e 98479 9314 81287 10% /newvar > > you can see that although the new file systems contain the exact > same stuff, percentage-wise they take up too much space on the drive. > (eg. 75% of say 3.2 gigs (/usr) should not be 42% of say 18.5 > gigs (/newusr), given that it's the same content) > > I realize I'm going about this in a rather self-made way but I couldn't > find any example of this in my FreeBSD book (bought with 2.2.8) > and I didn't want to bother you folks without first putting in some > effort myself. > > Any pointers would be appreciated > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message