From owner-freebsd-stable@FreeBSD.ORG Sat Aug 2 07:18:45 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53A3A106564A for ; Sat, 2 Aug 2008 07:18:45 +0000 (UTC) (envelope-from h.schmalzbauer@OmniLAN.de) Received: from host.omnisec.de (host.omnisec.de [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id D36078FC12 for ; Sat, 2 Aug 2008 07:18:44 +0000 (UTC) (envelope-from h.schmalzbauer@OmniLAN.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [172.21.1.150]) (authenticated bits=0) by host.omnisec.de (8.13.8/8.13.8) with ESMTP id m727Ih91070914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 2 Aug 2008 09:18:43 +0200 (CEST) (envelope-from h.schmalzbauer@OmniLAN.de) Message-ID: <48940A53.3000004@OmniLAN.de> Date: Sat, 02 Aug 2008 09:18:43 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Thunderbird 2.0.0.14 (X11/20080710) MIME-Version: 1.0 To: freebsd-stable@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBBE19ADCDDD0C0B23DEE92E4" Subject: newfs-msdos and default fat32 parameters X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2008 07:18:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBBE19ADCDDD0C0B23DEE92E4 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Hello, lately I wanted to create some DOS bootable SD-Cards (for simply BIOS=20 updates, disk diagnostic tools etc...) After newfs_msdos -F32 -B VBR.bin (2.5G partition) the system just=20 didn't continue booting after the MBR was loaded (VBR.bin is a 3 sectors = dump of the DOS boot record which sys creates). When I directly wrote the dump back to sectors 63-65 and 69-71 the=20 system booted! So I took my hex glasses and found some unfortunate default parameters=20 of newfs_msdos. - MediaType is f0 but probably should read f8 (fixed disk) - The backup boot record should be located at offset 6, not 2. - There should be defined 63 hidden sectors With 'newfs_msdos -F32 -m 0xf8 -B VBR.bin -k 0x6 -o 63 -i 0x1 /dev/da6s1'= every thing was fine. I'm no expert, I just found some FAT info. maybe the current defaults=20 are wisley chosen. Maybe not? Best regards, -Harry --------------enigBBE19ADCDDD0C0B23DEE92E4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiUClMACgkQLDqVQ9VXb8gxpACgjQF431rTobR87z3zVVeD1e5T XSYAn0dXMKFzPtY9wubfSGiJvyHnfnxr =yy39 -----END PGP SIGNATURE----- --------------enigBBE19ADCDDD0C0B23DEE92E4--