From owner-freebsd-questions Thu Jan 4 15:23: 6 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 15:23:03 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mgci.com (box1.mpowercom.net [208.57.0.10]) by hub.freebsd.org (Postfix) with SMTP id 8DE8137B400 for ; Thu, 4 Jan 2001 15:22:58 -0800 (PST) Received: (qmail 15725 invoked from network); 4 Jan 2001 23:22:43 -0000 Received: from las-dsl113-cust059.mpowercom.net (HELO chris) (208.57.113.59) by box1.mpowercom.net with SMTP; 4 Jan 2001 23:22:43 -0000 Message-ID: <013401c076a5$3cdbe7e0$0c00a8c0@amgroupadmin.com> From: "Chris Smith" To: "freebsd" Cc: "Freebsd Questions" References: <20010103184312.41066.qmail@vanbo.whoowl.com> Subject: Re: Setting Up new disk the hardway Date: Thu, 4 Jan 2001 15:22:42 -0800 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.00.2919.6700 Disposition-Notification-To: "Chris Smith" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Great cheat sheet here, I just used it myself: http://www.freebsd.org/FAQ/admin.html#NEW-HUGE-DISK Chris Smith _________________ IT Department American Group Administrators First National Administrators ----- Original Message ----- From: "freebsd" To: Sent: Wednesday, January 03, 2001 10:43 AM Subject: Setting Up new disk the hardway > > Ok, so I have been using freebsd on my servers for my company and at my > home for around 6 months. I have been able to figure out most things from > the man pages, handbook, and google. > > What I am trying to do seems simple enough but I am missing something. I > want to move my entire drives contents to another drive so that I can take > the old drive out for a different machine. Seems simple enough, so I came > up with this plan. > > 1) setup the new drive > 2) drop to single mode > 3) mount each partition on new drive to /mnt > 4) dump coresponding partion into restore via a pipe making sure it's in > /mnt > 5) Wash, rinse, repeat for other partions > 6) halt, and remove old drive, pray it boots. > > So far, after about an hour playing with it, I can't even get past step > one. I guess I am trying to make it hard, but I am trying to learn, so I > didn't want to use sysinstall, and have been trying the steps listed in the > handbook. Problem is I think the handbook may have some typos in it, as > there seems to be some difference in order of steps listed there... > > From http://www.freebsd.org/handbook/disks-adding.html: > > For slices > # dd if=/dev/zero of=/dev/rda1 bs=1k count=1 > # fdisk -BI da1 #Initialize your new disk > # disklabel -B -w -r da1s1 auto #Label it. > # disklabel -e da1s1 > # mkdir -p /1 > # newfs /dev/da1s1e # Repeat this for every partition you created. > > For dedicated > # dd if=/dev/zero of=/dev/rda1 bs=1k count=1 > # disklabel -Brw da1 auto > # disklabel -e da1 # create the `e' partition > # newfs -d0 /dev/rda1e > # mkdir -p /1 > > So here are my questions: > 1) Why the copy 1024 null to /dev/rda1? The example is working on da1... > 2) Why does mkdir -p /1 happen before newfs on slices but the other way on > dedicated? > 3) what am I suppose to change (in vi) when I type disklabel -e da1? > 4) Lastly, why when I try this does it give me the error "insufficent > space"? > > Thanks in advance, > John > > > 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