OPEN and read disk sector by sector
Posted: Mon May 18, 2020 4:36 pm
Using your TBscripting language, is it possible to read a hard disk and/or a partition sector by sector? Open seems to be file related. Read seems to do things to CR/LF pairs, Seek seems to ignore CR/LF in its positioning. Is there a way to seek to a specific sector, or LBA position?
TBOSDT does have an open that supports Drive and/or partition opening, and a COPY SECTOR command that will copy LBA data to a file. Do I need to (EXT) CALL these TBOSDT command operations to create a sector file, then back to tbscript commands to open read, analyze, and close that temporary sector file? It seems like a lot of hard drive and temporary file openings, closings overhead and would be required. But, it should work. It does not appear that there are any return codes to verify the success of the (EXT) TBOSDT Function calls. this may be a problem.
There must be a better and easier way?
Thanks in advance.
TBOSDT does have an open that supports Drive and/or partition opening, and a COPY SECTOR command that will copy LBA data to a file. Do I need to (EXT) CALL these TBOSDT command operations to create a sector file, then back to tbscript commands to open read, analyze, and close that temporary sector file? It seems like a lot of hard drive and temporary file openings, closings overhead and would be required. But, it should work. It does not appear that there are any return codes to verify the success of the (EXT) TBOSDT Function calls. this may be a problem.
There must be a better and easier way?
Thanks in advance.