Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Booting memtest86 from grub2
Date: Sun, 12 May 2013 14:00:17
Message-Id: 518FA064.3060002@gmail.com
In Reply to: Re: [gentoo-user] Booting memtest86 from grub2 by Neil Bothwick
1 Neil Bothwick wrote:
2 > On Sun, 12 May 2013 07:40:15 -0500, Dale wrote:
3 >
4 >>> I don't know about memtest86, but memtest86+ installs a menu file
5 >>> in /etc/grub.d, which means grub-mkconfig handles it.
6 >>>
7 >>> % cat /etc/grub.d/39_memtest86+
8 >>> #!/bin/sh
9 >>> exec tail -n +3 $0
10 >>>
11 >>> menuentry "memtest86+ 4.20" {
12 >>> linux16 /boot/memtest86plus/memtest
13 >>> }
14 >>>
15 >>> menuentry "memtest86+ 4.20 (netbsd)" {
16 >>> insmod bsd
17 >>> knetbsd /boot/memtest86plus/memtest.netbsd
18 >>> }
19 >>
20 >> That is what I did last. I just emerged the thing and it put the file
21 >> there. You know I don't reboot often here but this is what it says
22 >> when I update grub:
23 >>
24 >> root@fireball / # /root/grub-update
25 >> Generating grub.cfg ...
26 >> Found linux image: /boot/kernel-3.8.7-1
27 >> Found linux image: /boot/kernel-3.6.6-1
28 >> Found linux image: /boot/kernel-3.5.3-3
29 >> done
30 >> root@fireball / #
31 >>
32 >> Shouldn't there be a line for the memtest entry or does it not show
33 >> that? Maybe it is working and I don't know it yet. lol
34 >
35 > There are no echo commands in the file, so it doesn't show anything when
36 > adding. grub-mkconfig doesn't output anything by default, only the helper
37 > scripts generate non-error output
38 >
39 > Check the contents of grub.cfg.
40
41 Well I be darn.
42
43 ### BEGIN /etc/grub.d/39_memtest86+ ###
44
45 menuentry "memtest86+ 4.20" {
46 linux16 /boot/memtest86plus/memtest
47 }
48
49 menuentry "memtest86+ 4.20 (netbsd)" {
50 insmod bsd
51 knetbsd /boot/memtest86plus/memtest.netbsd
52 }
53 ### END /etc/grub.d/39_memtest86+ ###
54
55 There it be. I wonder if it worked all the other times I tried?
56
57 >
58 >
59 >> Oh, I have a script that has the longer command in it with all the nifty
60 >> options. That's why the command is different.
61 >>
62 >> root@fireball / # cat /root/grub-update
63 >>
64 >> grub2-mkconfig -o /boot/grub2/grub.cfg
65 >
66 > I do a similar thing, except the script is in /usr/local/bin, where it
67 > should be :P, and it checks if /boot is mounted ro and remounts it rw if
68 > necessary.
69 >
70 >
71
72
73 I keep mine mounted anyway. I'm not a script writer by any means.
74
75 Next time I reboot, I'll see if it is really there or not. Looks like
76 it is.
77
78 Thanks much.
79
80 Dale
81
82 :-) :-)
83
84 --
85 I am only responsible for what I said ... Not for what you understood or
86 how you interpreted my words!

Replies

Subject Author
Re: [gentoo-user] Booting memtest86 from grub2 Neil Bothwick <neil@××××××××××.uk>