ST指令砍段
指令砍法,充分发挥指令的作用。菜鸟2008的帖子,很有价值。学习一下。强烈支持CHAM兄的转帖。
谢谢了!学习中!(49:
[ 本帖最后由 xfeng8 于 2009-1-21 19:33 编辑 ] 好东西了,试试看行不行了 学习一下。。。。。。。 向楼主学习,向楼主致敬!!! 原帖由 gjw1980 于 2009-1-21 22:57 发表 http://bbs.intohard.com/images/common/back.gif
楼主你就好人做到底,给我说一下要怎么样计算要砍段位的起始柱面和结束柱面?比强说我现在有个盘是U6的,它在80000000LBA至85000000LBA这段有坏区,一读到就不认盘,我想砍掉这段,应该怎么 ...
切换到2级下,用"转换逻辑CHS/LBA为NIWOT CHS"的指令.它的格式是"lxxxx,yy,zz",注意是小写的L,不是数字"1"这里用"LBA到NIWOT CHS".所谓"NIWOT CHS",我的理解就是真正物理上的磁头磁道和扇区(相对于逻辑CHS).以LBA值是100000,转换成16进制是186A0,要用以下的写法,中间是个逗号.(从后面往前数四位,要加上一个逗号)
2>l 1,86a0
00186A0, 00CE/ 1/ 06C
2级下输入指令"l 1,86a0",再敲回车,即得到了"00186A0, 00CE/ 1/ 06C"的结果."00CE/ 1/ 06C"这三项分别表示柱面 磁头 和在本磁道上的扇区.
接下来你知道怎么做了。 我试过了,不但可以砍段,还能调整段位的分配,看我把8和9的尾部都改了:
T>Age=50 Type=22 MxCyl=16358 MxHd=2 MxSct=44C BSz=0000 TCode=0000
Pgm=00 Trk=027F5(027F5).0(0).000(015) Zn=1 Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ready LBA=0DD05936
T>l1
T>/2
2>x
Zone 00:00018 - 00BE81100 (044C) 683.439
Zone 01:00BE9 - 027FE1056 (0420) 666.63
Zone 02:027FF - 047071026 (0402) 646.275
Zone 03:04708 - 06CA3 990 (03DE) 622.431
Zone 04:06CA4 - 08B66 953 (03B9) 602.353
Zone 05:08B67 - 0A479 916 (0394) 580.392
Zone 06:0A47A - 0C405 880 (0370) 545.882
Zone 07:0C406 - 0D99A 836 (0344) 527.59
Zone 08:0D99B - 0ECD9 806 (0326) 506.144
Zone 09:0ECDA - 10337 770 (0302) 480.724
Zone 0A:10338 - 11397 733 (02DD) 461.672
Zone 0B:11398 - 12854 691 (02B3) 437.423
Zone 0C:12855 - 13F38 660 (0294) 410.353
Zone 0D:13F39 - 14AE7 623 (026F) 396.401
Zone 0E:14AE8 - 155D6 605 (025D) 383.316
Zone 0F:155D7 - 16358 572 (023C) 363.922
Sys= 0F68E-0F70D 0280 SPTK on sys trks
Total LBAs = 0DFD03F6
2>sd99b,1,0
2>Pgm=00 Trk=0D99B(0D99B).1(1).000(015) Zn=8 Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ready LBA=0DD05936
2>/E
E>a0
1.Zone: 00088
2.Start Cyl: 0000d99b55707
3.End Cyl: 0000ecd960633
4.NRZ Freq: 0007b920506144
5.Secs Per Trk: 0326806
6.Write Split Pos: 01b5437
7.Read Split Pos: 0194404
8.Sec Freq: 07321842
9.Base Ctr: 00033
10. Read ID Pos: 0105261
11. Write ID Pos: 012c300
12. Wedge Sec Sze: 09082312
13. Sec Info Tbl Add: afe445028
14. Phase Off: 022
15. PLO Offset: 022
16. NReg: 088
17. MReg: 78120
18. DRReg: 74116
19. PLO Len: 0c12
20. Write Off Delay: 2234
21. Byte / SPHSConvNum:3250
E>a3,ea00
1.Zone: 00088
2.Start Cyl: 0000d99b55707
3.End Cyl: 0000ea0059904
4.NRZ Freq: 0007b920506144
5.Secs Per Trk: 0326806
6.Write Split Pos: 01b5437
7.Read Split Pos: 0194404
8.Sec Freq: 07321842
9.Base Ctr: 00033
10. Read ID Pos: 0105261
11. Write ID Pos: 012c300
12. Wedge Sec Sze: 09082312
13. Sec Info Tbl Add: afe445028
14. Phase Off: 022
15. PLO Offset: 022
16. NReg: 088
17. MReg: 78120
18. DRReg: 74116
19. PLO Len: 0c12
20. Write Off Delay: 2234
21. Byte / SPHSConvNum:3250
E>/2
2>x
Zone 00:00018 - 00BE81100 (044C) 683.439
Zone 01:00BE9 - 027FE1056 (0420) 666.63
Zone 02:027FF - 047071026 (0402) 646.275
Zone 03:04708 - 06CA3 990 (03DE) 622.431
Zone 04:06CA4 - 08B66 953 (03B9) 602.353
Zone 05:08B67 - 0A479 916 (0394) 580.392
Zone 06:0A47A - 0C405 880 (0370) 545.882
Zone 07:0C406 - 0D99A 836 (0344) 527.59
Zone 08:0D99B - 0EA00 806 (0326) 506.144
Zone 09:0EA01 - 10337 770 (0302) 480.724
Zone 0A:10338 - 11397 733 (02DD) 461.672
Zone 0B:11398 - 12854 691 (02B3) 437.423
Zone 0C:12855 - 13F38 660 (0294) 410.353
Zone 0D:13F39 - 14AE7 623 (026F) 396.401
Zone 0E:14AE8 - 155D6 605 (025D) 383.316
Zone 0F:155D7 - 16358 572 (023C) 363.922
Sys= 0F68E-0F70D 0280 SPTK on sys trks
Total LBAs = 0DFBD06A
2>sea01,1,0
2>Pgm=00 Trk=0EA01(0EA01).1(1).000(015) Zn=9 Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ready LBA=0DD05936
2>/e
E>a5,0
1.Zone: 00099
2.Start Cyl: 0000ea0159905
3.End Cyl: 0001033766359
4.NRZ Freq: 000755d4480724
5.Secs Per Trk: 00000
6.Write Split Pos: 01ba442
7.Read Split Pos: 0194404
8.Sec Freq: 07901936
9.Base Ctr: 00033
10. Read ID Pos: 0105261
11. Write ID Pos: 0131305
12. Wedge Sec Sze: 08942196
13. Sec Info Tbl Add: b06045152
14. Phase Off: 022
15. PLO Offset: 022
16. NReg: 0c12
17. MReg: a5165
18. DRReg: 6e110
19. PLO Len: 0b11
20. Write Off Delay: 2739
21. Byte / SPHSConvNum:3452
E>/
T>/2
2>x
Zone 00:00018 - 00BE81100 (044C) 683.439
Zone 01:00BE9 - 027FE1056 (0420) 666.63
Zone 02:027FF - 047071026 (0402) 646.275
Zone 03:04708 - 06CA3 990 (03DE) 622.431
Zone 04:06CA4 - 08B66 953 (03B9) 602.353
Zone 05:08B67 - 0A479 916 (0394) 580.392
Zone 06:0A47A - 0C405 880 (0370) 545.882
Zone 07:0C406 - 0D99A 836 (0344) 527.59
Zone 08:0D99B - 0EA00 806 (0326) 506.144
Zone 09:0EA01 - 10337 0 (0000) 480.724
Zone 0A:10338 - 11397 733 (02DD) 461.672
Zone 0B:11398 - 12854 691 (02B3) 437.423
Zone 0C:12855 - 13F38 660 (0294) 410.353
Zone 0D:13F39 - 14AE7 623 (026F) 396.401
Zone 0E:14AE8 - 155D6 605 (025D) 383.316
Zone 0F:155D7 - 16358 572 (023C) 363.922
Sys= 0F68E-0F70D 0280 SPTK on sys trks
Total LBAs = 0D184A20
2>/
T>l10
T>/e
E>Pgm=00 Trk=0EA01(0EA01).1(1).154(14C) Zn=9 Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ready LBA=0DD05936
E>a3,f800
1.Zone: 00099
2.Start Cyl: 0000ea0159905
3.End Cyl: 0000f80063488
4.NRZ Freq: 000755d4480724
5.Secs Per Trk: 00000
6.Write Split Pos: 01ba442
7.Read Split Pos: 0194404
8.Sec Freq: 07901936
9.Base Ctr: 00033
10. Read ID Pos: 0105261
11. Write ID Pos: 0131305
12. Wedge Sec Sze: 08942196
13. Sec Info Tbl Add: b06045152
14. Phase Off: 022
15. PLO Offset: 022
16. NReg: 0c12
17. MReg: a5165
18. DRReg: 6e110
19. PLO Len: 0b11
20. Write Off Delay: 2739
21. Byte / SPHSConvNum:3452
E>/2
2>x
Zone 00:00018 - 00BE81100 (044C) 683.439
Zone 01:00BE9 - 027FE1056 (0420) 666.63
Zone 02:027FF - 047071026 (0402) 646.275
Zone 03:04708 - 06CA3 990 (03DE) 622.431
Zone 04:06CA4 - 08B66 953 (03B9) 602.353
Zone 05:08B67 - 0A479 916 (0394) 580.392
Zone 06:0A47A - 0C405 880 (0370) 545.882
Zone 07:0C406 - 0D99A 836 (0344) 527.59
Zone 08:0D99B - 0EA00 806 (0326) 506.144
Zone 09:0EA01 - 0F800 0 (0000) 480.724
Zone 0A:0F801 - 11397 733 (02DD) 461.672
Zone 0B:11398 - 12854 691 (02B3) 437.423
Zone 0C:12855 - 13F38 660 (0294) 410.353
Zone 0D:13F39 - 14AE7 623 (026F) 396.401
Zone 0E:14AE8 - 155D6 605 (025D) 383.316
Zone 0F:155D7 - 16358 572 (023C) 363.922
Sys= 0F68E-0F70D 0280 SPTK on sys trks
Total LBAs = 0D789F91
2>/
T>l10
T>3.5410-02-03 14:56
(P)PATA Reset
OVERLAY FAILED(
T>Age=50 Type=22 MxCyl=16358 MxHd=2 MxSct=44C BSz=0000 TCode=0000
Pgm=00 Trk=0001F(0001F).1(1).001(000) Zn=0 Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ready LBA=0DD05936
T>((VALID Cert Disk Code Detected - Revision # .135
T>/2
2>x
Zone 00:00018 - 00BE81100 (044C) 683.439
Zone 01:00BE9 - 027FE1056 (0420) 666.63
Zone 02:027FF - 047071026 (0402) 646.275
Zone 03:04708 - 06CA3 990 (03DE) 622.431
Zone 04:06CA4 - 08B66 953 (03B9) 602.353
Zone 05:08B67 - 0A479 916 (0394) 580.392
Zone 06:0A47A - 0C405 880 (0370) 545.882
Zone 07:0C406 - 0D99A 836 (0344) 527.59
Zone 08:0D99B - 0EA00 806 (0326) 506.144
Zone 09:0EA01 - 0F800 0 (0000) 480.724
Zone 0A:0F801 - 11397 733 (02DD) 461.672
Zone 0B:11398 - 12854 691 (02B3) 437.423
Zone 0C:12855 - 13F38 660 (0294) 410.353
Zone 0D:13F39 - 14AE7 623 (026F) 396.401
Zone 0E:14AE8 - 155D6 605 (025D) 383.316
Zone 0F:155D7 - 16358 572 (023C) 363.922
Sys= 0F68E-0F70D 0280 SPTK on sys trks
Total LBAs = 0D789F91
2>/
T> 谢谢啦,说的好详细的 真高人也~~~~