On Wed, 3 Sep 2003, Joshua Oreman wrote: > On Wed, Sep 03, 2003 at 02:27:03PM +0000 or thereabouts, Mark wrote: > > ----- Original Message ----- > > From: "Joshua Oreman" <[EMAIL PROTECTED]> > > To: "Mark" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Wednesday, September 03, 2003 4:08 PM > > Subject: Re: Ghost for FreeBSD > > > > > > > > > cd /mnt/root > > > > > /sbin/dump -L -f- /|restore -rf- > > > > > cd /mnt/var > > > > > /sbin/dump -L -f- /var|restore -rf- > > > > > cd /mnt/usr > > > > > /sbin/dump -L -f- /usr|restore -rf- > > > > > > > > I have heard this before, but I never understand this part. :) How > > > > does creating a /mnt/root directory, and restoring in that directory > > > > get my / slice back? Then the restored data will just sit > > > > in /mnt/root! What good does it there? > > > > > > > > Or should I create /mnt/root as partition, about equal in size to the > > root > > > > > To mirror the root partition to another: > > > # mkdir /mnt/root > > > # mount /dev/<ROOT-MIRROR-DEV> /mnt/root > > > # cd /mnt/root > > > # /sbin/dump -f- / | restore -rf- > > > > > > You will not *need* to umount the root partition. > > > > Ok; what you have done is made a dump on the root mirror device; great! But > > how do I now tell FreeBSD to use that "restored" partition as /? Edit > > /etc/fstab to effect the change for the next boot? I have a nagging > > suspicion it will then still boot off the old / slice. > > Ah, that's right. You have to edit /etc/fstab *AND* tell the kernel. I'm not > sure exactly what you need to do to boot from a different root device; maybe > someone will fille me in?
Assuming when he setted up the second drive with fdisk, he chose the FreeBSD Boot Manager and that his new /, /var, /usr needs to be the same or identical sizes as his current FreeBSD drive. Then he has to edit the /mnt/root/etc/fstab with the new device names and then when he boots up: The FreeBSD Boot Manager will show up with something like: F1 FreeBSD F2 FreeBSD F1 is the first FreeBSD drive which will boot by default if he doesn't touch anything. If he hits F1, it will still boot F1. If he hits F5, then it will be using the mirrored drive for everything. Cheers, Vince - [EMAIL PROTECTED] - Vice President ________ __ ____ Unix Networking Operations - FreeBSD-Real Unix for Free / / / / | / |[__ ] WurldLink Corporation / / / / | / | __] ] San Francisco - Honolulu - Hong Kong / / / / / |/ / | __] ] HongKong Stars/Gravis UltraSound Mailing Lists Admin /_/_/_/_/|___/|_|[____] [EMAIL PROTECTED] - oahu.DAL.NET Hawaii's DALnet IRC Network Server Admin _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"