util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael T. Kloos" <michael@michaelkloos.com>
To: util-linux@vger.kernel.org
Subject: FAT12 format does not honor the -R option
Date: Fri, 15 Jan 2021 11:01:45 -0500	[thread overview]
Message-ID: <abf8a4c7-fa0c-6e2b-e272-e68531ede173@michaelkloos.com> (raw)

"mkfs.vfat -F 12 -R 2 /dev/loop0" does not seem to honor the -R option.  
It just defaults to 0x20 for the reserved sector count. I can hexedit 
the FS to move the file allocation table contents and change 0x20 to 
0x02 in the reserved sector count field. Mounting this seems to work 
fine under the Linux FAT driver from my limited experimentation.  It 
just seems like a waste of space reserving that many sectors in a FAT12 
FS where it is most likely to be used in space constrained 
applications.  Is this a bug or is it working around some compatibility 
issue with 2 reserved pages?


Thanks,
----Michael


             reply	other threads:[~2021-01-15 16:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 16:01 Michael T. Kloos [this message]
2021-01-15 16:28 ` FAT12 format does not honor the -R option Karel Zak
2021-01-15 16:48   ` Michael T. Kloos

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=abf8a4c7-fa0c-6e2b-e272-e68531ede173@michaelkloos.com \
    --to=michael@michaelkloos.com \
    --cc=util-linux@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;
as well as URLs for NNTP newsgroup(s).