I have a SATA CFAST media of 32GB. And a bootloader (which creates 4 partitions) and copies some files to 3 partitions, like copying in 1,2, and 4 partitions, and the 3rd partition is empty. After this, my next task is to burn the same media with a different bootloader (which creates 3 partitions) and write files in the newly created partitions. For that, I need to zero the complete media, which usually takes approx 20mins. Now, instead of zeroing the complete media of 32GB, the first sector of the media is zeroed (to save time). Since the Bootloader and MBR information are in the first 512 bytes of the first sector. So, Using a Python program and using the OS routines of Python, the media is opened in binary + read-write mode os.open(self._device_name, os.O_WRONLY | os.O_BINARY) and a buffer of 512 bytes (builtins.pyi), which creates zero bytes, written on the first 512 bytes. But during the writing of the second bootloader and during writing to the third partition, an error was generated error: 0x7f2bb725 msg: ' Could not write 7 blocks in inode table starting at 2458106: Attempt to write block from filesystem resulted in short write' I know I am playing with the MBR; any single wrong step, and the media will not be bootable. I have a question: When partitions are created, is some information written on the starting cylinder position or in that partition that resulted in this error? Is there another way to quickly zero the complete media? OS: Windows 11 Python: python 3.13.6 Continue reading...