File: testdisk-5

package info (click to toggle)
mbr 1.2.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: sh: 3,941; ansic: 2,226; makefile: 116
file content (32 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh
# Check long delays, boots partition 2.
cat <<EOF >test-x
Version: 2
Compatible: 2
Y2K-Fix: Disabled
Drive: 0x80
Default: 2
Timeout: 255/18 seconds
Enabled: F A
Interrupt: Key
EOF
do_install -I testdisk.b -l -r -d 0x80 -ik -t 255 -p 2 -eaf test-mbr >test-y
diff -u test-x test-y
cat <<EOF >test-x
Output: "TestDisk"
Time: 1
Output: "\r\n"
Time: 255
Read sector d128 h0 c132 s1 to 0000:7c00
Exit: 0080 0000 0084 0001
Partition: active  type: 0x83
Start: C=132 H=0 S=1  End: C=1023 H=15 S=17
Sector 0x00008c40  Length 0x00044000
eax:00000201 ebx:00007c00 ecx:00008401 edx:00000080 PC:0000:00007c02
esi:000007ce edi:00000005 ebp:00000000 efl:00030246 SP:0000:00000000
ds:0000 es:0000 fs:0000 gs:0000 FLAGS: c P a Z s t I d o
EOF
harness test-mbr -r10 -w275 -k 0x2166 >test-y
diff -u test-x test-y

: Done