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 064BA13989A for ; Thu, 27 Aug 2015 19:03:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 087541431F; Thu, 27 Aug 2015 19:03:12 +0000 (UTC) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C74031429B for ; Thu, 27 Aug 2015 19:03:10 +0000 (UTC) Received: by widdq5 with SMTP id dq5so2083687wid.1 for ; Thu, 27 Aug 2015 12:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=mgMcnPtdc9Cdfu1+yY48OTz5VMCbmnPSLW7Fz/6Lrec=; b=mOZDJGPGRSTkSz3c/xC1qj98zHd71KAtjmkiHFskOrZMd0mMRhx+QbEvZcbQbC0clv RFP3iN8bjSwcnYMDTY5BZg5vk7DcVNY/Wr2BzsFbMVKt9jg+FHMOLz+Xzfl8YJ08i1bS tbybFvPqmrJTlhvIFJOtWQqYffoJyhdkkk+6QpLeY1GG9mU5JMiB2CwcZwaWZqXrRAQx ttVC6hJz2xJQodAIMeMMRyXEfvTFWzlAXPIbVNT4Jb5EcRzxmt7nOlDty0nHPtb0DSZ5 8VjWSQjER8PScDGksgZ/2i0LWEsxl7Xg775BeE8qlKC5CYjilxRqTQhI+8DFQ8bwdimb eJng== X-Received: by 10.180.39.172 with SMTP id q12mr144178wik.17.1440702189499; Thu, 27 Aug 2015 12:03:09 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id du6sm87454wib.24.2015.08.27.12.03.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Aug 2015 12:03:08 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Grub1: Cant ? Re: keeping grub 1 Date: Thu, 27 Aug 2015 20:02:54 +0100 User-Agent: KMail/1.13.7 (Linux/4.0.5-gentoo; KDE/4.14.8; x86_64; ; ) References: In-Reply-To: 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; boundary="nextPart4755793.AdKtV0OiJb"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201508272003.05417.michaelkintzios@gmail.com> X-Archives-Salt: e6e6faeb-4509-4170-a50c-6fa33badfe5a X-Archives-Hash: c48e6cd88daa59fa2d079e19ace74ac7 --nextPart4755793.AdKtV0OiJb Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thursday 27 Aug 2015 19:31:34 Fernando Rodriguez wrote: > On Thursday, August 27, 2015 2:23:56 PM Fernando Rodriguez wrote: > > On Thursday, August 27, 2015 8:49:13 AM Mike Gilbert wrote: > > > On Wed, Aug 26, 2015 at 6:27 PM, Michel Catudal > >=20 > > wrote: > > > > Le 2015-08-26 13:37, Fernando Rodriguez a =C3=A9crit : > > > >> This may not be complete and some of these may be possible to some >=20 > extent >=20 > > > >> with > > > >> legacy grub: > > > >>=20 > > > >> 1. Grub Legacy is 32-bit only, so you need 32-bit libraries or use >=20 > grub- >=20 > > > >> static. Grub2 is portable, even beyond Intel architectures. > > > >> 2. Grub2 has been rewritten to be modular. Instead of Grub's stages >=20 > model >=20 > > > >> it > > > >> uses a core image and a bunch of modules. > > > >> 3. EFI support without chainloading or other hacks. > > > >> 4. Better filesystem support. Including loopback devices. > > > >> 5. Graphics and theming support. > > > >> 6. Grub2's config file (the one it tells you not to edit manually) > > > >> is scriptable > > > >> using a shell-like script language. > > > >> 7. Password support for each entry. > > > >=20 > > > > I've had serious problems in the past getting to to install on a >=20 > partition >=20 > > > > and gave up. Is that bug fixed? It insists on installing on the MBR > > > > which > >=20 > > is > >=20 > > > > unacceptable. > > >=20 > > > It's not a bug, and it won't be "fixed". Installing on a partition is > > > simply not supported. > >=20 > > I just got it to work with these steps: > >=20 > > 1. Mount the partition to /mnt/usb > > 2. Run: > >=20 > > #grub2-install --directory /usr/lib/grub/i386-pc --boot- > > directory=3D/mnt/usb/boot --force /dev/sdb2 > > Installing for i386-pc platform. > > grub2-install: warning: File system `ext2' doesn't support embedding. > > grub2-install: warning: Embedding is not possible. GRUB can only be >=20 > installed >=20 > > in this setup by using blocklists. However, blocklists are UNRELIABLE > > and their use is discouraged.. > > Installation finished. No error reported. > >=20 > > 3. Set the partition as active with fdisk. > >=20 > > And it booted. To verify that it didn't overwrite the mbr I overwrote it >=20 > with >=20 > > syslinux's mbr as follows: > >=20 > > sudo dd conv=3Dnotrunc bs=3D440 count=3D1 if=3D/usr/share/syslinux/mbr.= bin >=20 > of=3D/dev/sdb >=20 > > Still boots! >=20 > It is a good idea to make all grub2 files in /boot immutable to avoid > problems. You beat me to it. Yes GRUB2 can be installed on a partition instead of th= e=20 MBR and yes it complains about it. However, it works regardless. I have d= one=20 it a couple of times so far, just as you describe above. In my case I=20 chainload GRUB2 with NTLDR or modern equivalent and this is how I know that= =20 the MBR was not being overwritten by it. =2D-=20 Regards, Mick --nextPart4755793.AdKtV0OiJb Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJV317pAAoJELAdA+zwE4Ye5T4H/1yrHgxi/oiWqPRJ8UQS1+EK gljq4Ni4aXsyEsDVVPSZxTE3M0Q5D1D5pniYFnhHwgQCiyWh5XeNIdIVdeFEUYwR 08tO6ng2u/oMVZv4vaueqpFKFqzlT+J0upCKLXM1ER3ngAXL4OG01GLKYe5zaNxR HPOP3V9pUYaXDdC0L9YvNKeozGm6JK7lgWug0i/mt+HXvYSvy4gPO1QmWM4zGPTW BvDA5VrKWQNa3ZFqthBK2jVS2twLDrnXZaIhqytnWk8vHJ5amHsTrjOrnJGN/hoF +BiYbnjVhQR4ZmBvO/4S4gAMrvi7x1WrShtR7c96tTR9TgDDjaYeaHmG3AVlHs4= =HiS6 -----END PGP SIGNATURE----- --nextPart4755793.AdKtV0OiJb--