memtest: ISO image of Memtest86+.
This commit is contained in:
parent
162d6e0589
commit
d504b79124
2
README
2
README
|
@ -32,6 +32,8 @@ gitundo - undo commit.
|
|||
|
||||
histogram - make and display a histogram on the command line.
|
||||
|
||||
memtestiso - ISO-file for Memtest86+.
|
||||
|
||||
mirrorpdf - mirror PDF-file horizontally.
|
||||
|
||||
neno - no error no output. Only print STDERR and STDOUT if the command fails.
|
||||
|
|
2
memtestiso/Makefile
Normal file
2
memtestiso/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
|||
all:
|
||||
sudo ./build.sh
|
13
memtestiso/README
Normal file
13
memtestiso/README
Normal file
|
@ -0,0 +1,13 @@
|
|||
= ISO file for Memtest86+ V5.31b =
|
||||
|
||||
I could not get the ISO-files on http://www.memtest.org/#downiso to
|
||||
work, so I built this based on
|
||||
https://superuser.com/questions/727959/how-to-create-a-bootable-memtest86-on-usb-flash-drive
|
||||
|
||||
Write as:
|
||||
|
||||
zcat memtest-iso.img.gz > /dev/sdX
|
||||
sync
|
||||
|
||||
Set boot method in BIOS as Legacy boot.
|
||||
|
36
memtestiso/build.sh
Executable file
36
memtestiso/build.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
MEM=5.31b
|
||||
SYS=6.03
|
||||
MEMTESTB=http://www.memtest.org/download/${MEM}/memtest86+-${MEM}.bin.gz
|
||||
SYSLINUX=https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-${SYS}.tar.xz
|
||||
|
||||
dd if=/dev/zero of=/tmp/loopbackfile.img bs=10M count=1
|
||||
loopdev=$(losetup --show -fP /tmp/loopbackfile.img)
|
||||
parted -s "$loopdev" mklabel msdos mkpart primary fat16 2048s 5mib set 1 boot on
|
||||
fdisk -l $loopdev
|
||||
mkfs.vfat -nMEMTEST "$loopdev"p1
|
||||
mkdir -p /mnt/memtest
|
||||
mount "$loopdev"p1 /mnt/memtest
|
||||
|
||||
(
|
||||
cd /tmp
|
||||
wget -m ${MEMTESTB}
|
||||
zcat /tmp/www.memtest.org/download/"$MEM"/memtest86+-"$MEM".bin.gz > /mnt/memtest/memtest
|
||||
cat >/mnt/memtest/syslinux.cfg <<'!'
|
||||
PROMPT 0
|
||||
TIMEOUT 0
|
||||
DEFAULT memtest
|
||||
LABEL memtest
|
||||
kernel memtest
|
||||
!
|
||||
|
||||
wget -m ${SYSLINUX}
|
||||
cat www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-"$SYS".tar.xz |
|
||||
tar -xJpf -
|
||||
dd bs=440 if=syslinux-${SYS}/bios/mbr/mbr.bin of="$loopdev"
|
||||
syslinux-${SYS}/bios/linux/syslinux -i -s "$loopdev"p1
|
||||
)
|
||||
umount /mnt/memtest
|
||||
losetup -d "$loopdev"
|
||||
perl -0777 -pe 's/\0+$//' /tmp/loopbackfile.img >memtest-iso.img
|
BIN
memtestiso/memtest-iso.img.gz
Normal file
BIN
memtestiso/memtest-iso.img.gz
Normal file
Binary file not shown.
|
@ -44,8 +44,8 @@ Instead of overwriting I<file>, append to I<file>.
|
|||
|
||||
=head1 EXAMPLES
|
||||
|
||||
(sleep 0.5; echo After 0.5s; sleep 1.5) | teetime myfile
|
||||
(sleep 0.5; echo After 2.5s; sleep 1.5) | teetime -a myfile
|
||||
(sleep 0.5; echo After 0.5s; sleep 1.5; echo After 2s) | teetime myfile
|
||||
(sleep 0.5; echo After 2.5s; sleep 1.5; echo After 4s) | teetime -a myfile
|
||||
teetime -i myfile
|
||||
|
||||
=head1 AUTHOR
|
||||
|
|
Loading…
Reference in a new issue