From: Bruce Dubbs <bruce.dubbs@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: USB3 3TB HDD boot
Date: Fri, 15 Mar 2013 11:25:23 -0500 [thread overview]
Message-ID: <51434B73.6000804@gmail.com> (raw)
In-Reply-To: <318BCF38-E9A6-4AE3-907B-21F22CC00A4B@colorremedies.com>
Chris Murphy wrote:
>
> On Mar 15, 2013, at 8:51 AM, Lennart Sorensen
> <lsorense@csclub.uwaterloo.ca> wrote:
>
>> On Thu, Mar 14, 2013 at 08:56:18PM -0600, Chris Murphy wrote:
>>> Right, for a 4Kn drive, to read LBA 1 and get the GPT header I'd
>>> need:
>>>
>>> sudo dd if=/dev/disk3 skip=8 count=1 2>/dev/null | hexdump -C
>>
>> Wouldn't using 'bs=4096' make things simpler and more obvious?
>
> How would it?
>
> These structures are still predicated on a 512 byte block. The MBR is
> always 512 bytes, but on a 4096/4096 4Kn drive, LBA 0 is 4096 bytes.
> So if I don't want to see 3584 bytes of useless garbage, I can't set
> the dd block size to 4096, or I get extra information.
>
> If I want to see just the GPT header, which while only ~92 bytes, by
> spec it gets its own sector, there's far less superfluous information
> using a bs of 512 bytes than 4096 bytes.
There is more than one way to do things.
sudo dd if=/dev/disk3 bs=4096 skip=1 count=1 | cut -c 1-92 | hexdump -C
is one way that matches the physical drive.
The first mentioned way works too, but doesn't reflect as well what is
really going on.
-- Bruce
next prev parent reply other threads:[~2013-03-15 16:25 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 15:36 USB3 3TB HDD boot Bob Lemar
2013-02-12 18:59 ` Seth Goldberg
2013-02-12 19:19 ` Aleš Nesrsta
2013-03-04 16:27 ` Bob Lemar
2013-03-04 18:46 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-03-04 19:19 ` Lennart Sorensen
2013-03-04 19:33 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-03-04 19:43 ` Lennart Sorensen
2013-03-04 23:16 ` Chris Murphy
2013-03-05 7:22 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-03-15 2:18 ` Chris Murphy
2013-03-15 2:38 ` Andrey Borzenkov
2013-03-15 2:56 ` Chris Murphy
2013-03-15 14:51 ` Lennart Sorensen
2013-03-15 15:59 ` Chris Murphy
2013-03-15 16:25 ` Bruce Dubbs [this message]
2013-03-15 17:53 ` Lennart Sorensen
2013-03-15 18:38 ` Chris Murphy
2013-03-18 18:34 ` Bob Lemar
2013-03-18 18:56 ` Chris Murphy
2013-03-18 19:41 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-03-18 21:05 ` Chris Murphy
2013-03-18 21:46 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-03-18 22:36 ` Chris Murphy
2013-03-18 23:26 ` Elliott, Robert (Server Storage)
2013-03-18 22:59 ` Chris Murphy
2013-03-20 14:24 ` Phillip Susi
2013-03-04 22:39 ` Chris Murphy
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=51434B73.6000804@gmail.com \
--to=bruce.dubbs@gmail.com \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.