Results 1 to 8 of 8

Thread: Slightly OT: create bootable Windows 10 USB key from OpenSUSE

  1. #1
    Join Date
    Oct 2014
    Location
    Montpezat (France)
    Posts
    125

    Default Slightly OT: create bootable Windows 10 USB key from OpenSUSE

    Hi,

    This is probably slightly off-topic, but here goes. My workstation as well as my laptop are both running OpenSUSE Leap. Now I need to create a Windows 10 installation on a sandbox PC for testing purposes. So I downloaded the installation ISO from microsoft.com. It weighs about 5.5 GB. How can I create a bootable USB key from this ISO, preferably using simple command line tools (gdisk, mount, mkfs, etc.)? There's lots of information about this on the Internet, but what I've found until now doesn't work.

    Any suggestions?

  2. #2
    Join Date
    Jul 2018
    Location
    Loma Linda, Mo
    Posts
    653

    Default Re: Slightly OT: create bootable Windows 10 USB key from OpenSUSE

    Easy
    Use dd - first make sure you unmount the usb drive before the dd.

    dd if=path_to_windows_iso of=/dev/(id of usb - sdb, sdc, sdd)

    to see what the of=/dev/sd? use gnome_disks to see what your usb drive id is.

    when it finishes, you have a bootable windows iso.

    don't forget to safely eject it when done.
    OpenSUSE 15.3 with VirtualBox VM's (XP, 10, 11, Ubuntu MATE 20.04, OpenSUSE 15.3, Tumbleweed)
    Pi4 with OpenSUSE 15.3
    Unix since 1974 (pdp-11, Interdata, AT&T, Tandy, Convergent, Sun, IBM, NCR, and HP)
    Linux since 1995 (Mandrake, Fedora, CentOS, OpenSUSE)

  3. #3
    Join Date
    Oct 2014
    Location
    Montpezat (France)
    Posts
    125

    Default Re: Slightly OT: create bootable Windows 10 USB key from OpenSUSE

    I've tried several approaches. The classical dd method doesn't work. Neither does WoeUSB.

    On the other hand, Ventoy works perfectly.

    https://www.ventoy.net/en/index.html

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,276

    Default Re: Slightly OT: create bootable Windows 10 USB key from OpenSUSE

    Are you sure you where copying to the device and NOT to a partition on the device????

    an ISO is a bootable image and should work if you copy it to the device it will not work if you copy to a partition on the device

  5. #5

  6. #6
    Join Date
    Oct 2014
    Location
    Montpezat (France)
    Posts
    125

    Default Re: Slightly OT: create bootable Windows 10 USB key from OpenSUSE

    Quote Originally Posted by gogalthorp View Post
    an ISO is a bootable image and should work if you copy it to the device it will not work if you copy to a partition on the device
    An ISO is an image indeed, but it's not necessarily bootable. Just try it out for yourself, you'll see.

  7. #7
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,276

    Default Re: Slightly OT: create bootable Windows 10 USB key from OpenSUSE

    Quote Originally Posted by microlinux View Post
    An ISO is an image indeed, but it's not necessarily bootable. Just try it out for yourself, you'll see.
    Agreed but in this case it is a bootable image. and needs to be a direct binary copy to the device.

  8. #8

    Lightbulb Re: Slightly OT: create bootable Windows 10 USB key from OpenSUSE

    Quote Originally Posted by gogalthorp View Post
    Agreed but in this case it is a bootable image. and needs to be a direct binary copy to the device.
    ok, me again in english trying to help... well iso ist not bootable from usb, it depends which type that iso is. windows is not working like this. i have not managed to get it working with unetbootin or sort of whta should work, but with this:
    Code:
    # Please adjust to you USB-Stick device
    DEVICE=/dev/sdxxx
    
    # Erase Partitionierung on USB Stick
    dd if=/dev/zero of=$DEVICE bs=1M count=1
    
    # Partitionen setup
    fdisk ${DEVICE}
    #manuell enter
    # n
    # p
    # 1
    # ENTER
    # ENTER
    # t
    # c
    # a
    # w
    
    # Format and mounten the stick
    mkfs.vfat ${DEVICE}1
    mkdir /mnt/usb
    mount ${DEVICE}1 /mnt/usb
    
    # copy windows files from windows iso, which is mounted as loop device
    mkdir Win10
    #adjust to your needs:
    mount -o loop Win10_1909_German_x64.iso Win10
    # ignore all errors:
    cp -a Win10/* /mnt/usb
    
    # umount
    umount /mnt/usb
    umount Win10

    After that, you can boot the stick if your bios supports it. good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •