Date: Mon, 13 Mar 2006 15:33:04 -0600 From: Patrick Bowen <pbowen@fastmail.fm> To: freebsd-questions@freebsd.org Subject: Kernel mixup after dump/restore Message-ID: <4415E510.9070102@fastmail.fm>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4415E510.9070102>
