Date: Mon, 13 Mar 2006 15:38:23 -0600 From: Patrick Bowen <pbowen@fastmail.fm> To: freebsd-questions@freebsd.org Subject: Re: Kernel mixup after dump/restore Message-ID: <4415E64F.2010601@fastmail.fm> In-Reply-To: <4415E510.9070102@fastmail.fm> References: <4415E510.9070102@fastmail.fm>
next in thread | previous in thread | raw e-mail | index | archive | help
Patrick Bowen wrote: > List; > > I have a slice on ad0s1 mounting the root FS from ad0s2a, and > vice-verse. Here's what I did. > > 1. Started out with a 20 Gig drive with two equal slices, ad0s1 > (blank) and ad0s2 (FreeBSD). > > 2. Used sysinstalls fdisk and bsdlabel to create /, /var, /tmp, and > /usr partitions on ad0s1 equal in size to those on ad0s2. > > 3. Used the following command to copy partitions from ad0s2 to ad0s1; > > dump -L -0 -f- /usr | (cd /mnt/hd/usr; restore -r -v -f-) > > /usr is on ad0s2 and /mnt/hd/usr is ad0s1. > > 4. Changed /mnt/hd/etc on ad0s1 to mount partitions on ad0s1, rather > than ad0s2. > > 5. Used grub to boot either to ad0s1 or ad0s2. > > When I boot the first slice (ad0s1), df(1) shows all the partitions to > be ad0s1, except root, which is ad0s2. When I boot the second slice > (ad0s2), df(1) shows all partitions to be ad0s2, except root, which is > ad0s1. > > Can anyone explain this behaviour, and why it might have happened? > > Thanks, > Patrick > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > I should have mentioned that I modified the dump/restore command in #3 above to reflect all the different partitions. Patrick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4415E64F.2010601>