LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-05-2022, 06:58 AM   #1
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Rep: Reputation: Disabled
Question Trouble with making bootable USB device…


Hello fellows!

I want to install Windows10 on an old Laptop of mine, so I can play games on it wich are only available for Windows. The old Laptop runs on Ubuntu 14. My newer Laptop runs on Debian 11. My son has got a Laptop with Windows, so I am able to use Windows-software as well. I bought a productkey and downloaded the windows-iso and made a bootable usb stick. But it doesn't work. I already checked if the hardware is comparable to windows requirements. There are 3 partitions on the hard drive:
/dev/sda1 (185 GB W95 FAT32 bootable)
/dev/sda2 (1,9 GB 'extended partition')
/dev/sda5 (1,9 GB 'removal store')

I tried it with several programs like gnome-disk-utility, and also windows stuff like rufus, winusb, poweriso. Multisystem doesn't work on my Debian - its not able to see the usb device -> I just tried it with the command mount to mount it on /media as it told me to, but this didn't made any difference.

In BIOS I put the 'boot from usb' device to the top.

That happens, when I try to boot from USB:
- Either it says something like grub rescue…
- Or it opens a menu like 'press button to boot from usb' - when i press button a windows logo pops up for - half a second and than… nothing. Nothing happens. After waiting about ten minutes I abort.
- Or
sd 2:0:0:0 sdb no Caching mode page found
sd 2:0:0:0 assuming drive cache: write through
failed to apply … [message dissapeared too fast]

With my little linux-command-skills and my common-speech-english I can not understand how to make and configure a bootable UBS-Stick just by using the command line.

I don't want a dualboot - just windows. May I reformat the whole partitions?!
Actually I try to install UNetBootin, but it seems not so easy.

I look forward your suggestions and help.
Krenereta
 
Old 01-05-2022, 07:26 AM   #2
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
UNetbootin

Can't run UNetbootin…
Code:
root@thinkpad440:/home/mini/Downloads/UNetBootin> ./unetbootin-linux64-702.bin
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland, xcb.
 
Old 01-05-2022, 11:18 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,578

Rep: Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500
Quote:
Also, ISO files for non-Linux operating systems have a different boot mechanism, so don't expect them to work either.
The above quote is from the unetbootin home page and what they are referring to is windows. Don't expect it will work for windows.
It seems a bit odd that you have a 185 FAT32 partition, I would expect it to be ntfs. If you have access to a windows computer, I would expect it would be much easier to create a bootable windows install usb with a windows OS.
 
Old 01-05-2022, 11:53 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,399

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
Try woeusb https://github.com/WoeUSB/WoeUSB-ng for linux, Ventoy is another good choice https://www.ventoy.net/en/index.html
what is the name of the windows iso file?
 
Old 01-05-2022, 05:05 PM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,149
Blog Entries: 21

Rep: Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483
https://support.microsoft.com/en-us/...f-40c3b507420d

FOR the Windows gear. 2nd vote here for woeusb.
 
Old 01-07-2022, 03:04 AM   #6
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hey guys, thanks a lot for your suggestions. I will try and let you now what happens. The name of the ISO file is Win10_21H2_German_x64.iso
 
Old 01-07-2022, 05:34 AM   #7
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
Arrr, the installatin of woeusb-ng is so difficult!! >.<
I tried several tutorials for installation on debian but it doesn't work.

For example:
https://www.how2shout.com/linux/how-...e-usb-creator/

