pbatard / rufus

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

Error extracting WinPE ISO, Possible regression #2232

Closed chazste closed 1 year ago

chazste commented 1 year 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

ISO file created using ADK promp with

Makewinpemedia /iso /f winpe_x64 winpe.iso

This file writes OK with rufus-3.11.exe, fails with 3.17, 3.21 and 3.22

Log

Rufus x86 v3.22.2009
Windows version: Windows 10 Enterprise, 64-bit (Build 19041.1415)
Syslinux versions: 4.07/2013-07-25, 6.04/pre1
Grub versions: 0.4.6a, 2.06
System locale ID: 0x0409 (en-US)
Will use default UI locale 0x0409
SetLGP: Successfully set NoDriveTypeAutorun policy to 0x0000009E
Localization set to 'en-US'
Found USB 3.0 device 'USB DISK 3.0 USB Device' (13FE:6700)
Using 'autorun.inf' label for drive D: 'DVD_ROM'
1 device found
Disk type: Removable, Disk size: 32 GB, Sector size: 512 bytes
Cylinders: 3773, Tracks per cylinder: 255, Sectors per track: 63
Partition type: GPT, NB Partitions: 2
Disk GUID: {7661BD53-D66A-4B76-86E2-38939F8DA134}
Max parts: 128, Start Offset: 17408, Usable = 31042009600 bytes
Partition 1:
  Type: Microsoft Basic Data Partition
  Name: 'Main Data Partition'
  Detected File System: NTFS
  ID: {D0BF7E29-F73D-4431-8E60-A90CEE628C1B}
  Size: 28.9 GB (31039884288 bytes)
  Start Sector: 2048, Attributes: 0x0000000000000000
Partition 2 (UEFI:NTFS):
  Type: Microsoft Basic Data Partition
  Name: 'UEFI:NTFS'
  Detected File System: FAT12
  ID: {ACF9C5CA-1267-45B6-913C-E3D16F2372FD}
  Size: 512 KB (524288 bytes)
  Start Sector: 60626822, Attributes: 0x0000000000000000
Could not open Internet session: Internet is disconnected.

Image provided: 'winpe.iso'
Scanning image...
ISO analysis:
  Image is a UDF image
Disk image analysis:
  Image does not have a Boot Marker
ISO label: 'DVD_ROM'
  Size: 342.7 MB (Projected)
  Uses: EFI
  Uses: Bootmgr (BIOS and UEFI)
Using image: winpe.iso (345.9 MB)

Format operation started
Requesting disk access...
Will use 'F:' as volume mountpoint
Opened \\.\PhysicalDrive1 for exclusive write access
Analyzing existing boot records...
Drive has a Zeroed Master Boot Record
Clearing MBR/PBR/GPT structures...
Erasing 128 sectors
Initializing disk...
Partitioning (GPT)...
● Creating Main Data Partition (offset: 1048576, size: 28.9 GB)
● Creating UEFI:NTFS Partition (offset: 31040932864, size: 1 MB)
Writing UEFI:NTFS data...
Waiting for logical drive to reappear...
Formatting to NTFS (using IFS)
Using cluster size: 4096 bytes
Quick format was selected
Creating file system...
Format completed.
Writing Master Boot Record...
Using Rufus protective MBR
Writing protective message SBR
Found volume \\?\Volume{f43a2f79-e0e1-11ed-88ac-80000b811aa4}\
Disabling file indexing...
Successfully remounted \\?\Volume{f43a2f79-e0e1-11ed-88ac-80000b811aa4}\ as F:
Extracting files...
libcdio: could not retrieve file info for `winpe.iso': No such file or directory
libcdio: could not retrieve file info for `winpe.iso': No such file or directory
'winpe.iso' doesn't look like an ISO image

Found USB 3.0 device 'USB DISK 3.0 USB Device' (13FE:6700)
1 device found
Disk type: Removable, Disk size: 32 GB, Sector size: 512 bytes
Cylinders: 3773, Tracks per cylinder: 255, Sectors per track: 63
Partition type: GPT, NB Partitions: 2
Disk GUID: {3938BA55-1116-4E77-8541-A1B46FE44099}
Max parts: 128, Start Offset: 17408, Usable = 31042009600 bytes
Partition 1:
  Type: Microsoft Basic Data Partition
  Name: 'Main Data Partition'
  Detected File System: NTFS
  ID: {C5AF40B0-90C4-4317-8A46-9F54E4DB24A1}
  Size: 28.9 GB (31039884288 bytes)
  Start Sector: 2048, Attributes: 0x0000000000000000
