public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Daniel Frey <djqfrey@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] grub-0.97-r16 and profile 17.0 change
Date: Mon, 4 Dec 2017 19:39:42 -0800	[thread overview]
Message-ID: <ccb40792-a402-b023-e456-0337035995c1@gmail.com> (raw)
In-Reply-To: <d9ba6bf4-c810-3a20-82d1-668e8d5c1b9e@gentoo.org>

On 12/04/17 18:15, Michael Orlitzky wrote:
> On 12/04/2017 09:13 PM, Daniel Frey wrote:
>>
>> Well, it copies from /usr/share/grub and /lib/grub to /boot/grub, and
>> the sum of those directories are 270M without any kernels, etc
>> installed. I guess I'm going to have to tarball everything up,
>> repartition, and untar it.
>>
>> I guess I'll have to remember to use 500M+ /boot partitions now. Sigh.
>>
> 
> Before you do all that, some people on the bug have reported that the
> larger binaries are busted and won't boot.
> 
> 
> 

I can confirm that: right after I posted, I rebooted and all hell broke 
loose. I just got booted up again (I'd already removed gcc-5) using grub2.

I was genuinely annoyed with grub2 due to its update and massive config 
files, so I never upgraded to it. I usually had multiple kernel versions 
and grub2 helpfully labeled them all "Linux" so I couldn't tell them apart.

I figured out you can still write your own grub2 files, and it wasn't 
that difficult, other than its numbering is different now (no base-0 
partitions... argh.)

Below is an example of a simple grub.cfg that starts two separate 
kernels (I use a different kernel/partition for MythTV) and a 
chainloader for Windows 7. It took a few iterations for me to get 
everything to boot.

My partitions are as follows:
/dev/sda1: Windows tiny partition, the bootable one
/dev/sda2: Windows 7
/dev/sda3: /boot

As you can see, there's no base-0 counted partitions in the config, that 
messed me up more than once.

I also used PARTUUID for the root= parameter, you can get this by using 
`blkid /dev/sdaX`. Also, don't encapsulate your PARTUUID in quotes, that 
didn't work for me. I simply had (as an example) 
root=PARTUUID=abcdef33-01 and it boots fine.

It was simple enough to convert (and grub-2.02 actually compiles fine 
with gcc-6 and the new profile) and figured others were probably like me 
and avoiding the grub2 config mess.

At least now I know how to configure grub2 manually and simply, so I 
won't avoid it any more.

Dan

------grub.cfg------
timeout=10
default=0

menuentry 'Gentoo 4.1.43-r1' {
         root=hd0,3
         linux /boot/kernel-4.1.43-gentoo-r1 root=PARTUUID=<your 
PARTUUID> quiet rootfstype=ext4
}

menuentry 'Gentoo - MythTV' {
         root=hd0,3
         linux /boot/kernel-4.1.43-gentoo-r1-mythtv root=PARTUUID=<your 
PARTUUID> quiet rootfstype=ext4
}


menuentry "Windows 7" {
         set root=(hd0,1)
         chainloader +1
         boot
}
--------------------



  reply	other threads:[~2017-12-05  3:39 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-02 12:30 [gentoo-user] grub-0.97-r16 and profile 17.0 change Mick
2017-12-02 21:28 ` [gentoo-user] " Ian Zimmerman
2017-12-02 23:28   ` Mick
2017-12-03  2:11     ` Adam Carter
2017-12-02 23:33   ` Michael Orlitzky
2017-12-03  1:07     ` Heiko Baums
2017-12-03  1:14       ` Michael Orlitzky
2017-12-03  2:18         ` Ian Zimmerman
2017-12-03  2:27           ` Michael Orlitzky
2017-12-03 10:57 ` [gentoo-user] " Peter Humphrey
2017-12-03 15:12   ` Mick
2017-12-05  1:54     ` Daniel Frey
2017-12-05  2:13       ` Daniel Frey
2017-12-05  2:15         ` Michael Orlitzky
2017-12-05  3:39           ` Daniel Frey [this message]
2017-12-05 10:15             ` Peter Humphrey
2017-12-05 10:44             ` Tom H
2017-12-05  7:06         ` [gentoo-user] " Ian Zimmerman
2017-12-05  2:20       ` [gentoo-user] " wabe
2017-12-05 10:11         ` Mick
2017-12-05 10:21           ` Raffaele Belardi
2017-12-05 12:48             ` Mick
2017-12-06  1:58           ` wabe
2017-12-06 12:28     ` Peter Humphrey
2017-12-07 12:04       ` Kai Peter
2017-12-07 14:22         ` Peter Humphrey
2017-12-07 15:06           ` Helmut Jarausch
2017-12-07 16:51           ` Kai Peter

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=ccb40792-a402-b023-e456-0337035995c1@gmail.com \
    --to=djqfrey@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