If a disk is divided into four partitions and there are four logical drives present in the computer and every partition has been assigned one logical drive, write the steps involved in calculating the LBA address of the third partition table.
Answered By
James20
5 points
N/A
#95845
C Programming Language Type Question Need Urgent Solution
I will give the complete details in it; you can check it.
-
Read partition table at LBA =0 (MBR).
-
Read 16 bytes (Leave the first 446 byte i.e. code part and read the data part).
-
Find relative address of boot record. (This will be second last Dword i.e.. from byte # 9-12.) and say it “RelAddOfBootRecordInPT1”.
-
Find count of total block in this partition. (This will be last dword i.e.. from byte#13 -16) and say it “TotalBlkInPT1”.
-
StartingAddressOfPT2= TotalBlkInPT1 + RelAddOfBootRecordInPT1
-
Read first 16 bytes from starting address of partition table 2.
-
Read the byte No. 9-12 and 13-16 to get ” RelAddOfBootRecordInPT2” and “TotalBlkInPT2” respectively StartingAddressOfPT3 = StartingAddressOfPT2 + TotalBlkInPT2 + RelAddOfBootRecordInPT2