Re: [Lug-bg] memtest
- Subject: Re: [Lug-bg] memtest
- From: Kristian Kirilov <d3v1ous@xxxxxxxxxxxx>
- Date: Sat, 31 Jul 2010 10:53:04 +0300
On Fri, 2010-07-30 at 23:57 +0300, Григор Колев wrote:
> В 10:19 +0300 на 30.07.2010 (пт), Yulian Stefanov написа:
> > http://www.google.bg/search?hl=bg&q=grub2+memtest
> > +ubuntu&aq=f&aqi=&aql=&oq=&gs_rfai=
> > Лек ден и успешна седмица,
> >
> > Юлиан Стефанов
> > stefanov.yulian[at]gmail.com
> >
> >
> > 2010/7/28 Григор Колев <grigor.kolev@xxxxxxxxx>
> > Hi.
> > Ubuntu 10.04 добре е направено да се стартира бързо, но някой
> > може ли да
> > ми каже как да му пусна memtest в началото.
> > --
> > Григор Колев <grigor.kolev@xxxxxxxxx>
> >
> > _______________________________________________
> > Lug-bg mailing list
> > Lug-bg@xxxxxxxxxxxxxxxxxx
> > http://linux-bulgaria.org/mailman/listinfo/lug-bg
> >
> > _______________________________________________
> > Lug-bg mailing list
> > Lug-bg@xxxxxxxxxxxxxxxxxx
> > http://linux-bulgaria.org/mailman/listinfo/lug-bg
>
> Добавих го в менюто със следните редове в /boot/grub/grub.cfg
> #------------------------------------------------------------
> ### BEGIN /etc/grub.d/20_memtest86+ ###
> menuentry "Memory test (memtest86+)" {
> linux16 /memtest86+.bin
> }
> menuentry "Memory test (memtest86+, serial console 115200)" {
> linux16 /memtest86+.bin console=ttyS0,115200n8
> }
> ### END /etc/grub.d/20_memtest86+ ###
> #-------------------------------------------------------------
> Но сега дава следната грешка когато го избера
> error: file not found
> Press any key to continue...
>
>
>
Така както си го описал направо в grub.cfg мисля, че ако напишеш
update-grub ще той ще презапише конфигурацията.
d3v1ous@d3v1ous-desktop:/etc/grub.d$ ls
00_header 05_debian_theme 10_linux 20_memtest86+ 30_os-prober
40_custom README
d3v1ous@d3v1ous-desktop:/etc/grub.d$ cat 20_memtest86+
#!/bin/sh
set -e
# older versions of grub2 do not have this yet (LP: #459080)
if [ ! -e /usr/lib/grub/grub-mkconfig_lib ]; then
echo "no grub-mkconfig_lib, exiting"
exit 0
fi
. /usr/lib/grub/grub-mkconfig_lib
# We can't cope with loop-mounted devices here.
case ${GRUB_DEVICE_BOOT} in
/dev/loop/*|/dev/loop[0-9])
exit 0
;;
esac
if test -e /boot/memtest86+.bin ; then
MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest86
+.bin" )
echo "Found memtest86+ image: $MEMTESTPATH" >&2
cat << EOF
menuentry "Memory test (memtest86+)" {
EOF
prepare_boot_cache="$(prepare_grub_to_access_device
${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
linux16 $MEMTESTPATH
}
menuentry "Memory test (memtest86+, serial console 115200)" {
EOF
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
linux16 $MEMTESTPATH console=ttyS0,115200n8
}
EOF
fi
d3v1ous@d3v1ous-desktop:/etc/grub.d$
И файла си го има разбира се:
d3v1ous@d3v1ous-desktop:~$ ls -l /boot/memtest86+.bin
-rw-r--r-- 1 root root 160280 2010-03-23 11:37 /boot/memtest86+.bin
d3v1ous@d3v1ous-desktop:~$
_______________________________________________
Lug-bg mailing list
Lug-bg@xxxxxxxxxxxxxxxxxx
http://linux-bulgaria.org/mailman/listinfo/lug-bg
|