From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type.
Date: Fri, 15 Mar 2013 11:09:09 -0600 [thread overview]
Message-ID: <514355B5.8080803@wwwdotorg.org> (raw)
In-Reply-To: <CAJxxZ0Nua6DCbPYjQafxdc+OyiUF=ckMwPqhcGNkeA00FWrLdg@mail.gmail.com>
On 03/15/2013 12:36 AM, Sonic Zhang wrote:
...
> We can erase the first 3 blocks completely before formatting it again.
> But, nothing can prevent others from formatting the SD card with
> different tools.
Surely any tool that creates a partition table on a device when there
wasn't any partition table there before (i.e. converts a raw filesystem
to a partition table) should zero out the "boot code" area of that MBR,
since there is no "boot code" area in a raw filesystem. This seems like
a bug in whatever partitioning tool was used.
If any device /always/ historically contained a real partition table, or
/always/ contained a raw FAT filesystem, then there will be no issue.
It's only when switching between the two, and not clearing out all the
data in the MBR when doing so, that you get this problem.
next prev parent reply other threads:[~2013-03-15 17:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 9:56 [U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type sonic.adi at gmail.com
2013-03-11 17:28 ` Stephen Warren
2013-03-12 2:59 ` Sonic Zhang
2013-03-13 17:11 ` Stephen Warren
2013-03-14 2:51 ` Sonic Zhang
2013-03-14 4:36 ` Stephen Warren
2013-03-14 7:31 ` Sonic Zhang
2013-03-14 17:53 ` Stephen Warren
2013-03-15 5:10 ` Stephen Warren
2013-03-15 6:36 ` Sonic Zhang
2013-03-15 13:14 ` Tom Rini
2013-03-15 17:09 ` Stephen Warren [this message]
2013-03-15 17:29 ` Tom Rini
2013-03-15 12:46 ` Tom Rini
2013-03-15 17:07 ` Stephen Warren
[not found] ` <CAJxxZ0Pk2CtS0FuYJyZDqq3NyUZEnCjnjsksx7buv8RiLf+3vQ@mail.gmail.com>
[not found] ` <513E9C79.2000708@wwwdotorg.org>
2013-03-13 2:58 ` Sonic Zhang
2013-03-13 16:51 ` Stephen Warren
2013-03-13 17:01 ` Stephen Warren
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=514355B5.8080803@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/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