sudo ./windows2usb-0.2-x86_64.AppImage /dev/sdc ./Win10_21H2_Russian_x64.iso mbr
== Working with ISO CCCOMA_X64FRE_RU-RU_DV9 ==
== Creating new MBR-formatted partition table ==
Checking that no-one is using this disk right now ... OK
Disk /dev/sdc: 15,1 GiB, 16231956480 bytes, 31703040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa3382964
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 31703039 31700992 15,1G 7 HPFS/NTFS/exFAT
>>> Script header accepted.
>>> Done.
Created a new DOS disklabel with disk identifier 0x718e8e9c.
[229/478]
New situation:
Disklabel type: dos
Disk identifier: 0x718e8e9c
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
== Waiting 3 seconds to settle new partition layout ==
== Creating FAT partition ==
Checking that no-one is using this disk right now ... OK
Disk /dev/sdc: 15,1 GiB, 16231956480 bytes, 31703040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x718e8e9c
Old situation:
>>> Created a new DOS disklabel with disk identifier 0x9e972e02.
/dev/sdc1: Created a new partition 1 of type 'HPFS/NTFS/exFAT' and of size 15,1
GiB. [206/478]
Partition #1 contains a vfat signature.
/dev/sdc2: Done.
New situation:
Disklabel type: dos
Disk identifier: 0x9e972e02
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 31703039 31700992 15,1G 7 HPFS/NTFS/exFAT
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
mkfs.fat 4.1 (2017-01-24)
== Writing bootloader ==
Windows 7 master boot record successfully written to /dev/sdc
Unable to open == get_dev_partition_num: INTERNAL ERROR ==, No such file or dir
ectory
umount: /run/windows2usb.WKahAnlA7P: not mounted.
```sh-session
sudo ./windows2usb-0.2-x86_64.AppImage /dev/sdc ./Win10_21H2_Russian_x64.iso mbr
== Working with ISO CCCOMA_X64FRE_RU-RU_DV9 ==
== Creating new MBR-formatted partition table ==
Checking that no-one is using this disk right now ... OK
Disk /dev/sdc: 15,1 GiB, 16231956480 bytes, 31703040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa3382964
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 31703039 31700992 15,1G 7 HPFS/NTFS/exFAT
>>> Script header accepted.
>>> Done.
Created a new DOS disklabel with disk identifier 0x718e8e9c.
[229/478]
New situation:
Disklabel type: dos
Disk identifier: 0x718e8e9c
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
== Waiting 3 seconds to settle new partition layout ==
== Creating FAT partition ==
Checking that no-one is using this disk right now ... OK
Disk /dev/sdc: 15,1 GiB, 16231956480 bytes, 31703040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x718e8e9c
Old situation:
>>> Created a new DOS disklabel with disk identifier 0x9e972e02.
/dev/sdc1: Created a new partition 1 of type 'HPFS/NTFS/exFAT' and of size 15,1
GiB. [206/478]
Partition #1 contains a vfat signature.
/dev/sdc2: Done.
New situation:
Disklabel type: dos
Disk identifier: 0x9e972e02
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 31703039 31700992 15,1G 7 HPFS/NTFS/exFAT
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
mkfs.fat 4.1 (2017-01-24)
== Writing bootloader ==
Windows 7 master boot record successfully written to /dev/sdc
Unable to open == get_dev_partition_num: INTERNAL ERROR ==, No such file or dir
ectory
umount: /run/windows2usb.WKahAnlA7P: not mounted.
```
I'd guess that the system did not create the partition node in time for some reason.
You can try to add `sleep 1` here:
https://github.com/ValdikSS/windows2usb/blob/5d803853aa37d02822422b4531cb40dd0c4f9091/windows2usb#L96
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.3
Release: 20.3
Codename: una
$ uname -a
Linux netbook 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
In Linux Mint partitions auto mounting is present which may be a possible culprit.
```sh-session
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.3
Release: 20.3
Codename: una
$ uname -a
Linux netbook 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```
In Linux Mint partitions auto mounting is present which may be a possible culprit.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.3
Release: 20.3
Codename: una
$ uname -a
Linux netbook 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
In Linux Mint partitions auto mounting is present which may be a possible culprit.
Ventoy починили можешь его использовать
> ```
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Linuxmint
> Description: Linux Mint 20.3
> Release: 20.3
> Codename: una
> $ uname -a
> Linux netbook 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> ```
>
> In Linux Mint partitions auto mounting is present which may be a possible culprit.
Ventoy починили можешь его использовать
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I'd guess that the system did not create the partition node in time for some reason.
You can try to add
sleep 1here:https://github.com/ValdikSS/windows2usb/blob/5d803853aa37d02822422b4531cb40dd0c4f9091/windows2usb#L96
Reproduced the same bug on windows2usb-0.2.1-x86_64.AppImage.
Well, add
set -xto the top of the script to check what's going on.In Linux Mint partitions auto mounting is present which may be a possible culprit.
Ventoy починили можешь его использовать