LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2016, 02:25 PM   #1
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Rep: Reputation: Disabled
What's the best way to make a bootable Windows USB in Linux?


I have a laptop that is running the latest Ubuntu but I need to set it up dual boot with Windows 7 or 10 (I have license and ISO file for both). But I don't have access to a Windows machine currently where I can make a bootable USB so I need to do it on either Ubuntu or Fedora. I have tried using Unetbootin on both and it doesn't seem to create a bootable USB. I tried using Gparted and making a ntfs disk with Bootable flag and copying the ISO to it but that doesn't work either. I tried dd comand and not luck either.

I can make a bootable linux USB with Unetbootin and the laptop will boot from that so it doesn't seem to be a BIOS/Laptop issue. The laptop supports UEFI and legacy USB
 
Old 10-18-2016, 07:49 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If you have the ISO for Windows, write it to the USB drive using dd.
Code:
$ dd if=/home/sam/widows.iso of=/dev/sdc
or whatever device file corresponds to the usb drive. You don't need to format or anything. It will boot off usb just as if it was a CD.

But the better way is to install VirtualBox and install Windows as a guest. Then you'll have a Windows virtual machine you can run when you feel like it.
 
Old 10-18-2016, 09:54 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,794

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Unetbootin doesn't create a bootable windows usb as stated on their home page.

Quote:
Also, ISO files for non-Linux operating systems have a different boot mechanism, so don't expect them to work either.
Another more complex method explained at the link below:

http://onetransistor.blogspot.ch/201...om-ubuntu.html
 
Old 10-18-2016, 10:01 PM   #4
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
If you have the ISO for Windows, write it to the USB drive using dd.
Code:
$ dd if=/home/sam/widows.iso of=/dev/sdc
or whatever device file corresponds to the usb drive. You don't need to format or anything. It will boot off usb just as if it was a CD.

But the better way is to install VirtualBox and install Windows as a guest. Then you'll have a Windows virtual machine you can run when you feel like it.
I tried virtualbox but I'm running some video editing and audio production software and it felt laggy in vm like there is latency
 
Old 10-18-2016, 10:35 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
OK, try dd and see if the usb image will boot. But at the end of the command put, conv=sync. That will pad the last sector with zeroes to make it a whole sector. One of the ways Windows "knows" is that copying programs don't copy the entire last sector, because part of the last sector contains no data.

Last edited by AwesomeMachine; 10-18-2016 at 10:36 PM.
 
Old 10-19-2016, 06:35 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Code:
Use Microsoft's own Windows USB/DVD download tool to create a bootable drive you can install Windows from. You'll need a Windows installer ISO file to run this tool. If you don't have one, you can download Windows 10, 8, or 7 installation media for free — you'll need a legitimate product key to use them, though
linux

some say this will work
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant make bootable windows usb drive. skatr4u Linux - General 18 01-23-2019 02:29 AM
Tried to Make a bootable Linux mint usb but can't boot back into windows. deedi01 Linux - Newbie 8 05-04-2015 08:16 PM
make bootable usb from windows tom@LQuestions Linux - Newbie 5 01-17-2015 07:12 AM
How to make a bootable USB for Mac under Linux. ab303 Linux - Newbie 1 06-17-2012 05:13 AM
How do i make a .img file into a bootable usb in windows xp so i can install fedora7 cwere4 Linux - Newbie 4 06-25-2007 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 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