Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!usc!rutgers!mcnc!ecsgate!ecsvax!jrw From: jrw@uncecs.edu (James R. White) Newsgroups: comp.os.minix Subject: dosread and big dos 4 partitions Message-ID: <1990Jul27.031147.20316@uncecs.edu> Date: 27 Jul 90 03:11:47 GMT Organization: UNC Educational Computing Service Lines: 69 The 1.5.10 dosread was not able to read my big dos 4 partition. I believe the only difference between this type of partition and an ordinary fat16 partition is that the field in the bootblock containing the number of sectors is zero, and the number of sectors should be read from the DWORD at 0x20. Here is a patch to do this, and to change "fat_size" and "totsec" to type long. The result works fine on my hard disk. before: 01097 23331 dosread.c after: 51375 23617 dosread.c table !"#$%&'()*+,-./0123456789:;<=>? @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ begin 644 dosread.cdif.Z M'YV-*@*">,.&#)DW<^24"4/&Q9@$5-#4 :$DC!L0(&* @ %#!XP8'F%DS'$#z MAH(6*$&X*7/G8,*%#1]&G%CQ8L:-'3_JD"$R!DF3 8,*':I"05 0,F2PD($#y MA% %&$>0*6,FS4H038)@^3*$294I5(I(^3(EB98B"6C R&$#*@BI5*V6P:KUx MBY0G3ZA\*>*$BI0D1:8DJ!%#AENX5:\:":(7;! I5!(,+LPDP0L5((*8H5-&w M#@@Q;][0F5-F#)TWGE6\4!#B[=3$<^_F#4*$B!3)*!8WIO*8"H@52)DX!8&"v MS1LW9U* ,!.&SI9,"=_'CR8FC.(]?CQ(%H$5\[%K63)F-FGS[Z=LYSGT?A39:::>EMEIKB%VW(FVVX6:C8Y#]%MQPS#D'G734S0@;r M=MIQYQUX;(A'GGG&M:>>?NZ%"=^$3-!GWWWYE;E?E_X!*!V$;TIV8((+-OA@q M?40%&I!1 I'$0@PPT.!44&X1D80410Q!Q1-29 &"'$)NP:%=>+'8UU^!=;%#p MHX]&.FFE(,P1AAUE?%&&&W3(D<>H&(V!1H,JU<$&&YK6Y2%88I%E5A%=L #"o M5':D,4896W0!0@\@V):$%448"T=S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