Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2001 17:46:18 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        "freebsd" <freebsd@whoowl.com>
Cc:        questions@freebsd.org
Subject:   Re: Setting Up new disk the hardway
Message-ID:  <14931.47562.68930.599582@guru.mired.org>
In-Reply-To: <132052561@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
freebsd <freebsd@whoowl.com> types:
> 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...

r[device] *used* to be the "raw" device, doing the I/O without going
through the systems buffer cache. They are no longer used for
FreeBSD. You would typically use them for for newfs, disk copies, etc.


> 2) Why does mkdir -p /1 happen before newfs on slices but the other way on
> dedicated?

Because the author was being inconsistent. The order doesn't matter.

> 3) what am I suppose to change (in vi) when I type disklabel -e da1?

The partitions sizes and positions. This is the one thing that
/stand/sysinstall does that I really miss when using the standard
system; the visual interface is much easier to deal with than editing
the table by hand, even with a couple of decades experience at editing
the things.


> 4) Lastly, why when I try this does it give me the error "insufficent
> space"?

Because something is out of space. Which command is failing?

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14931.47562.68930.599582>