pbatard / rufus

The Reliable USB Formatting Utility
https://rufus.ie
GNU General Public License v3.0
29.32k stars 2.6k forks source link

Rufus wrong size detection #2535

Closed ikerrg closed 3 months ago

ikerrg commented 3 months ago

<!-- PLEASE READ THIS CAREFULLY:

  1. You MUST read and complete the steps from the checklist below, by placing an x into each [ ] (so that it shows '[x]', NOT '[ x]' or '[x ]'), BEFORE clicking on 'Submit new issue'.

  2. Failure to perform these steps, WHICH ARE ONLY THERE TO HELP YOU, will usually result in your issue being dismissed without notice.

  3. If you are reporting an issue when trying to run Rufus, or when trying to boot a media created by Rufus, you MUST provide a log, period. Please do not assume that the developer(s) will be able to "guess" the specifics of your environment, what image you used, what type of media you used it with or the many many other critical parameters that the log provides data for. To investigate an issue, a log from Rufus is ALWAYS required.

  4. If you still choose not to provide a log when reporting a problem, you agree that your issue will be closed without any further investigation.

YOU HAVE BEEN WARNED. -->

Checklist

Additionally (if applicable):

Issue description

I am trying to write the ISO image in DD mode to a 2 GB USB, but Rufus does not allow to reach the DD selection menu because it wrongly reads the size of the ISO (it is a hybrid ISO, you can download here: "https://dl.acronis.com/s/AcronisTrueImage.iso"). Rufus should check the real size of the ISO file when the DD mode is going to be used, not the size of the files inside the ISO. I know other people asked about Acronis ISOs, but my question is not about Acronis specifically, but about the correct detection of the size when using DD mode.

Log

Rufus x64 v4.5.2180 (Portable)
Windows version: Windows 10 Pro x64 (Build 19045.4651)
Syslinux versions: 4.07/2013-07-25, 6.04/pre1
Grub versions: 0.4.6a, 2.12
System locale ID: 0x0C0A (es-ES)
Will use default UI locale 0x0C0A
SetLGP: Successfully set NoDriveTypeAutorun policy to 0x0000009E
Localization set to 'es-ES'
Found 517 officially revoked UEFI bootloaders from embedded list
Found 2351 additional revoked UEFI bootloaders from this system's SKUSiPolicy.p7b
Found USB 2.0 device 'General USB Flash Disk USB Device' (8644:800B)
1 device found
Disk type: Removable, Disk size: 2GB, Sector size: 512 bytes
Cylinders: 243, Tracks per cylinder: 255, Sectors per track: 63
Partition type: MBR, NB Partitions: 1
Disk ID: 0x00000000
Drive has an unknown Master Boot Record
Partition 1:
  Type: EFI System Partition (0xef)
  Detected File System: FAT16
  Size: 762.5 MB (799541248 bytes)
  Start Sector: 232, Boot: Yes
Scanning image...
ISO analysis:
libcdio: Auto-expanding the size of 1-Boot-NoEmul.img
  Image is an ISO9660 image
Disk image analysis:
  Image has an unknown Master Boot Record
  Image is a bootable disk image
ISO label: 'ACRONIS_MEDIA'
  Size: 1.9 GB (Projected)
  Uses: EFI
Using image: AcronisTrueImage.iso (1.1 GB)

Computing hash for 'D:\Descargas\CopiarAdiscoBackup\Acronis\AcronisTrueImage.iso'...
  MD5:    a58797148cb42b054fb97e70fdb0cc08
  SHA1:   5a5c68b05af99a6919c0d2e319960e55e39f4a86
  SHA256: 8e2edc2ad489e047a01f68d10eab0e49186f7f34523e34042c2788d8510e0ce4
pbatard commented 3 months ago

I'm afraid I'm not going to fix this. The cost/benefit ratio, when it is expected to affect an exceedingly small number of people, is just not worth it.

This will introduce too much complexity (having to have different paths on size checks depending on whether the user will ultimately choose to write in DD or ISO mode) for very little benefit, when few people are going to be using drives that are too close to the file size of the ISO.

I know this is not the answer you wanted to hear, but I have limited development time to invest on features and fixes, which means there will always be a watershed of what I consider worth investing on, and this is just not one of these items.

I will therefore ask you to use a larger drive. Or, if you're going to use Rufus in DD mode, just use one of the many DD writing alternatives.

→ NeverFix

github-actions[bot] commented 2 weeks ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.