Partition 2 (UEFI:NTFS):
  Type: Microsoft Basic Data Partition
  Name: 'UEFI:NTFS'
  Detected File System: FAT12
  ID: {E90680DE-A2A3-454D-ADE6-64A37530D213}
  Size: 1 MB (1048576 bytes)
  Start Sector: 60626822, Attributes: 0x9000000000000000
pbatard commented 1 year ago

Not seeing any issue here running on Windows 11:

  1. Installed Windows ADK (through adksetup.exe).
  2. Installed Windows ADK Windows Preinstallation Environment Add-ons (through adkwinpesetup.exe).
  3. Opened ADK command prompt (Windows KitsDeployment and Imaging Tools Environment).
  4. Ran copype amd64 C:\winpe_x64 which completed successfully.
  5. Ran MakeWinPEMedia /iso /f C:\winpe_x64 C:\Downloads\winpe.iso which completed successfully.
  6. Wrote the image with Rufus:
    
    Rufus x86 v3.22.2009
    Windows version: Windows 11 Pro for Workstations, 64-bit (Build 22621.1555)
    Syslinux versions: 4.07/2013-07-25, 6.04/pre1
    Grub versions: 0.4.6a, 2.06
    System locale ID: 0x0809 (en-GB)
    Will use default UI locale 0x0809
    SetLGP: Successfully set NoDriveTypeAutorun policy to 0x0000009E
    Localization set to 'en-US'
    Found USB 3.0 device 'Mushkin Ventura Ultra USB Device' (174C:55AA)
    Using 'autorun.inf' label for drive F: 'Ubuntu 23.04 amd64'
    1 device found
    Disk type: FIXED, Disk size: 120 GB, Sector size: 512 bytes
    Cylinders: 14593, Tracks per cylinder: 255, Sectors per track: 63
    Partition type: MBR, NB Partitions: 2
    Disk ID: 0x0056DADD
    Drive has a Grub 2.0 Master Boot Record
    Partition 1:
    Type: FAT32 LBA (0x0c)
    Detected File System: FAT32
    Size: 91.8 GB (98558240256 bytes)
    Start Sector: 2048, Boot: Yes
    Partition 2:
    Type: GNU/Linux (0x83)
    Detected File System: ext3
    Size: 20.0 GB (21474819072 bytes)
    Start Sector: 192498611, Boot: No
    Scanning image...
    ISO analysis:
    Image is a UDF image
    Disk image analysis:
    Image does not have a Boot Marker
    ISO label: 'DVD_ROM'
    Size: 337.1 MB (Projected)
    Uses: EFI
    Uses: Bootmgr (BIOS and UEFI)
    Using image: winpe.iso (340.3 MB)
    Local time: 13326670875
    Next update check in 1801 seconds.

