我正试图为格式化的USB驱动器的每个扇区编写测试模式。有一个逻辑驱动器(例如h:)。此卷是胖格式的,包含要覆盖的数据。另外,我想覆盖整个物理驱动器。该程序运行时的用户权限提高了。
首先,我做了以下工作:
// from the drive letter "h:" I get the physical disk number using
// IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS => "\\.\PhysicalDrive2"
hDevice = ::CreateFile( "\\.\PhysicalDrive2
我的文件系统只读了几天。在我的/var/log/messages上搜索一些东西并找到了这个。
****EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:11/host0/target0:0:0/0:0:0:0/block/sda
****Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:11/host0/target0:0:0/0:0:0:0/block/sda
helper(pid 3495):launched job udisks-helper-ata-smar