| 1 |
#! /bin/sh |
| 2 |
# Test of auto-booting from the hard disk using small disk interface. |
| 3 |
# Drive: 0x80 - hd0 |
| 4 |
# Default: partition 3 |
| 5 |
# Timeout: 9 |
| 6 |
# Interrupt: Shift / Key |
| 7 |
# Enable: 1 |
| 8 |
do_install -I testdisk.b -d 0x80 -p 3 -t 9 -isk -e1 test-mbr |
| 9 |
# Boots the default |
| 10 |
cat <<EOF >test-x |
| 11 |
Output: "TestDisk" |
| 12 |
Time: 1 |
| 13 |
Output: "\r\n" |
| 14 |
Time: 9 |
| 15 |
Read sector d128 h15 c1023 s17 to 0000:7c00 |
| 16 |
Exit: 0080 000f 03ff 0011 |
| 17 |
Partition: inactive type: 0xeb |
| 18 |
Start: C=1023 H=15 S=17 End: C=1023 H=15 S=17 |
| 19 |
Sector 0x0004cc40 Length 0x00010de0 |
| 20 |
eax:00000201 ebx:00007c00 ecx:0000ffd1 edx:00000f80 PC:0000:00007c02 |
| 21 |
esi:000007de edi:00000005 ebp:00000000 efl:00030246 SP:0000:00000000 |
| 22 |
ds:0000 es:0000 fs:0000 gs:0000 FLAGS: c P a Z s t I d o |
| 23 |
EOF |
| 24 |
harness test-mbr -r 10 >test-y |
| 25 |
diff -u test-x test-y |
| 26 |
|
| 27 |
: Done |