sysinstall creates corrupt filesystems after repartitioning
killing at multiplay.co.uk
Fri Mar 2 17:02:46 UTC 2007
Jeremy Chadwick wrote:
> Pardon my ignorance, but can you give me a step-by-step on how to
> reproduce this? I have a couple VMware FreeBSD sessions up and
> want to see if I can reproduce it there. I also have an actual
> FreeBSD testbox at home which I can format and reinstall.
> (I'm not denying the problem exists, I just want to reproduce it,
> and I think those steps would be useful to those who can fix the
> problem too.)
No problem if you have the resources / time to test this now
Here's the steps I used, if you have any questions just shout:
1. Boot a normal 6.2 install
2. dump /usr to remote location
3. restore said dump to a empty directory on the remote machine
4. share this directory over nfs to the test machine
5. edit /etc/fstab to use the nfs /usr instead of the ufs /usr
7. Enable mbr changes on live fs: sysctl kern.geom.debugflags=16
8. run sysinstall
8.1 delete /dev/(da|ad)0s1f ( the /usr partition )
8.2 create a smaller /usr in the space cleared
8.3 create /data with the remaining space
8.4 Write the changes
9. quit sysinstall
10. umount -f /usr ( to restore the nfs version )
11. umount /data
12. fsck /dev/(da|ad)0s1(f|g) both will be corrupt.
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.
In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at multiplay.co.uk.
More information about the freebsd-stable