i need to upgrade a disk

2006-11-07 Thread Jonathan Horne
i have a system that is FreeBSD 6.2-PRERELEASE, that i need to upgrade its 
single disk.  id like to keep all its existing slices the same size, and then 
use the unused space to create a new /opt slice.  would dd be the way to go?  
if so, could someone advise on its proper usage for duplicating one disk to 
another?

or, if there is an alternative way to skin this cat, im willing to learn 
whatever way might be the best.

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i need to upgrade a disk

2006-11-07 Thread Lowell Gilbert
Jonathan Horne [EMAIL PROTECTED] writes:

 i have a system that is FreeBSD 6.2-PRERELEASE, that i need to upgrade its 
 single disk.  id like to keep all its existing slices the same size, and then 
 use the unused space to create a new /opt slice.  would dd be the way to go?  
 if so, could someone advise on its proper usage for duplicating one disk to 
 another?

 or, if there is an alternative way to skin this cat, im willing to learn 
 whatever way might be the best.

Start by reading the FAQ entries on How can I add my new hard disk to
my FreeBSD system?  and How do I move my system over to my huge new
disk?.  They'll give you some good options.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i need to upgrade a disk

2006-11-07 Thread Eric

Jonathan Horne wrote:
i have a system that is FreeBSD 6.2-PRERELEASE, that i need to upgrade its 
single disk.  id like to keep all its existing slices the same size, and then 
use the unused space to create a new /opt slice.  would dd be the way to go?  
if so, could someone advise on its proper usage for duplicating one disk to 
another?


or, if there is an alternative way to skin this cat, im willing to learn 
whatever way might be the best.


cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


this is what i will be using to migrate from my 1 disk setup to RAID1 
tomorrow:


http://lantech.geekvenue.net/chucktips/jason/chuck/1004897633/index_html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK 



Good luck!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i need to upgrade a disk

2006-11-07 Thread Chuck Swiger

Jonathan Horne wrote:
i have a system that is FreeBSD 6.2-PRERELEASE, that i need to upgrade its 
single disk.  id like to keep all its existing slices the same size, and then 
use the unused space to create a new /opt slice.  would dd be the way to go?  
if so, could someone advise on its proper usage for duplicating one disk to 
another?


dd would be one way.  Use fdisk or sysinstall to create a disk label on the 
new disk with the partitions sized and named as you want.  Then run:


   dd if=/dev/ad0s1a of=/dev/ad1s1a bs=64k

...for each partition (except swap), where you would use the appropriate 
device names-- if is the source, of points to where you are writing to.  It's 
best to do this in a shell after booting off a FreeBSD CD, so that the on-disk 
filesystems are not actively mounted when you copy them.


The FAQ has a more complete discussion and alternatives like using dump and 
restore, I believe.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i need to upgrade a disk

2006-11-07 Thread Jonathan Horne
On Tuesday 07 November 2006 09:12, Eric wrote:
 Jonathan Horne wrote:
  i have a system that is FreeBSD 6.2-PRERELEASE, that i need to upgrade
  its single disk.  id like to keep all its existing slices the same size,
  and then use the unused space to create a new /opt slice.  would dd be
  the way to go? if so, could someone advise on its proper usage for
  duplicating one disk to another?
 
  or, if there is an alternative way to skin this cat, im willing to learn
  whatever way might be the best.
 
  cheers,
  jonathan
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]

 this is what i will be using to migrate from my 1 disk setup to RAID1
 tomorrow:

 http://lantech.geekvenue.net/chucktips/jason/chuck/1004897633/index_html
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DI
SK


 Good luck!
 ___
 eric, i ended up using this article that you recommended:

http://lantech.geekvenue.net/chucktips/jason/chuck/1004897633/index_html

and it went like clockwork!  im on my new 300GB SATA drive now (upgraded from 
a 40GB).  thanks for the tip!

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i need to upgrade a disk

2006-11-07 Thread Jerry McAllister
On Tue, Nov 07, 2006 at 08:59:59AM -0600, Jonathan Horne wrote:

 i have a system that is FreeBSD 6.2-PRERELEASE, that i need to upgrade its 
 single disk.  id like to keep all its existing slices the same size, and then 
 use the unused space to create a new /opt slice.  would dd be the way to go?  
 if so, could someone advise on its proper usage for duplicating one disk to 
 another?

No.   
I presume you mean that you want to switch to a larger new disk.
If you can plug it in while the other one is still in place, then
use fdisk, bsdlabel and newfs (you can do this from within sysinstall 
if you want, but using them by themselves is not really hard) to make
your primary slice and divide it in to the partitions you want and 
build the filesystems in the partitions.

Mount the new file systems to temporary mount points such 
as /newroot /newusr, whatever, then mount them.

Then use dump/restore to transfer the contents of the filesystems
to their new homes.   It would look something like:

   cd /newroot
   dump 0af - / | restore -rf - 

   cd /newusr
   dump 0af - /usr | restore -rf -

etc for whatever partitions you want to move.
Preferably this dump/restore would be done in single user with
all files systems mounted and 'swapon -a'

Once you are done moving all file systems, shutdown, move the drives
and reboot.

This will get you the copied file systems you want and dd might not.

jerry

 
 or, if there is an alternative way to skin this cat, im willing to learn 
 whatever way might be the best.
 
 cheers,
 jonathan
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]