From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4B79613838B for ; Mon, 6 Oct 2014 11:52:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B54C4E0A8A; Mon, 6 Oct 2014 11:52:15 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A230E0A7C for ; Mon, 6 Oct 2014 11:52:14 +0000 (UTC) Received: from digimed.co.uk (shooty.digimed.co.uk [192.168.1.8]) by mail.digimed.co.uk (Postfix) with ESMTPA id 9BC9E25DD6 for ; Mon, 6 Oct 2014 12:52:12 +0100 (BST) Date: Mon, 6 Oct 2014 12:52:10 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: [OT] Making a bootable USB flash drive from ISO image Message-ID: <20141006125210.3eb97f62@digimed.co.uk> In-Reply-To: References: <20141002222412.6e07e903@hactar.digimed.co.uk> <20141002233019.1891d34e@digimed.co.uk> Organization: Digital Media Production X-Mailer: Claws Mail 3.10.1-119-g7fbc83 (GTK+ 2.24.24; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/hylxaWz2nmDSyDiCpN7ueM3"; protocol="application/pgp-signature" X-Archives-Salt: acc5aa4a-8c85-4b31-a48d-0b650ea1d568 X-Archives-Hash: 1b61f90adf19b521d649e1eecc539579 --Sig_/hylxaWz2nmDSyDiCpN7ueM3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 3 Oct 2014 15:19:40 +0000 (UTC), James wrote: > > I was also wrong in stating I use isohybrid for the LXFDVDs. I used to > > but since switching to using GRUB to boot the DVDs, there is no need > > for it. GRUB bootable DVD ISOs can boot from USB sticks by default. =20 > Can you elaborate? For example how do you know a given *.iso* is grub > bootable? It there a test? Is there a list? Just burn it to a usbstick > and test? I'm not referring to booting ISOs from GRUB here, the LXFDVDs use GRUB as their bootloader, instead of isolinux, which allows for various options for the builder (me) that aren't available with isolinux. As fr as booting individual ISOs with GRUB, you can boot any ISO this way, the problem is telling the distro's init script that you have done so and that is should look for an ISO image instead of a DVD drive to load the rest of the files. With some distros this is trivial, anything Ubuntu derived simply seeds an extra kernel option to specify the location of the ISO. For others I had to modify the initrd to get it to work while some have so far defeated me. Most do work, but you need to Google for the specifics for that particular distro, there is no standard way. One Arch-derivative even changed the names of all the variables in the init script for no apparent reason other than to pretend it wasn't an arch script. > Justuse a tool such as the aforementioned "isohybrid" can > convert any *.iso* to a grub bootable? I like the idea of one image > (iso) being able to install via MBR or grub. =20 I usually put a System Rescue Cd image in /boot and have this as an executable file in /etc/grub.d #!/bin/sh BOOT_PART=3D"hd0,gpt1" ISOS=3D$(ls -1r /boot/systemrescuecd-x86-*.iso) if [[ -n "$ISOS" ]]; then echo -e "submenu \"System Rescue CD\" {" echo -e "\tset root=3D'$BOOT_PART'" for i in $ISOS; do ISO=3D$(basename $i) VER=3D$(echo $ISO | sed 's/systemrescuecd-x86-\(.*\)\.iso/\1/') echo -e "\n\tmenuentry \"System Rescue CD $VER - Std kernel\" {" echo -e "\t\tloopback loop /$ISO" echo -e "\t\tlinux (loop)/isolinux/rescue64 rootpass=3Dyeahright setkmap= =3Duk isoloop=3D$ISO" echo -e "\t\tinitrd (loop)/isolinux/initram.igz" echo -e "\t}" echo -e "\n\tmenuentry \"System Rescue CD $VER - Alt kernel\" {" echo -e "\t\tloopback loop /$ISO" echo -e "\t\tlinux (loop)/isolinux/altker64 rootpass=3Dnochance setkmap= =3Duk isoloop=3D$ISO" echo -e "\t\tinitrd (loop)/isolinux/initram.igz" echo -e "\t}" done echo -e "}\n" echo -e "menuentry ' ' { true }\n" fi --=20 Neil Bothwick Standard: (n., adj.) a design target which manufacturers may embellish, imp= rove upon, or ignore as they wish, so long as it can be used profitably in their advertising. --Sig_/hylxaWz2nmDSyDiCpN7ueM3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlQygm4ACgkQum4al0N1GQPY0ACfSc1suZemtdDIFxzH3Up5+GHk j+QAoIEarns7JHUuREK0hIEJAQbNJb29 =x4SF -----END PGP SIGNATURE----- --Sig_/hylxaWz2nmDSyDiCpN7ueM3--