Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WoeUSB can't properly find device by partition #121

Open
yutv opened this issue Jun 13, 2023 · 0 comments
Open

WoeUSB can't properly find device by partition #121

yutv opened this issue Jun 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yutv
Copy link

yutv commented Jun 13, 2023

Describe the bug

WoeUSB can't properly find device by partition so drive is not bootable

To Reproduce

$ sudo /home/user/bin/woeusb-5.2.4.bash --partition ./windows.iso /dev/mmcblk0p1

Expected behavior

  • No ERROR output
  • /dev/mmcblk0 device should be used not /dev/mmcblk0p

Teminal output

WoeUSB v5.2.4
==============================
Info: Mounting source filesystem...
Info: Mounting target filesystem...
Info: Copying files from source media...
Writing "/tmp/woeusb-target-20230613-185728-Tuesday.6nlwBf/./sources/install.swm" (part 1 of 2): 0 MiB of 4769 MiB (0%) written
Writing "/tmp/woeusb-target-20230613-185728-Tuesday.6nlwBf/./sources/install2.swm" (part 2 of 2): 4086 MiB of 4769 MiB (85%) written
Finished writing split WIM part 2 of 2
Info: Installing GRUB bootloader for legacy PC booting support...
Installing for i386-pc platform.
grub-install: error: cannot find a GRUB drive for /dev/mmcblk0p.  Check your device.map.
ERROR: The command ""${command_grubinstall}" --target=i386-pc --boot-directory="${target_fs_mountpoint}" --force "${target_device}"" failed with exit status "1", program is prematurely aborted
Info: Unmounting and removing "/tmp/woeusb-source-20230613-185728-Tuesday.5P2B6W"...
Info: Unmounting and removing "/tmp/woeusb-target-20230613-185728-Tuesday.6nlwBf"...
Info: You may now safely detach the target device

Environment

  • OS: Ubuntu 20.04
  • Bash: GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
  • WoeUSB: v5.2.4

Workaround

sudo ln -s /dev/mmcblk0p /dev/mmcblk0
# write iso
sudo unlink /dev/mmcblk0p
@yutv yutv added the bug Something isn't working label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant