All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Schmitt" <scdbackup@gmx.net>
To: grub-devel@gnu.org
Subject: Re: How to prepare an ISO 9660 CD for booting via GRUB ?
Date: Tue, 06 Apr 2010 13:26:00 +0200	[thread overview]
Message-ID: <105894334819100@192.168.2.69> (raw)
In-Reply-To: <4BB74D95.2020002@gmail.com>

Hi,

i have roughly implemented the missing options
of grub-mkisofs in xorriso and am now comparing
the results.

The ISO image by xorriso boots from CD and from
USB stick. Are there other media types which
would impose a further challenge ?

If so: are there testers who would be willing
to try my ISO image (1.9 MB) on such media ?


------------------------------------------------

It seems that grub-mkisofs does not comply much
to the partition table prescription given by
Vladimir.

The image made by grub-mkisofs has 1550336 bytes
= 757 * 2048 , 3028 * 512.
It bears as partition table:

0000660                                    0080
0000700 0000 00cd 0000 0001 0000 ffff ffff 0000
0000720 0000 0000 0000 0000 0000 0000 0000 0000
*
0000760 0000 0000 0000 0000 0000 0000 0000 aa55

(od -x regrettably produces big-endian 16 bit.
 One has to swap:  00cd  is actually  cd 00 .)


The xorriso image is currently a bit larger
(see below).

1966080 bytes
= 960 * 2048 , 3840 * 2048
xorriso -toc reports:
ISO session  :   1 ,        32 ,       754s , ISOIMAGE

Partition table:

Image size is 32 + 754 = 786 * 2048 = 3144 * 512
= 0x0C48
I insert 0x00000C47 as end LBA (= 0c47 0000).
End C/H/S is c0,h49,s57 (= 31xx 0039).

0000660                                    0080
0000700 0002 31cd 0039 0001 0000 0c47 0000 0000
0000720 0000 0000 0000 0000 0000 0000 0000 0000
*
0000760 0000 0000 0000 0000 0000 0000 0000 aa55

Vladimir: does that look ok for you ?
Is 0x0C47 correct to depict image size 0x0C48 ?
Is my C/H/S computation ok ?
(I understand Wikipedia that way, but am not
sure.)

-------------------------------------------------

xorriso produces a larger image because of 64 kB
multi-session preparations, of 300 kB end padding
and of padding to full 32 kB blocks.
Most of this overhead can already be prevented.
I will see whether i can strip the output to
its net size of 754 sectors.

Nevertheless, neither the image of grub-mkisofs
nor of xorriso fit on a vanilla floppy disk.
 
Is it worth to sacrifice multi-session history
capabilities in order to save 64 kB ?
(If i do not duplicate the ISO superblock then
 i cannot mount older sessions of a multi-session
 ISO image.)


------------------------------------------------

Compatibility question:

Is the help text of grub-mkisofs
  --protective-msdos-label    Patch a protective DOS-style label in the image
essential to any frontend of grub-mkisofs ?

I would prefer to print something more neutral.
Like:
  --protective-msdos-label    Patch System Area by partition table
Any DOS connotation should be obvious by the
option name already.

-------------------------------------------------


Have a nice day :)

Thomas




  reply	other threads:[~2010-04-06 11:26 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-01 13:49 How to prepare an ISO 9660 CD for booting via GRUB ? Thomas Schmitt
2010-04-01 16:59 ` Frombenny
2010-04-01 17:59   ` Thomas Schmitt
2010-04-01 19:28     ` Drake Donahue
2010-04-01 20:43       ` Thomas Schmitt
2010-04-01 20:52         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-01 21:47         ` Drake Donahue
2010-04-01 18:22 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-01 20:25   ` Thomas Schmitt
2010-04-01 20:44     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-01 22:05       ` Thomas Schmitt
2010-04-01 22:43         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-02  9:32           ` Thomas Schmitt
2010-04-02 11:51             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-02 17:10               ` Thomas Schmitt
2010-04-02 17:24                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-03  8:03                   ` Thomas Schmitt
2010-04-03 14:15                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-06 11:26                       ` Thomas Schmitt [this message]
2010-04-07 12:47                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-07 14:11                           ` Thomas Schmitt
2010-04-09 20:53                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-09 22:28                               ` Thomas Schmitt
2010-04-09 22:53                                 ` Seth Goldberg
2010-04-10  7:37                                   ` Thomas Schmitt
2010-04-10 11:09                                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-10 11:57                                       ` Thomas Schmitt
2010-04-10 12:27                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-10 12:57                                           ` Thomas Schmitt
2010-04-10 15:22                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-10 23:14                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-11  7:46                                   ` Thomas Schmitt
2010-04-11 12:29                                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-11 12:56                                       ` Thomas Schmitt
2010-04-11 17:32                                         ` Colin Watson
2010-04-17 14:55                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-17 17:52                                           ` Thomas Schmitt
2010-04-17 18:04                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-17 19:39                                               ` Thomas Schmitt
2010-04-17 20:30                                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-18 11:26                                                   ` Thomas Schmitt
2010-04-24 19:54                                                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-18 12:41                                                   ` 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=105894334819100@192.168.2.69 \
    --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.