Format operation started Requesting disk access... Will use 'F:' as volume mountpoint Opened \.\PhysicalDrive9 for exclusive write access Analyzing existing boot records... Drive has a Grub 2.0 Master Boot Record Clearing MBR/PBR/GPT structures... Erasing 2176 sectors Initializing disk... Partitioning (GPT)... ● Creating Main Data Partition (offset: 1048576, size: 111.8 GB) Waiting for logical drive to reappear... Formatting (Large FAT32)... Opened \?\Volume{a8690ef1-6108-4540-b191-d927c9065afd} for exclusive write access Size : 111.8 GB 234439567 sectors Cluster size 32768 bytes, 512 bytes per sector Volume ID is 1de8:1d52 32 Reserved sectors, 28612 sectors per FAT, 2 FATs 3662223 Total clusters 3662222 Free clusters Clearing out 57320 sectors for reserved sectors, FATs and root cluster... Initializing reserved sectors and FATs... FAT #0 sector at address: 32 FAT #1 sector at address: 28644 Writing Partition Boot Record... Using Standard FAT32 partition boot record Confirmed new volume has a primary FAT32 boot sector Setting primary FAT32 boot sector for boot... Confirmed new volume has a secondary FAT32 boot sector Setting secondary FAT32 boot sector for boot... Setting label... Format completed. Opened \.\PhysicalDrive9 for exclusive write access Writing Master Boot Record... Using Rufus protective MBR Writing protective message SBR Found volume \?\Volume{a8690ef1-6108-4540-b191-d927c9065afd}\ Successfully remounted \?\Volume{a8690ef1-6108-4540-b191-d927c9065afd}\ as F: Extracting files... Image is a UDF image Extracting: F:\Boot\BCD (256 KB) Extracting: F:\Boot\BCDTemplate (32 KB) Extracting: F:\Boot\Fonts\chs_boot.ttf (3.5 MB) Extracting: F:\Boot\Fonts\cht_boot.ttf (3.7 MB) Extracting: F:\Boot\Fonts\jpn_boot.ttf (1.9 MB) Extracting: F:\Boot\Fonts\kor_boot.ttf (2.3 MB) Extracting: F:\Boot\Fonts\malgun_boot.ttf (191.7 KB) Extracting: F:\Boot\Fonts\malgunn_boot.ttf (189.4 KB) Extracting: F:\Boot\Fonts\meiryo_boot.ttf (162.0 KB) Extracting: F:\Boot\Fonts\meiryon_boot.ttf (160.4 KB) Extracting: F:\Boot\Fonts\msjh_boot.ttf (179.1 KB) Extracting: F:\Boot\Fonts\msjhn_boot.ttf (177.2 KB) Extracting: F:\Boot\Fonts\msyh_boot.ttf (171.2 KB) Extracting: F:\Boot\Fonts\msyhn_boot.ttf (169.4 KB) Extracting: F:\Boot\Fonts\segmono_boot.ttf (44.7 KB) Extracting: F:\Boot\Fonts\segoe_slboot.ttf (100.5 KB) Extracting: F:\Boot\Fonts\segoen_slboot.ttf (100.3 KB) Extracting: F:\Boot\Fonts\wgl4_boot.ttf (48.9 KB) Extracting: F:\Boot\Resources\bootres.dll (165.4 KB) Extracting: F:\Boot\bg-bg\bootmgr.exe.mui (80.3 KB) Extracting: F:\Boot\boot.sdi (3 MB) Extracting: F:\Boot\bootfix.bin (1 KB) Extracting: F:\Boot\cs-cz\bootmgr.exe.mui (79.3 KB) Extracting: F:\Boot\cs-cz\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\da-dk\bootmgr.exe.mui (78.3 KB) Extracting: F:\Boot\da-dk\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\de-de\bootmgr.exe.mui (82.3 KB) Extracting: F:\Boot\de-de\memtest.exe.mui (45.8 KB) Extracting: F:\Boot\el-gr\bootmgr.exe.mui (83.3 KB) Extracting: F:\Boot\el-gr\memtest.exe.mui (46.3 KB) Extracting: F:\Boot\en-gb\bootmgr.exe.mui (76.3 KB) Extracting: F:\Boot\en-us\bootmgr.exe.mui (76.3 KB) Extracting: F:\Boot\en-us\memtest.exe.mui (44.8 KB) Extracting: F:\Boot\es-es\bootmgr.exe.mui (80.3 KB) Extracting: F:\Boot\es-es\memtest.exe.mui (45.8 KB) Extracting: F:\Boot\es-mx\bootmgr.exe.mui (80.3 KB) Extracting: F:\Boot\et-ee\bootmgr.exe.mui (77.3 KB) Extracting: F:\Boot\fi-fi\bootmgr.exe.mui (79.3 KB) Extracting: F:\Boot\fi-fi\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\fr-ca\bootmgr.exe.mui (81.8 KB) Extracting: F:\Boot\fr-fr\bootmgr.exe.mui (82.3 KB) Extracting: F:\Boot\fr-fr\memtest.exe.mui (45.8 KB) Extracting: F:\Boot\hr-hr\bootmgr.exe.mui (79.3 KB) Extracting: F:\Boot\hu-hu\bootmgr.exe.mui (82.3 KB) Extracting: F:\Boot\hu-hu\memtest.exe.mui (45.8 KB) Extracting: F:\Boot\it-it\bootmgr.exe.mui (79.8 KB) Extracting: F:\Boot\it-it\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\ja-jp\bootmgr.exe.mui (68.8 KB) Extracting: F:\Boot\ja-jp\memtest.exe.mui (42.8 KB) Extracting: F:\Boot\ko-kr\bootmgr.exe.mui (68.3 KB) Extracting: F:\Boot\ko-kr\memtest.exe.mui (42.8 KB) Extracting: F:\Boot\lt-lt\bootmgr.exe.mui (78.3 KB) Extracting: F:\Boot\lv-lv\bootmgr.exe.mui (78.3 KB) Extracting: F:\Boot\memtest.exe (1 MB) Extracting: F:\Boot\nb-no\bootmgr.exe.mui (77.8 KB) Extracting: F:\Boot\nb-no\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\nl-nl\bootmgr.exe.mui (80.3 KB) Extracting: F:\Boot\nl-nl\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\pl-pl\bootmgr.exe.mui (80.8 KB) Extracting: F:\Boot\pl-pl\memtest.exe.mui (45.8 KB) Extracting: F:\Boot\pt-br\bootmgr.exe.mui (79.3 KB) Extracting: F:\Boot\pt-br\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\pt-pt\bootmgr.exe.mui (79.3 KB) Extracting: F:\Boot\pt-pt\memtest.exe.mui (45.8 KB) Extracting: F:\Boot\ro-ro\bootmgr.exe.mui (78.8 KB) Extracting: F:\Boot\ru-ru\bootmgr.exe.mui (79.8 KB) Extracting: F:\Boot\ru-ru\memtest.exe.mui (44.8 KB) Extracting: F:\Boot\sk-sk\bootmgr.exe.mui (79.8 KB) Extracting: F:\Boot\sl-si\bootmgr.exe.mui (78.8 KB) Extracting: F:\Boot\sr-latn-rs\bootmgr.exe.mui (79.8 KB) Extracting: F:\Boot\sv-se\bootmgr.exe.mui (78.8 KB) Extracting: F:\Boot\sv-se\memtest.exe.mui (44.8 KB) Extracting: F:\Boot\tr-tr\bootmgr.exe.mui (78.3 KB) Extracting: F:\Boot\tr-tr\memtest.exe.mui (45.3 KB) Extracting: F:\Boot\uk-ua\bootmgr.exe.mui (79.8 KB) Extracting: F:\Boot\zh-cn\bootmgr.exe.mui (64.3 KB) Extracting: F:\Boot\zh-cn\memtest.exe.mui (42.3 KB) Extracting: F:\Boot\zh-tw\bootmgr.exe.mui (64.3 KB) Extracting: F:\Boot\zh-tw\memtest.exe.mui (42.3 KB) Extracting: F:\EFI\Boot\bg-bg\bootx64.efi.mui (80.3 KB) Extracting: F:\EFI\Boot\bootx64.efi (2.4 MB) Extracting: F:\EFI\Boot\cs-cz\bootx64.efi.mui (79.3 KB) Extracting: F:\EFI\Boot\da-dk\bootx64.efi.mui (78.3 KB) Extracting: F:\EFI\Boot\de-de\bootx64.efi.mui (82.3 KB) Extracting: F:\EFI\Boot\el-gr\bootx64.efi.mui (83.3 KB) Extracting: F:\EFI\Boot\en-gb\bootx64.efi.mui (76.3 KB) Extracting: F:\EFI\Boot\en-us\bootx64.efi.mui (76.3 KB) Extracting: F:\EFI\Boot\es-es\bootx64.efi.mui (80.3 KB) Extracting: F:\EFI\Boot\es-mx\bootx64.efi.mui (80.3 KB) Extracting: F:\EFI\Boot\et-ee\bootx64.efi.mui (77.3 KB) Extracting: F:\EFI\Boot\fi-fi\bootx64.efi.mui (79.3 KB) Extracting: F:\EFI\Boot\fr-ca\bootx64.efi.mui (81.8 KB) Extracting: F:\EFI\Boot\fr-fr\bootx64.efi.mui (82.3 KB) Extracting: F:\EFI\Boot\hr-hr\bootx64.efi.mui (79.3 KB) Extracting: F:\EFI\Boot\hu-hu\bootx64.efi.mui (82.3 KB) Extracting: F:\EFI\Boot\it-it\bootx64.efi.mui (79.8 KB) Extracting: F:\EFI\Boot\ja-jp\bootx64.efi.mui (68.8 KB) Extracting: F:\EFI\Boot\ko-kr\bootx64.efi.mui (68.3 KB) Extracting: F:\EFI\Boot\lt-lt\bootx64.efi.mui (78.3 KB) Extracting: F:\EFI\Boot\lv-lv\bootx64.efi.mui (78.3 KB) Extracting: F:\EFI\Boot\nb-no\bootx64.efi.mui (77.8 KB) Extracting: F:\EFI\Boot\nl-nl\bootx64.efi.mui (80.3 KB) Extracting: F:\EFI\Boot\pl-pl\bootx64.efi.mui (80.8 KB) Extracting: F:\EFI\Boot\pt-br\bootx64.efi.mui (79.3 KB) Extracting: F:\EFI\Boot\pt-pt\bootx64.efi.mui (79.3 KB) Extracting: F:\EFI\Boot\ro-ro\bootx64.efi.mui (78.8 KB) Extracting: F:\EFI\Boot\ru-ru\bootx64.efi.mui (79.8 KB) Extracting: F:\EFI\Boot\sk-sk\bootx64.efi.mui (79.8 KB) Extracting: F:\EFI\Boot\sl-si\bootx64.efi.mui (78.8 KB) Extracting: F:\EFI\Boot\sr-latn-rs\bootx64.efi.mui (79.8 KB) Extracting: F:\EFI\Boot\sv-se\bootx64.efi.mui (78.8 KB) Extracting: F:\EFI\Boot\tr-tr\bootx64.efi.mui (78.3 KB) Extracting: F:\EFI\Boot\uk-ua\bootx64.efi.mui (79.8 KB) Extracting: F:\EFI\Boot\zh-cn\bootx64.efi.mui (64.3 KB) Extracting: F:\EFI\Boot\zh-tw\bootx64.efi.mui (64.3 KB) Extracting: F:\EFI\Microsoft\Boot\BCD (256 KB) Extracting: F:\EFI\Microsoft\Boot\BCDTemplate (32 KB) Extracting: F:\EFI\Microsoft\Boot\Fonts\chs_boot.ttf (3.5 MB) Extracting: F:\EFI\Microsoft\Boot\Fonts\cht_boot.ttf (3.7 MB) Extracting: F:\EFI\Microsoft\Boot\Fonts\jpn_boot.ttf (1.9 MB) Extracting: F:\EFI\Microsoft\Boot\Fonts\kor_boot.ttf (2.3 MB) Extracting: F:\EFI\Microsoft\Boot\Fonts\malgun_boot.ttf (191.7 KB) Extracting: F:\EFI\Microsoft\Boot\Fonts\meiryo_boot.ttf (162.0 KB) Extracting: F:\EFI\Microsoft\Boot\Fonts\msjh_boot.ttf (179.1 KB) Extracting: F:\EFI\Microsoft\Boot\Fonts\msyh_boot.ttf (171.2 KB) Extracting: F:\EFI\Microsoft\Boot\Fonts\segmono_boot.ttf (44.7 KB) Extracting: F:\EFI\Microsoft\Boot\Fonts\segoe_slboot.ttf (100.5 KB) Extracting: F:\EFI\Microsoft\Boot\Fonts\wgl4_boot.ttf (48.9 KB) Extracting: F:\EFI\Microsoft\Boot\Resources\bootres.dll (165.3 KB) Extracting: F:\EFI\Microsoft\Boot\cs-cz\memtest.efi.mui (45.4 KB) Extracting: F:\EFI\Microsoft\Boot\da-dk\memtest.efi.mui (45.4 KB) Extracting: F:\EFI\Microsoft\Boot\de-de\memtest.efi.mui (45.9 KB) Extracting: F:\EFI\Microsoft\Boot\el-gr\memtest.efi.mui (46.4 KB) Extracting: F:\EFI\Microsoft\Boot\en-us\memtest.efi.mui (44.9 KB) Extracting: F:\EFI\Microsoft\Boot\es-es\memtest.efi.mui (45.9 KB) Extracting: F:\EFI\Microsoft\Boot\fi-fi\memtest.efi.mui (45.4 KB) Extracting: F:\EFI\Microsoft\Boot\fr-fr\memtest.efi.mui (45.9 KB) Extracting: F:\EFI\Microsoft\Boot\hu-hu\memtest.efi.mui (45.9 KB) Extracting: F:\EFI\Microsoft\Boot\it-it\memtest.efi.mui (45.3 KB) Extracting: F:\EFI\Microsoft\Boot\ja-jp\memtest.efi.mui (42.9 KB) Extracting: F:\EFI\Microsoft\Boot\ko-kr\memtest.efi.mui (42.9 KB) Extracting: F:\EFI\Microsoft\Boot\memtest.efi (2.2 MB) Extracting: F:\EFI\Microsoft\Boot\nb-no\memtest.efi.mui (45.4 KB) Extracting: F:\EFI\Microsoft\Boot\nl-nl\memtest.efi.mui (45.4 KB) Extracting: F:\EFI\Microsoft\Boot\pl-pl\memtest.efi.mui (45.8 KB) Extracting: F:\EFI\Microsoft\Boot\pt-br\memtest.efi.mui (45.4 KB) Extracting: F:\EFI\Microsoft\Boot\pt-pt\memtest.efi.mui (45.9 KB) Extracting: F:\EFI\Microsoft\Boot\ru-ru\memtest.efi.mui (44.9 KB) Extracting: F:\EFI\Microsoft\Boot\sv-se\memtest.efi.mui (44.8 KB) Extracting: F:\EFI\Microsoft\Boot\tr-tr\memtest.efi.mui (45.3 KB) Extracting: F:\EFI\Microsoft\Boot\zh-cn\memtest.efi.mui (42.3 KB) Extracting: F:\EFI\Microsoft\Boot\zh-tw\memtest.efi.mui (42.4 KB) Extracting: F:\bg-bg\bootmgr.efi.mui (80.4 KB) Extracting: F:\bootmgr (431.7 KB) Extracting: F:\bootmgr.efi (2.4 MB) Extracting: F:\cs-cz\bootmgr.efi.mui (79.3 KB) Extracting: F:\da-dk\bootmgr.efi.mui (78.3 KB) Extracting: F:\de-de\bootmgr.efi.mui (82.4 KB) Extracting: F:\el-gr\bootmgr.efi.mui (83.4 KB) Extracting: F:\en-gb\bootmgr.efi.mui (76.3 KB) Extracting: F:\en-us\bootmgr.efi.mui (76.4 KB) Extracting: F:\es-es\bootmgr.efi.mui (80.3 KB) Extracting: F:\es-mx\bootmgr.efi.mui (80.4 KB) Extracting: F:\et-ee\bootmgr.efi.mui (77.4 KB) Extracting: F:\fi-fi\bootmgr.efi.mui (79.3 KB) Extracting: F:\fr-ca\bootmgr.efi.mui (81.8 KB) Extracting: F:\fr-fr\bootmgr.efi.mui (82.3 KB) Extracting: F:\hr-hr\bootmgr.efi.mui (79.3 KB) Extracting: F:\hu-hu\bootmgr.efi.mui (82.4 KB) Extracting: F:\it-it\bootmgr.efi.mui (79.9 KB) Extracting: F:\ja-jp\bootmgr.efi.mui (68.8 KB) Extracting: F:\ko-kr\bootmgr.efi.mui (68.3 KB) Extracting: F:\lt-lt\bootmgr.efi.mui (78.4 KB) Extracting: F:\lv-lv\bootmgr.efi.mui (78.4 KB) Extracting: F:\nb-no\bootmgr.efi.mui (77.8 KB) Extracting: F:\nl-nl\bootmgr.efi.mui (80.3 KB) Extracting: F:\pl-pl\bootmgr.efi.mui (80.8 KB) Extracting: F:\pt-br\bootmgr.efi.mui (79.4 KB) Extracting: F:\pt-pt\bootmgr.efi.mui (79.3 KB) Extracting: F:\ro-ro\bootmgr.efi.mui (78.8 KB) Extracting: F:\ru-ru\bootmgr.efi.mui (79.9 KB) Extracting: F:\sk-sk\bootmgr.efi.mui (79.9 KB) Extracting: F:\sl-si\bootmgr.efi.mui (78.9 KB) Extracting: F:\sources\boot.wim (289.2 MB) Extracting: F:\sr-latn-rs\bootmgr.efi.mui (79.9 KB) Extracting: F:\sv-se\bootmgr.efi.mui (78.9 KB) Extracting: F:\tr-tr\bootmgr.efi.mui (78.3 KB) Extracting: F:\uk-ua\bootmgr.efi.mui (79.9 KB) Extracting: F:\zh-cn\bootmgr.efi.mui (64.4 KB) Extracting: F:\zh-tw\bootmgr.efi.mui (64.3 KB) Finalizing, please wait... Created: F:autorun.inf Created: F:autorun.ico

