DD command to create Bootable Windows Installer USB
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
DD command to create Bootable Windows Installer USB
Lets say that we don't have windows OS installed on any our laptop, and one day we are forced to have one. So far the easiest method to do is using the DD command since RUFUS is WINDOWS EXCLUSIVE SOFTWARE(which sound stupid to me, to make windows usb u need to use another windows, lol) compared to Linux OS which can be made in any OS using many software or simple DD command.
So, normally DD command goes like this:
Code:
sudo dd bs=4M if=SOMETHING.iso of=/dev/sd(number)
What I remembered when I was making Win7 bootable iso, something has to be added to the DD command to make it bootable
something like: mdos, dos, mbr, or something sounds like that
so, does anyone know how it's done? because without that special code, the USB can't make it thru the installation part, only stuck to the BIOS screen...
And If the mystery solved, I will make a blog about it, because none of this method can be found on the internet, just the regular one.
I actually once long ago did burn win 7 using dd, and I remember about the MDOS part(this was the most critical step to be done), it might be done NOT in DD, it might be done in gparted(linux) or diskutil(mac), I am really not sure about it. without those part, the burned USB cannot really be run from the BIOS.
if you tried Etcher on Mac or Linux, you will get warning about "bootable drive", that's what I meant. It might suggesting something like UNetbootin or whatever that is, they might not really gets updated or following the era. The new Mac Catalina has a lot of restriction of apps including wine, while linux is not so stable that most of the times has to do some workaround about things. that's why I stick on DD.
Not sure if that is a typo in your post but, in any case it is not a number but a letter that you would use (of=/dev/sdb or sdc or whatever it is).
Have you actually tried your method and what were the results. Haven't used dd for windows so have no idea?
How big is the windows iso file and what filesystem is the usb formatted as? Another important bit of information, which windows? Are we guessing 10? Is this going to an EFI install? If it is 10, you should be able to either extract or loop mount the windows iso and copy the contents to the usb and then select it from the BIOS firmware to boot.
More detailed explanation at the site below. Note the explanation on the size of the iso with regard to filesystem type. If you read and follow all the instructions it should boot either EFI/Legacy. Some of the instructions are Ubuntu specific but should be able to be modified.
I avoid that solution. When I have that issue I use E2B (Easy 2 boot) and create and E2B usb drive and copy the windows ISO I need to boot into the windows folder on that USB key. Then when I boot the key it gives me a menu and I just select Windows and the iso form the menu list. FAR easier than DD and I do not need to remember the command line options that are not well documented. (I use the standard dd options ALL the time, but I do not recall one specific to Windows ISO writing.)
If there is room, I can also copy Linux ISOs into the Linux folder on that key, and have a longer menu of things I can boot. (AND I can carry several versions of Windows and several versions of Linux around in my pocket! Priceless!)
I have created E2B keys on both windows and Linux workstations, but I have been told that the E2B site is full of adds now. I use a browser tool to suppress the adds so I had never noticed. I love the tool, but do not want to recommend the site without warning you about the adds.
Not sure if that is a typo in your post but, in any case it is not a number but a letter that you would use (of=/dev/sdb or sdc or whatever it is).
Have you actually tried your method and what were the results. Haven't used dd for windows so have no idea?
How big is the windows iso file and what filesystem is the usb formatted as? Another important bit of information, which windows? Are we guessing 10? Is this going to an EFI install? If it is 10, you should be able to either extract or loop mount the windows iso and copy the contents to the usb and then select it from the BIOS firmware to boot.
More detailed explanation at the site below. Note the explanation on the size of the iso with regard to filesystem type. If you read and follow all the instructions it should boot either EFI/Legacy. Some of the instructions are Ubuntu specific but should be able to be modified.
I'm sorry, u are right, if it's "sd" then it's a letter in linux. I mixed it up with Mac OS which is /dev/disk1.
I was doing Win7 long ago. Now, I'm about to try 8.1. From what u'r saying that win10 works like that, seems like making Ubuntu Bootable USB drive, and I'm 100% sure it doesn't work with win7, 50% sure with the 8.1 cause haven't tried it. about to tho.
I avoid that solution. When I have that issue I use E2B (Easy 2 boot) and create and E2B usb drive and copy the windows ISO I need to boot into the windows folder on that USB key. Then when I boot the key it gives me a menu and I just select Windows and the iso form the menu list. FAR easier than DD and I do not need to remember the command line options that are not well documented. (I use the standard dd options ALL the time, but I do not recall one specific to Windows ISO writing.)
If there is room, I can also copy Linux ISOs into the Linux folder on that key, and have a longer menu of things I can boot. (AND I can carry several versions of Windows and several versions of Linux around in my pocket! Priceless!)
I have created E2B keys on both windows and Linux workstations, but I have been told that the E2B site is full of adds now. I use a browser tool to suppress the adds so I had never noticed. I love the tool, but do not want to recommend the site without warning you about the adds.
is E2B available on LNX or OSX? what win version u have tried?
The page I linked to above specifically states that 64bit windows as well as 8 and 10 should work. Only used the method once for 10 so...?
dude, your link does work for making Windows USB Installer, I just tried it with Windows 8.1. However, This solution does not involved with DD at all, which does not solved what my post initially started for, but it is acceptable for the alternative. It takes more steps involving the mounting process, the i386 codes, and making the grub.cfg file, alas it works.
When booted in BIOS and it shows "USB Drive" instead of "Diskette Drive", that is a good sign, and that means the Windows USB Installer should be functioning normally it should.
From what I remembered, the DD process takes only a few steps might be involving gparted a bit, but it does not involving mounting, and grub thinggy. THATs what I remembered, I can be wrong, but I experienced with win7 installation success before with that kind of method.
is E2B available on LNX or OSX? what win version u have tried?
E2B does not install in your OS, it installs on your USB device from either one. (The instructions differ because you are running form a different OS to load the USB. I do not recall OSX instructions, but then I did not look.)
If you are interested, I can provide links to the download and instruction pages.
I recommend E2B for USB booting to run or install ISO images https://www.easy2boot.com/download/ https://www.easy2boot.com/make-an-ea...e-using-linux/
I own no stock in E2B, it just answers a regularly recurring question.
I boot both Linux and Windows ISOs, and for both traditional and UEFI installation.
I would think that you would be able to simply loop mount the windows iso file to a directory then use either cp or dd to copy the contents of the windows directory to a previously created partition on the usb. Since it is windows, you would need a windows filesystem and it may need to be exfat or ntfs depending upon the size. Mark the partition as active/bootable using GParted or another method. Brief description of the method at the link below, scroll down to the post by Lithium79. Not exactly what you were looking for. I don't have any windows iso to test so can't verify anything.
FYI, the Windows 10 install media is free for download from Microsoft. Has to be activated against a license or to hardware that came with it originally so no harm in giving the media away free. This download has both 10 home and pro. I have no idea why I know this, I don't use windows...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.