From: Andries Brouwer <Andries.Brouwer@cwi.nl>
To: Andreas Huppert <Huppert@philosys.de>
Cc: Andries.Brouwer@cwi.nl, linux-kernel@vger.kernel.org
Subject: Re: mount dos-partition bug
Date: Thu, 1 Feb 2001 00:39:12 +0100 [thread overview]
Message-ID: <20010201003912.A25518@cwi.nl> (raw)
In-Reply-To: <3A788CDE.D3D53194@philosys.de>
In-Reply-To: <3A788CDE.D3D53194@philosys.de>; from Huppert@philosys.de on Wed, Jan 31, 2001 at 11:08:30PM +0100
Andreas Huppert wrote:
> > I have been trying to mount the dos-partition /dev/hdb1 on /dos/d for
> > three years and it fails:
Yes. It has 805998 data sectors, which require 50374 clusters,
but the fat16 has room only to describe 39168 clusters.
The kernel mount code considers this an error.
You can remove the check in linux/fs/fat/inode.c
and write something like
error = !sbi->fats || (sbi->dir_entries & (MSDOS_DPS-1))
#if 0
|| sbi->clusters+2 > fat_clusters+ MSDOS_MAX_EXTRA
#endif
|| (logical_sector_size & (SECTOR_SIZE-1))
|| !b->secs_track || !b->heads;
(the current layout is somewhat uglier).
I would expect that afterwards things work.
If you use this under Windows, do you get over 400 MB on this disk?
Or was part of this partition effectively lost?
Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next parent reply other threads:[~2001-01-31 23:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3A788CDE.D3D53194@philosys.de>
2001-01-31 23:39 ` Andries Brouwer [this message]
2001-02-01 8:48 ` mount dos-partition bug Rogier Wolff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010201003912.A25518@cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=Huppert@philosys.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox