Here is a link to information about mod01 in older WD drives:
Analysis of MOD 01 - Western Digital WD2500BB-55RDA0:
http://www.hddoracle.com/viewtopic.php?f=59&t=184The same author provided me the following analysis of a newer drive which I used to create the script:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 52 4F 59 4C 01 00 30 00 01 00 18 00 46 5A 2C 36
ROYL..0.....FZ,6
00000010 30 30 30 32 30 30 30 30 01 02 03 04 05 00 06 00
00020000........
00000020 07 00 00 00 08 00 00 00 09 00 00 00 0A 00 00 00
................
00000030 4B 01 12 02 01 00 18 00 03 18 20 00 00 00 00 00 K.........
.....
00000040 00 00 00 00 12 02 35 00 0A 00 03 18 00 00 18 00
......5.........
Offset 0x30 is the number of directory entries, namely 0x14B.
Offset 0x32 is the beginning of the directory table. Each record is
0x12 bytes long.
The format of each record appears to be ...
column description
------------------------------------------
00 record length = 0x12 bytes
01 number of module copies in SA (= 2)
02-03 module ID
04-05 module size in sectors
0A-0D location of first copy (LBA in SA)
0E-11 location of second copy (LBA in SA)
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11
00000000 12 02 01 00 18 00 03 18 20 00 00 00 00 00 00 00 00 00
........ .........
00000012 12 02 35 00 0A 00 03 18 00 00 18 00 00 00 18 00 00 00
..5...............
00000024 12 02 6D 00 01 00 03 18 00 00 97 0F 00 00 97 0F 00 00
..m.......—...—...
00000036 12 02 10 01 18 00 03 18 10 00 EC FA 00 00 EC FA 00 00
..........ìú..ìú..
00000048 12 02 02 01 01 00 03 18 10 00 EB FA 00 00 EB FA 00 00
..........ëú..ëú..
0000005A 12 02 03 01 02 00 03 18 10 00 E9 FA 00 00 E9 FA 00 00
..........éú..éú..
0000006C 12 02 04 01 01 00 03 18 10 00 E8 FA 00 00 E8 FA 00 00
..........èú..èú..
0000007E 12 02 05 01 02 00 03 18 10 00 E6 FA 00 00 E6 FA 00 00
..........æú..æú..
00000090 12 02 07 01 01 00 03 18 10 00 E5 FA 00 00 E5 FA 00 00
..........åú..åú..
000000A2 12 02 06 01 01 00 03 18 10 00 E4 FA 00 00 E4 FA 00 00
..........äú..äú..