From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 2 17:02:46 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4744116A403; Fri, 2 Mar 2007 17:02:46 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 5EE2B13C481; Fri, 2 Mar 2007 17:02:45 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003579054.msg; Fri, 02 Mar 2007 17:00:44 +0000 Message-ID: <017901c75cec$4a20f6a0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Jeremy Chadwick" References: <00cb01c75c5b$4205e390$b3db87d4@multiplay.co.uk> <45E82660.4030107@freebsd.org> <008101c75cd1$42a4df10$b3db87d4@multiplay.co.uk> <45E830A8.8020104@freebsd.org> <20070302144409.GA4431@icarus.home.lan> <00eb01c75ce0$b0430380$b3db87d4@multiplay.co.uk> <20070302162042.GA6019@icarus.home.lan> Date: Fri, 2 Mar 2007 17:00:24 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Fri, 02 Mar 2007 17:00:44 +0000 X-MDAV-Processed: multiplay.co.uk, Fri, 02 Mar 2007 17:00:45 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: sysinstall creates corrupt filesystems after repartitioning X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2007 17:02:46 -0000 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 thats great. 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 6. reboot 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. Steve ================================================ 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@multiplay.co.uk.