FedoraQt / MediaWriter

Fedora Media Writer - Write Fedora Images to Portable Media
GNU General Public License v2.0
739 stars 160 forks source link

Linux: overwrite start and end of the drive with zeroes when restoring #763

Closed grulja closed 4 days ago

grulja commented 6 days ago

Similar to Windows, overwrite the beginning of the drive and the end of the drive with zeroes before creating a new partition table. This is to make sure there are no partition table residues after a Fedora image was written onto the drive.

Resolves #575

grulja commented 6 days ago

@kparal: would you be so kind and test it if I do a Fedora scratch build?

kparal commented 6 days ago

@kparal: would you be so kind and test it if I do a Fedora scratch build?

Sure!

grulja commented 5 days ago

@kparal: would you be so kind and test it if I do a Fedora scratch build?

Sure!

F41 scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=126079504

Let me know in case you need a build for different Fedora version.

kparal commented 4 days ago

Thanks, that works!

A slight problem is that when I manually create MBR+ntfs/exfat using gnome-disks, it still confuses Windows. Even though doing the same through parted seems to work fine. It seems that I'll need to report a bug in gnome-disks as well :-(

Anyway, FMW restore now works properly, great. Let's push this.

grulja commented 4 days ago

Thanks, that works!

A slight problem is that when I manually create MBR+ntfs/exfat using gnome-disks, it still confuses Windows. Even though doing the same through parted seems to work fine. It seems that I'll need to report a bug in gnome-disks as well :-(

Anyway, FMW restore now works properly, great. Let's push this.

There is an option to overwrite the drive with zeroes when formatting the drive in gnome-disks (there is slow and fast formatting). This should most likely have the same result. Anyway, thanks for testing.