Re: Is this safe? Copying a complete install from one HD to another

2008-03-25 Thread James Seward
On Tue, Mar 25, 2008 at 2:55 AM, Norberto Meijome [EMAIL PROTECTED] wrote:
  tar or dump | restore , etc... as long as the different file types (normal, 
 links, sockets,etc) are transferred correctly. the same for user permissions.

I actually did this the other week for similar reasons - smartd was
starting to give warnings on the drive so I bought a new one and used
dump | restore for each partition to move things across. Worked fine
and I now have a happier, quieter and more spacious system :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Is this safe? Copying a complete install from one HD to another

2008-03-24 Thread Jim Stapleton
I have a 6.2 machine I just upgraded to 7.0. I did a fresh install on
the second HD. I'm almost to the point where I'm sure the install is
at least as functional as the previous install (i.e. I didn't break
anything). The second HD has always seemed a bit chintzy to me (and
you can hear the drive heads when it is active), so I'd just as soon
get the 7.0 OS off of there, and onto the main drive. I also prefer to
use the main HD, because it's partitioned nicer. I heard you can tar
data from an old drive to a new one, and have it work properly,
provided the MBR is set up to boot that partition, is this correct?

Planned method:
use sysinstall to reformat the old /, /usr, /var and /tmp

mount the old /, /usr, /var, and as /old, /old/usr, /old/var respectively.
(in /old)
$ tar -cf - -exclude /old -exclude /tmp / | tar -xf -

edit /old/etc/fstab appropriately
reboot.


Should this work?

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


Re: Is this safe? Copying a complete install from one HD to another

2008-03-24 Thread Norberto Meijome
On Mon, 24 Mar 2008 18:59:34 -0400
Jim Stapleton [EMAIL PROTECTED] wrote:

 I have a 6.2 machine I just upgraded to 7.0. I did a fresh install on
 the second HD. I'm almost to the point where I'm sure the install is
 at least as functional as the previous install (i.e. I didn't break
 anything). The second HD has always seemed a bit chintzy to me (and
 you can hear the drive heads when it is active), so I'd just as soon
 get the 7.0 OS off of there, and onto the main drive. I also prefer to
 use the main HD, because it's partitioned nicer. I heard you can tar
 data from an old drive to a new one, and have it work properly,
 provided the MBR is set up to boot that partition, is this correct?

yup, this has been discussed several times in the list. I've used it countless 
times to replicate my laptop to a separate disk before a major upgrade.

tar or dump | restore , etc... as long as the different file types (normal, 
links, sockets,etc) are transferred correctly. the same for user permissions.

B

_
{Beto|Norberto|Numard} Meijome

Gravity cannot be blamed for people falling in love.
  Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]