Code:
root@thinkpad440:~> sudo apt install git p7zip-full python3-pip python3-wxgtk4.0
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
git ist schon die neueste Version (1:2.30.2-1).
p7zip-full ist schon die neueste Version (16.02+dfsg-8).
python3-pip ist schon die neueste Version (20.3.4-4).
python3-wxgtk4.0 ist schon die neueste Version (4.0.7+dfsg-10).
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  cryptsetup cryptsetup-bin cryptsetup-initramfs cryptsetup-run fatresize gtkdialog hdparm ibverbs-providers ipxe-qemu libcacard0 libcapstone4 libdaxctl1 libexecs0 libfdt1
  libglade2-0 libibverbs1 liblasso3 libmemcached11 libndctl6 liboath0 libpango1.0-0 libpmem1 librdmacm1 libsbjson2.3 libslirp0 libsope1 libspice-server1 liburing1
  libusbredirparser1 libvdeplug2 libvirglrenderer1 libxencall1 libxendevicemodel1 libxenevtchn1 libxenforeignmemory1 libxengnttab1 libxenhypfs1 libxenmisc4.14 libxenstore3.0
  libxentoolcore1 libxentoollog1 libxmlsec1-openssl memcached ovmf qemu qemu-system-common qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils seabios syslinux wmctrl
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
root@thinkpad440:~> sudo pip3 install WoeUSB-ng
Collecting WoeUSB-ng
  Downloading WoeUSB-ng-0.2.10.post2.tar.gz (157 kB)
     |████████████████████████████████| 157 kB 725 kB/s 