Found USB 3.0 device 'Mushkin Ventura Ultra USB Device' (174C:55AA) Using 'autorun.inf' label for drive F: 'DVD_ROM' 1 device found Disk type: FIXED, Disk size: 120 GB, Sector size: 512 bytes Cylinders: 14593, Tracks per cylinder: 255, Sectors per track: 63 Partition type: GPT, NB Partitions: 1 Disk GUID: {79D40690-8927-4F0E-B886-A984530A2DFA} Max parts: 128, Start Offset: 17408, Usable = 120034089472 bytes Partition 1: Type: Microsoft Basic Data Partition Name: 'Main Data Partition' Detected File System: FAT32 ID: {A8690EF1-6108-4540-B191-D927C9065AFD} Size: 111.8 GB (120033058304 bytes) Start Sector: 2048, Attributes: 0x0000000000000000

pbatard commented 1 year ago

Oh and just in case you wanna point that out, I also tried in UEFI:NTFS mode by selecting GPT/NTFS and saw no issue.

pbatard commented 1 year ago

Ah, so you are using commandline to specify the ISO. You should definitely have mentioned that, because your issue has nothing to do with WinPE.

You just need to provide the full path for your ISO if you use commandline as Rufus is not guaranteed to look in the same directory as the executable. Also note that commandline is not really supported. It is provided as a courtesy, but I make no promise about its reliability... or even its ability to work at all.

