Kernel mixup after dump/restore
pbowen at fastmail.fm
Mon Mar 13 21:33:19 UTC 2006
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
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
Can anyone explain this behaviour, and why it might have happened?
More information about the freebsd-questions