Collecting termcolor
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Requirement already satisfied: wxPython in /usr/lib/python3/dist-packages (from WoeUSB-ng) (4.0.7)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from wxPython->WoeUSB-ng) (1.19.5)
Building wheels for collected packages: WoeUSB-ng, termcolor
  Building wheel for WoeUSB-ng (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-gzfc7ftw
       cwd: /tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/
  Complete output (64 lines):
  /usr/lib/python3/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing '0.2.10-2' to '0.2.10.post2'
    warnings.warn(tmpl.format(**locals()))
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/WoeUSB
  copying WoeUSB/workaround.py -> build/lib/WoeUSB
  copying WoeUSB/utils.py -> build/lib/WoeUSB
  copying WoeUSB/miscellaneous.py -> build/lib/WoeUSB
  copying WoeUSB/list_devices.py -> build/lib/WoeUSB
  copying WoeUSB/__init__.py -> build/lib/WoeUSB
  copying WoeUSB/core.py -> build/lib/WoeUSB
  copying WoeUSB/gui.py -> build/lib/WoeUSB
  running egg_info
  writing WoeUSB_ng.egg-info/PKG-INFO
  writing dependency_links to WoeUSB_ng.egg-info/dependency_links.txt
  writing requirements to WoeUSB_ng.egg-info/requires.txt
  writing top-level names to WoeUSB_ng.egg-info/top_level.txt
  reading manifest file 'WoeUSB_ng.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'WoeUSB_ng.egg-info/SOURCES.txt'
  copying WoeUSB/woeusb -> build/lib/WoeUSB
  copying WoeUSB/woeusbgui -> build/lib/WoeUSB
  creating build/lib/WoeUSB/data
  copying WoeUSB/data/c501-logo.png -> build/lib/WoeUSB/data
  copying WoeUSB/data/icon.ico -> build/lib/WoeUSB/data
  copying WoeUSB/data/woeusb-logo.png -> build/lib/WoeUSB/data
  creating build/lib/WoeUSB/locale
  copying WoeUSB/locale/woeusb.pot -> build/lib/WoeUSB/locale
  creating build/lib/WoeUSB/locale/de
  creating build/lib/WoeUSB/locale/de/LC_MESSAGES
  copying WoeUSB/locale/de/LC_MESSAGES/woeusb.mo -> build/lib/WoeUSB/locale/de/LC_MESSAGES
  copying WoeUSB/locale/de/LC_MESSAGES/woeusb.po -> build/lib/WoeUSB/locale/de/LC_MESSAGES
  creating build/lib/WoeUSB/locale/fr
  creating build/lib/WoeUSB/locale/fr/LC_MESSAGES
  copying WoeUSB/locale/fr/LC_MESSAGES/woeusb.mo -> build/lib/WoeUSB/locale/fr/LC_MESSAGES
  copying WoeUSB/locale/fr/LC_MESSAGES/woeusb.po -> build/lib/WoeUSB/locale/fr/LC_MESSAGES
  creating build/lib/WoeUSB/locale/pl
  creating build/lib/WoeUSB/locale/pl/LC_MESSAGES
  copying WoeUSB/locale/pl/LC_MESSAGES/woeusb.mo -> build/lib/WoeUSB/locale/pl/LC_MESSAGES
  copying WoeUSB/locale/pl/LC_MESSAGES/woeusb.po -> build/lib/WoeUSB/locale/pl/LC_MESSAGES
  creating build/lib/WoeUSB/locale/pt_BR
  creating build/lib/WoeUSB/locale/pt_BR/LC_MESSAGES
  copying WoeUSB/locale/pt_BR/LC_MESSAGES/woeusb.mo -> build/lib/WoeUSB/locale/pt_BR/LC_MESSAGES
  copying WoeUSB/locale/pt_BR/LC_MESSAGES/woeusb.po -> build/lib/WoeUSB/locale/pt_BR/LC_MESSAGES
  creating build/lib/WoeUSB/locale/tr
  creating build/lib/WoeUSB/locale/tr/LC_MESSAGES
  copying WoeUSB/locale/tr/LC_MESSAGES/woeusb.mo -> build/lib/WoeUSB/locale/tr/LC_MESSAGES
  copying WoeUSB/locale/tr/LC_MESSAGES/woeusb.po -> build/lib/WoeUSB/locale/tr/LC_MESSAGES
  creating build/lib/WoeUSB/locale/zh
  creating build/lib/WoeUSB/locale/zh/LC_MESSAGES
  copying WoeUSB/locale/zh/LC_MESSAGES/woeusb.mo -> build/lib/WoeUSB/locale/zh/LC_MESSAGES
  copying WoeUSB/locale/zh/LC_MESSAGES/woeusb.po -> build/lib/WoeUSB/locale/zh/LC_MESSAGES
  running build_scripts
  creating build/scripts-3.9
  copying and adjusting WoeUSB/woeusb -> build/scripts-3.9
  copying and adjusting WoeUSB/woeusbgui -> build/scripts-3.9
  changing mode of build/scripts-3.9/woeusb from 644 to 755
  changing mode of build/scripts-3.9/woeusbgui from 644 to 755
  installing to build/bdist.linux-x86_64/wheel
  running install
  error: [Errno 2] No such file or directory: '/usr/local/bin/woeusbgui'
  ----------------------------------------
  ERROR: Failed building wheel for WoeUSB-ng
  Running setup.py clean for WoeUSB-ng
  Building wheel for termcolor (setup.py) ... done
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4830 sha256=7353df8865d0f79503d9ff526dabca3ca82f00ff48fceea2df899b6d17d52bc8
  Stored in directory: /root/.cache/pip/wheels/b6/0d/90/0d1bbd99855f99cb2f6c2e5ff96f8023fad8ec367695f7d72d
Successfully built termcolor
Failed to build WoeUSB-ng
Installing collected packages: termcolor, WoeUSB-ng
    Running setup.py install for WoeUSB-ng ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dn566l25/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/WoeUSB-ng
         cwd: /tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/
    Complete output (4 lines):
    /usr/lib/python3/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing '0.2.10-2' to '0.2.10.post2'
      warnings.warn(tmpl.format(**locals()))
    running install
    error: [Errno 2] No such file or directory: '/usr/local/bin/woeusbgui'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4zvsr411/woeusb-ng_a370e72b96f746638b094c7fc5a7a867/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dn566l25/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/WoeUSB-ng Check the logs for full command output.
I want to try out this program because it seems to me the best choice for my problem…

Last edited by Krenereta; 01-07-2022 at 03:27 PM.
 
Old 01-07-2022, 05:38 AM   #8
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
just installing snap right now. i hope this will do it
 
Old 01-07-2022, 05:49 AM   #9
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
Now the comand line says
Quote:
sudo snap install woe-usb --edge

woe-usb (edge) v3.3.0 from Ermesto Castellotti (ernytech) installed
but where is it? there is no shortcut, its not in my application list ;_;
 
Old 01-07-2022, 06:27 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Run it via snap? Sth like "snap run woe-usb" I guess.
 
Old 01-07-2022, 02:37 PM   #11
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Run it via snap? Sth like "snap run woe-usb" I guess.
Dosn't work… Not shure what to write…

Code:
mini@thinkpad440:~$ snap list
Name     Version    Rev    Tracking       Publisher   Notes
core     16-2.52.1  11993  latest/stable  canonical✓  core
woe-usb  v3.3.0     21     latest/edge    ernytech    -

mini@thinkpad440:~$ snap run woe-usb
error: cannot find app "woe-usb" in "woe-usb"
Sorry, I read the man snap, but its difficult to understand for me.

Ah! I found the way! I'm not this stupid like I thought. Ok, woe-usb is running now, but cannot see my usb device (like multiboot -.-) but usb is mounted an formated as FAT so whats the problem? i will try using woe-usb with shell command…

Code:
mini@thinkpad440:/snap/bin$ snap run woe-usb.woeusbgui
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement

Last edited by Krenereta; 01-07-2022 at 02:58 PM.
 
Old 01-07-2022, 03:42 PM   #12
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
Permission denied

Thats the result:

Code:
root@thinkpad440:~> snap run woe-usb.woeusb -v --device /home/mini/SOUNDandSHOW/Windows/Win10_21H2_German_x64.iso /dev/sdb
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
trap_return: INFO: returning from process_commandline_parameters
WoeUSB v@@WOEUSB_VERSION@@
==============================
determine_target_parameters: Info: Target device is '/dev/sdb'.
determine_target_parameters: Info: Target partition is '/dev/sdb1'.
/snap/woe-usb/21/bin/woeusb: line 918: /bin/mount: Permission denied
/snap/woe-usb/21/bin/woeusb: line 899: /bin/mount: Permission denied
Mounting source filesystem...
mkdir: cannot create directory '/media/woeusb_source_1641591606_5784': Permission denied
mount_source_filesystem: Error: Unable to create "/media/woeusb_source_1641591606_5784" mountpoint directory
/snap/woe-usb/21/bin/woeusb: line 1302: /bin/mount: Permission denied
mount_source_filesystem: Error: Unable to mount source media
Error: Unable to mount source filesystem
/snap/woe-usb/21/bin/woeusb: line 899: /bin/mount: Permission denied
You may now safely detach the target device
 
Old 01-07-2022, 04:42 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,399

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
Quote:
but where is it? there is no shortcut, its not in my application list ;_
open a terminal
Code:
woeusb <name of iso> /dev/sdb
change sdb to correct one for your usb

Last edited by colorpurple21859; 01-07-2022 at 04:48 PM.
 
Old 01-08-2022, 03:37 PM   #14
Krenereta
LQ Newbie
 
Registered: Dec 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
open a terminal
Code:
woeusb <name of iso> /dev/sdb
change sdb to correct one for your usb
Thats no help, you should read until bottom of the thread before answering overhasty.

Well, i think i shpuld give up -.- I invested many hours trying and reading tutorials without achievment.
 
Old 01-08-2022, 04:34 PM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,399

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
did you try using ventoy?
 
  


Reply

Tags
boot, unetbootin, usb, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can I make a USB hard drive bootable with same procedure to make USB stick bootable? Tem2 Linux - Hardware 1 02-16-2019 08:25 AM
[SOLVED] Need help making a bootable USB flash drive from a bootable CD. Gregg Bell Linux - Software 8 01-06-2016 01:38 PM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 09:18 PM
Trouble making Bootable Linux Disc shueib Linux - Newbie 2 10-12-2005 09:22 AM
making a non bootable patrion bootable jason2 Linux - General 6 08-01-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration