All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Schmitt" <scdbackup@gmx.net>
To: grub-devel@gnu.org
Subject: Re: How important is the MBR partition offset of grub-mkrescue ?
Date: Sun, 03 Nov 2013 16:21:55 +0100	[thread overview]
Message-ID: <27179651378991409308@scdbackup.webframe.org> (raw)
In-Reply-To: <52764A2E.5050701@gmail.com>

Hi,

> Isn't this HFS+ catalog sufficient for the problem at hand?

I see the misleading link to /dev/sdb1 with Debian 6
and with a Debian 7 based distro. Dunno which udev rule
first looks at /dev/sdb for an ISO PVD and then links
./by-label to the first partition of that device.

The filesystem itself is not necessarily mounted.
Actually, the /dev/sdb1 with start at LBA 1 cannot be mounted.
Neither as ISO nor as HFS+ (if that was present). An offset
of 512 bytes would spoil any address that works in an ISO image.


> Can we detect presence of this bug?

It is a bug of the perceiving system. Linux specific. Lifetime
at least for Debian 6 and 7, i'd say. 

Put a grub-mkrescue generated ISO on a USB stick (e.g. /dev/sdb),
replug, and see what your Linux has in /dev/disk/by-label.
(If it has such a directory, at all.)


> Additional problem you don't mention: consumption of space by additional
> headers. We use xorriso for making floppies as well (and it works).

The feature is easy to add by user arguments of grub-mkrescue
anyway. No need for action inside grub-mkrescue.
I am mainly fishing for experience with pure GRUB2 boot setups
and Linux. Most distros let BIOS boot ISOLINUX.

Is there a distro which produces its ISO images with grub-mkrescue
and uses all or most of the BIOS, UEFI, and Apple features ?

As soon as i have a working ISO image, i can play with it.
I never learned to build operating systems or boot loaders myself.
It would be helpful to have a copy of the grub-mkrescue script
which was used for image production. I understand it evolves.


> Another solution is to have a hybrid ISO + FAT or ISO + HFS+ + FAT layouts.

But will this help against udev madness ?

Whatever. If i remember correctly, we still have open plans
about adding FAT to the super-hybrid layout.
See the very end of
  http://bazaar.launchpad.net/~libburnia-team/libisofs/scdbackup/view/head:/doc/boot_sectors.txt

(I see that i did not yet document the --grub2-boot-info
patching.)


Have a nice day :)

Thomas



  reply	other threads:[~2013-11-03 15:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-02 18:57 How important is the MBR partition offset of grub-mkrescue ? Thomas Schmitt
2013-11-02 23:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-03 12:21   ` Thomas Schmitt
2013-11-03 13:05     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-03 15:21       ` Thomas Schmitt [this message]
2013-11-03 15:48         ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-03 16:19           ` Thomas Schmitt
2013-11-03 16:32             ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-03 17:16           ` Thomas Schmitt
2013-11-04 12:08             ` Andrey Borzenkov
2013-11-04 12:08               ` Andrey Borzenkov
2013-11-04 14:03               ` Thomas Schmitt
2013-11-04 14:10                 ` Andrey Borzenkov
2013-11-04 14:21                   ` Thomas Schmitt
2013-11-04 15:44               ` Thomas Schmitt

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=27179651378991409308@scdbackup.webframe.org \
    --to=scdbackup@gmx.net \
    --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.