chazste commented 1 year ago

@pbatard Sorry about that. Good thing the log tells the whole story well. I can confirm that specifying the full path to the ISO does work with 3.22. Thanks! I am OK if you close this. However I will make the following observations:

chazste commented 1 year ago

@pbatard Thank you for this change. With this change it is now clear that rufus when does not find the ISO file. However I disagree that a relative path for the ISO file is relative to app_dir. I would expect is to be relative to CWD (i.e. the directory returned by GetCurrentDirectory() called as the first line of WinMain()) This is the directory specified in the "Start in" control of a shortcut to rufus or in my case the directory displayed in the prompt string of my CMD window. I usually download rufus to c:\bin which is in my path and then say

rufus-3.22 -g -i test.iso

From my testing I would happy with just dropping the following line:

IGNORE_RETVAL(_chdirU(app_dir));

especially since other places in rufus.c you are very careful to match calls to _chdirU (like pushd/popd)

Also it would nice if the file not found printf went to the log as well. Maybe that should be a ubprintf? That line appears to be the only bare printf in rufus.c other than the help message.

pbatard commented 1 year ago

Sorry, but that's all you're going to get for now. The time I have to devote on commandline support is very limited and I have other things to take care of. Please use a fully qualified path if you are still unhappy about the current fix.

pbatard commented 1 year ago

OK, I removed the _chdirU() in 1e51385bedcef1ce94ed6c2f52b25e04ef8a0508. But I haven't fully tested it, so if it happens to breaks something else, so be it.

chazste commented 1 year ago

Thanks again!

github-actions[bot] commented 1 year 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.