Regarding badblocks command in linux
Hi,
badblocks command in linux supports "-o" option in which the output is written into a file specified by the user.
Does anyone know the format of this file? A snapshot of the file contents when badblocks are found on the disk will help a lot.
I am writing a code to run badblocks and then read from this file and display the output to the user. Since my disk doesn't have any badblocks, each time i run the command nothing is written in the file. I don't have an idea as to how to parse the file for getting the number of badblocks.
Please help.
Thanks in advance.
Regards,
Jayaraghavendran.K
|