Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #162375

Re: Putting It All On a Stick

From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: Putting It All On a Stick
Date 2015-12-31 17:30 +0100
Message-ID <qLOgV-6Ka-5@gated-at.bofh.it> (permalink)
References <qLNkS-68I-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

Steve Matzura:
> Thomas, just dd the file? That really works?

Yes. It's called "isohybrid".
  http://www.syslinux.org/wiki/index.php/Isohybrid

As said: Copy it onto the base device, the whole "disk".
It must overwrite MBR, partition table, GPT, whatever partitioning
and boot sector is present on the disk.

Common mistakes are to copy it as data file into a file system,
or as filesystem image into a partition of the "disk".


> I've heard of this being the way to do things, but find it hard to
> understand how it could work. I suppose the boot loaders know what to
> do with ISO images.

It is an interesting adventure to boot on as many systems as possible:
{ BIOS, EFI, Mac firmware, ... } x { Hard disk/USB stick, CD/DVD/BD }

MBR x86 boot code at the start of the ISO image brings you to
the file

  /isolinux/isolinux.bin

in the ISO image, where CD booting would start too.

The MBR bears a partition table. Partition 1 has the
"bootable/active" flag for stubborn BIOSes which would not
boot without it. Partition 2 is the EFI System Partition:

  $ /sbin/fdisk -l debian-8.2.0-amd64-BD-1.iso
  ...
  Device                       Boot Start      End  Sectors  Size Id Type
  debian-8.2.0-amd64-BD-1.iso1 *        0 43859651 43859652 20.9G  0 Empty
  debian-8.2.0-amd64-BD-1.iso2      75632    76463      832  416K ef EFI (FAT-12/16/32)

Because SYSLINUX does not boot from CD via EFI firmware,
the EFI equipment is of GRUB2.
If you mount the ISO

  # mkdir /mnt/iso
  # mount -o loop debian-8.2.0-amd64-BD-1.iso /mnt/iso

then you can mount the EFI System Partition as FAT filesystem

  # mkdir /mnt/fat
  # mount -o loop /mnt/iso/boot/grub/efi.img /mnt/fat

and see

  # ls -l /mnt/fat/efi/boot/bootx64.efi
  -rwxr-xr-x 1 root root 392192 Sep  6 11:14 /mnt/fat/efi/boot/bootx64.efi

This file brings you from EFI to the GRUB2 configuration in
  /mnt/iso/boot/grub

For certain old x86 Macs there may be even a HFS+ filesystem
with blessings and all. debian-cd does not do this. But Fedora
LiveCD has HFS+.
The result from grub-mkrescue has HFS+ too. It uses GRUB2 for
both, BIOS and EFI.

Debian just has an Apple Partition Map entry which points to
the EFI System Partition. (I would really like to know whether
this is of any paractical use.)


Have a nice day :)

Thomas

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-29 22:30 +0100
  Re: Putting It All On a Stick "Andrew M.A. Cater" <amacater@galactic.demon.co.uk> - 2015-12-29 22:40 +0100
    Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 03:00 +0100
      Re: Putting It All On a Stick Rick Thomas <rbthomas@pobox.com> - 2015-12-30 05:40 +0100
        Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 15:00 +0100
      Re: Putting It All On a Stick <tomas@tuxteam.de> - 2015-12-30 10:50 +0100
        Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 15:10 +0100
          Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-30 16:30 +0100
            Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-30 16:40 +0100
              Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 16:50 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-30 19:50 +0100
            Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 16:40 +0100
              Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-30 18:30 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 19:00 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-30 19:20 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 19:30 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-30 20:00 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 20:40 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 20:50 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-30 21:00 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-30 20:50 +0100
                Re: Putting It All On a Stick Joe <joe@jretrading.com> - 2015-12-30 21:40 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-31 00:10 +0100
                Re: Putting It All On a Stick Joe <joe@jretrading.com> - 2015-12-31 10:30 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-31 11:30 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 16:30 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-31 17:10 +0100
                Re: Putting It All On a Stick Richard Owlett <rowlett@cloud85.net> - 2016-01-01 16:40 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-30 21:30 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-30 22:20 +0100
                Re: Putting It All On a Stick "Thomas Schmitt" <scdbackup@gmx.net> - 2015-12-30 22:40 +0100
                Re: Putting It All On a Stick Rick Thomas <rbthomas@pobox.com> - 2015-12-31 02:20 +0100
                Re: Putting It All On a Stick "Thomas Schmitt" <scdbackup@gmx.net> - 2015-12-31 10:20 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 16:50 +0100
                Re: Putting It All On a Stick Richard Owlett <rowlett@cloud85.net> - 2016-01-01 15:20 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 16:30 +0100
                Re: Putting It All On a Stick Joe <joe@jretrading.com> - 2015-12-31 16:50 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 17:10 +0100
                Re: Putting It All On a Stick "Thomas Schmitt" <scdbackup@gmx.net> - 2015-12-31 17:30 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 18:00 +0100
                Re: Putting It All On a Stick "Thomas Schmitt" <scdbackup@gmx.net> - 2015-12-31 18:20 +0100
                Re: Putting It All On a Stick Eduard Bloch <edi@gmx.de> - 2015-12-31 19:20 +0100
                Re: Putting It All On a Stick John Hasler <jhasler@newsguy.com> - 2015-12-31 19:30 +0100
                Re: Putting It All On a Stick "Thomas Schmitt" <scdbackup@gmx.net> - 2016-01-01 11:40 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-31 18:30 +0100
                Re: Putting It All On a Stick <tomas@tuxteam.de> - 2015-12-31 19:00 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-31 20:20 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 16:40 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 17:20 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-31 17:50 +0100
                Re: Putting It All On a Stick Steve Matzura <sm@noisynotes.com> - 2015-12-31 18:00 +0100
                Re: Putting It All On a Stick Rick Thomas <rbthomas@pobox.com> - 2016-01-02 22:00 +0100
                Re: Putting It All On a Stick "Thomas Schmitt" <scdbackup@gmx.net> - 2015-12-31 18:00 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-31 17:20 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-30 20:40 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-30 21:00 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-31 00:10 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-31 00:20 +0100
                Re: Putting It All On a Stick Chris Bannister <cbannister@slingshot.co.nz> - 2016-01-01 16:20 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2016-01-01 17:20 +0100
                Re: Putting It All On a Stick Chris Bannister <cbannister@slingshot.co.nz> - 2016-01-06 15:00 +0100
                Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2016-01-06 16:50 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2016-01-06 20:30 +0100
                Re: Putting It All On a Stick Rick Thomas <rbthomas@pobox.com> - 2015-12-30 21:00 +0100
                Re: Putting It All On a Stick Brian <ad44@cityscape.co.uk> - 2015-12-30 22:00 +0100
              Re: Putting It All On a Stick Lisi Reisz <lisi.reisz@gmail.com> - 2015-12-30 19:50 +0100
          Re: Putting It All On a Stick <tomas@tuxteam.de> - 2015-12-30 16:50 +0100
  Re: Putting It All On a Stick Richard Owlett <rowlett@cloud85.net> - 2015-12-30 18:00 +0100

csiph-web