From 24b58dc92d126280fb4bf1f97063a4a5966a2102 Mon Sep 17 00:00:00 2001 From: Marcos Tischer Vallim Date: Sun, 30 Jun 2019 13:54:56 -0300 Subject: [PATCH] Update README.md --- README.md | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 72cf01c..e8e3519 100644 --- a/README.md +++ b/README.md @@ -357,9 +357,18 @@ sudo umount $HOME/live-ubuntu-from-scratch/chroot/run sudo cp chroot/boot/initrd.img-**-**-generic image/casper/initrd ``` -3. Copy memtest binary +3. Copy memtest86+ binary (BIOS) ``` - sudo cp chroot/boot/memtest86+.bin image/install/memtest + sudo cp chroot/boot/memtest86+.bin image/install/memtest86+ + ``` + +4. Extract memtest86 binary (UEFI) + ``` + wget --progress=dot https://www.memtest86.com/downloads/memtest86-usb.zip -O image/install/memtest86-usb.zip + + unzip -p image/install/memtest86-usb.zip memtest86-usb.img > image/install/memtest86 + + rm image/install/memtest86-usb.zip ``` ## Grub configuration @@ -395,8 +404,13 @@ sudo umount $HOME/live-ubuntu-from-scratch/chroot/run initrd /casper/initrd } - menuentry "Test memory" { - linux16 /install/memtest + menuentry "Test memory Memtest86+ (BIOS)" { + linux16 /install/memtest86+ + } + + menuentry "Test memory Memtest86 (UEFI, long load time)" { + loopback loop /install/memtest86 + chainloader (loop,1)/EFI/BOOT/BOOTX64.efi } EOF ``` @@ -558,4 +572,4 @@ sudo umount $HOME/live-ubuntu-from-scratch/chroot/run It is simple and easy, using "dd" ``` sudo dd if=ubuntu-from-scratch.iso of= bs=4M -``` \ No newline at end of file +```