From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: [OT] Making a bootable USB flash drive from ISO image
Date: Thu, 2 Oct 2014 21:38:36 +0000 (UTC) [thread overview]
Message-ID: <m0kgks$gtg$1@ger.gmane.org> (raw)
In-Reply-To: 20141002222412.6e07e903@hactar.digimed.co.uk
On 2014-10-02, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Thu, 2 Oct 2014 21:11:03 +0000 (UTC), Grant Edwards wrote:
>
>> What I'm wondering is why all the blog posts, wiki pages, and HOWTOs
>> showing either the complicated command-line procedures or
>> dependency-heavy "USB creator" apps? (Many of them quite recent.)
>
> There is no need for them.
>> Did this work because the Xubuntu people do something special when
>> creating the ISO image? (If so, then they have my thanks!)
>
> They did something, but it's not particularly special. All they did was
> run isohybrid (from syslinux) on the ISO image. It uses unused space at
> the start of the DVD ISO specification that is normally left blank to
> hold a partition table so the image can be copied to a USB drive and
> appear as a partitioned disk.
There must be a little more to it than that. Does it also install
along with a parition table some bootloader code that knows where/how
to boot the ISO boot image? [After a little googling] It also
installs MBR bootloader code that knows how to find/load isolinux.bin:
http://www.syslinux.org/wiki/index.php/Isohybrid
Interestingly, it also created a second EFI boot partition which
exists inside the main parition.
$ sudo fdisk -l /dev/sdd
Disk /dev/sdd: 7.3 GiB, 7864320000 bytes, 15360000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x19fabbe1
Device Boot Start End Blocks Id System
/dev/sdd1 * 0 1904639 952320 0 Empty
/dev/sdd2 14296 18967 2336 ef EFI (FAT-12/16/32)
I can mount the sdd2 VFAT partition, and there are a couple files
in there:
sdd2
└── efi
└── boot
├── bootx64.efi
└── grubx64.efi
--
Grant Edwards grant.b.edwards Yow! SHHHH!! I hear SIX
at TATTOOED TRUCK-DRIVERS
gmail.com tossing ENGINE BLOCKS into
empty OIL DRUMS ...
next prev parent reply other threads:[~2014-10-02 21:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 21:11 [gentoo-user] [OT] Making a bootable USB flash drive from ISO image Grant Edwards
2014-10-02 21:24 ` Neil Bothwick
2014-10-02 21:38 ` Grant Edwards [this message]
2014-10-02 22:30 ` [gentoo-user] " Neil Bothwick
2014-10-03 15:19 ` James
2014-10-03 23:38 ` thegeezer
2014-10-06 11:52 ` Neil Bothwick
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='m0kgks$gtg$1@ger.gmane.org' \
--to=grant.b.edwards@gmail.com \
--cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox