Date: Sat, 02 Jan 1999 11:22:04 -0600 From: David Kelly <dkelly@hiwaay.net> To: "Douglas Evan Cook" <cookd@cs.byu.edu> Cc: questions@FreeBSD.ORG Subject: Re: Transferring FreeBSD to another HD Message-ID: <199901021722.LAA05098@nospam.hiwaay.net> In-Reply-To: Message from "Douglas Evan Cook" <cookd@cs.byu.edu> of "Sat, 02 Jan 1999 00:14:04 MST." <000001be361f$7b1348a0$0daf8dd0@dougcook>
next in thread | previous in thread | raw e-mail | index | archive | help
"Douglas Evan Cook" writes: > Cool! I got a new hard disk for Christmas, but now everyone is jealous > and would like me to help them out by putting the old one in someone > else's machine. I'm game, but I'm not sure how to approach transferring > my installation of FreeBSD from one hard disk to the next. How is this > done? I started out slicing up the drive to get the new setup: [...] > Slicing was easy. And once I get FreeBSD done, it shouldn't be a big > deal to get Windows over and the boot manager reinstalled. The only > catch is FreeBSD, and I don't want to start the FAT transfer until all > is well on the FreeBSD front. Any standard procedures or non-standard? Am assuming from your discussion you have both drives up and running under FreeBSD, all the new partitions made, and filesystems created and mounted? Then for each filesystem (don't forget /var, I usually forget) on your old HD do (example for /usr): # dump 0af - /usr | ( cd /new/usr; restore -rf - ) Probably best to do the above in single user mode. Could also use "pax -rw /old /new" but I'm not sure if it honors the special flags (see chflags(1)) set on /kernel and some libraries. Hmm, maybe dump/restore doesn't do those flags either? pax may not do /dev but I'm pretty sure dump/restore does. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. 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?199901021722.LAA05098>