From owner-freebsd-current@FreeBSD.ORG Sat May 1 18:58:20 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCB8816A4CE for ; Sat, 1 May 2004 18:58:20 -0700 (PDT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id F05CF43D1D for ; Sat, 1 May 2004 18:58:19 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.112.94) by smtp01.syd.iprimus.net.au (7.0.024) id 402BA92701F1364C; Sun, 2 May 2004 11:58:08 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 7E94741E5; Sun, 2 May 2004 11:57:41 +1000 (EST) Date: Sun, 2 May 2004 11:57:41 +1000 From: Tim Robbins To: Christer Solskogen Message-ID: <20040502015741.GA88260@cat.robbins.dropbear.id.au> References: <1082192214.23944.14.camel@funshine.carebears.net> <20040418034411.GB5419@cat.robbins.dropbear.id.au> <1082909731.28762.1.camel@funshine.carebears.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1082909731.28762.1.camel@funshine.carebears.net> User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: Re: mounting msdosfs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 01:58:20 -0000 On Sun, Apr 25, 2004 at 06:15:31PM +0200, Christer Solskogen wrote: > On Sun, 2004-04-18 at 05:44, Tim Robbins wrote: > > > That fix looks reasonable. I'll see if I can get around to merging > > this and any other useful fixes from NetBSD later tonight. > > > > I just upgraded to CURRENT, and it seems like my problem is not fixed. > The NetBSD import did not the trick :/ > > If I can help you with some info, please tell me. Apologies for the late reply. Can you apply this patch & show me the output of running fsck_msdosfs on the partitions that failed the backup boot block check? ==== //depot/user/tjr/freebsd-tjr/src/sbin/fsck_msdosfs/boot.c#3 - /home/tim/p4/src/sbin/fsck_msdosfs/boot.c ==== @@ -56,6 +56,7 @@ u_char fsinfo[2 * DOSBOOTBLOCKSIZE]; u_char backup[DOSBOOTBLOCKSIZE]; int ret = FSOK; + int i, j; if (read(dosfs, block, sizeof block) < sizeof block) { perror("could not read boot block"); @@ -159,6 +160,23 @@ perror("could not read backup bootblock"); return FSFATAL; } + printf("Boot block:\n"); + for (i = j = 0; i < 512; i++) { + j += printf("%02x ", block[i]); + if (j > 70) { + putchar('\n'); + j = 0; + } + } + printf("Backup block:\n"); + for (i = j = 0; i < 512; i++) { + j += printf("%02x%c", backup[i], + backup[i] == block[i] ? ' ' : '*'); + if (j > 70) { + putchar('\n'); + j = 0; + } + } backup[65] = block[65]; /* XXX */ if (memcmp(block + 11, backup + 11, 79)) { /* Correct? XXX */