From owner-freebsd-hackers@FreeBSD.ORG Thu May 31 04:34:32 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 DC7EB16A421 for ; Thu, 31 May 2007 04:34:32 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 6835113C457 for ; Thu, 31 May 2007 04:34:32 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.61]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l4V49gBM090280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 31 May 2007 13:39:42 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Received: from murder ([unix socket]) by cain.gsoft.com.au (Cyrus v2.3.7) with LMTPA; Thu, 31 May 2007 12:46:47 +0930 X-Sieve: CMU Sieve 2.3 Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.61]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l4V3GljF083848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 31 May 2007 12:46:47 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Date: Thu, 31 May 2007 13:39:23 +0930 User-Agent: KMail/1.9.5 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Message-Id: <200705311339.37683.doconnor@gsoft.com.au> X-Spam-Score: -1.111 () BAYES_00,TVD_RCVD_SPACE_BRACKET,UNPARSEABLE_RELAY X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=1.1.5 X-UID: 163987 X-Length: 2848 Content-Type: multipart/signed; boundary="nextPart147574748.L9FOGiGbBa"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Subject: boot0 vs XP 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: Thu, 31 May 2007 04:34:32 -0000 --nextPart147574748.L9FOGiGbBa Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I recently reinstalled Windows XP on my laptop (I barely use it but=20 occasionally it comes in handy :) and when I did the install it made=20 the base drive E (no idea why, and I couldn't see how to change it). Everything proceeds as usual and then I boot a CD to then jump start my=20 system and run boot0cfg to re-write the boot loader. Alas the next time I boot Windows it logs me out straight after logging=20 in. I do some googling and find that it is most likely that the=20 signature bytes Windows uses to determine which drive is what have=20 changed and it has now made the drive C:. Hence the swapfile location=20 is now incorrect :( I was wondering if it would be possible to modify boot0cfg (and boot0 I=20 guess) so that it avoids touching these bytes. I found some details here ->=20 http://www.goodells.net/multiboot/partsigs.htm Basically it would appear to be the 4 bytes just before the partition=20 table. I'm not sure how big boot0 is though :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart147574748.L9FOGiGbBa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBGXkqB5ZPcIHs/zowRAgs3AKCDO0dU6nIaJ0cABv1bea+tSQ44CwCePmaG rCyFyZipLsjPhhwfAJ/Ts/k= =KUvL -----END PGP SIGNATURE----- --nextPart147574748.L9FOGiGbBa--