There are times when you need to write Windows on a USB flash drive in Linux, for example, when you want to put this system to use the second specialized programs, or you need to reinstall the OSes your friends. Or there is Linux users who have decided to return to Windows, but only the stick is already re-recorded under Linux LiveUSB.
Boot Windows to Linux flash drive is created simply. I offer a few ways to solve this problem. All of them I have listed below.
- Bootable USB flash drive Windows to Linux
- Bootable USB flash drive UBUNTU ULTRAISO
- Creating a bootable USB flash drive in the UBUNTU
- How to create a bootable USB flash drive Ubuntu in Windows
- How to make a bootable USB flash drive in Ubuntu Linux
- Installing Ubuntu on a USB flash drive
Bootable USB flash drive Windows to Linux
You can create the boot flash via a terminal or special graphics utilities. First, consider the manual method.
The content of the article:
Method 1: Terminal & Gparted
Start the terminal through the main menu or with a keyboard shortcut «Ctrl + Alt + T» in Ubuntu and Ubuntu-like, in addition to Kubuntu.
use the command dd:
dd if=/windows.iso of=/dev/sdx
The second option
Install the gparted and ntfsprogs. In Ubuntu, for this, use the command:
sudo apt install gparted ntfsprogs
Next we need to format the USB flash drive. You can do this via gparted, and can be in the terminal.
To format a USB-drive Gparted in the upper right corner click on the drive icon and select the flash drive.
Right-click a context menu for the section and click "Unmount" :
Then click "format in ..." from the menu choose "ntfs" .
Click "apply" .
The answer to the question "Apply this operation? 'Consent.
Team to do everything a little easier:
sudo mkfs.ntfs /dev/sdb1
Sdb1 instead of the name of your USB drive (no label!). To know what it's called, follow:
Go ahead. Open Gparted, if you have not yet discovered it, and select USB flash drive, if you have chosen not to. Right-click and select "Set flags" . Put the boot box and click "apply".
Next you need to open the image windows.iso.
sudo mkdir /media/iso
$ sudo mount windows7.iso /media/iso -t udf -o loop
It remains only to copy all the files from the image to the stick:
cp -R /media/iso/* /run/media/имя_флешки
Where / the run / media / imya_fleshki - mount point of your stick. You can see it just by going to the folder / run / media or / media and looking to the name of the nested folders.
It was a way for those who do not like to put a lot of disposable tools in the system. Creating a bootable Windows USB drive in Linux using third party tools look simpler.
Method 2. winUSB utility
Perhaps this is the easiest way to create. Installing on Ubuntu:
sudo add-apt-repository ppa:colingille/freshlight
$ sudo apt update
$ sudo apt install winusb
Installing Debian / Ubuntu 14
sudo add-apt-repository ppa:colingille/freshlight
$ sudo apt-get update
$ sudo apt-get install winusb
Simple interface. Press down on the button "Browse" (folder icon) and select the image. Then click «Install» and wait.
Method 3. Utility Etcher
If WinUSB did not help, I do not start, it is not for your distribution, you will Etcher utility. The utility is currently under heavy development, but even in the beta program correctly performs its function writer iso-images. Etcher supports Linux entry, macos 10.9 +, Windows 7+. Maybe it creates a bootable USB flash drive Windows 10 with Linux.
Go to the official website and download the utility .deb / .rpm package. Or, if your distribution does not support these packages, download .appimage file. It should work on all distributions.
After installation you can run the program from the main menu or from appimage file, if you have chosen this path. Once the program starts, locate at the downloaded iso-image:
Insert the USB flash drive:
Press the «Flash» and wait for the end of the recording. You will have approximately the inscription:
As you can see, creating a bootable Windows USB drive in Linux is easy. These were all ways that I know of. If they help you, write about it. If you know of other ways, be sure to write about them in the comments!
Bootable USB flash drive UBUNTU ULTRAISO
Creating a bootable USB flash drive in the UBUNTU
Optical disks are disappearing. Many models of laptops and netbooks have all produced without a built-in optical drive. And more and more often for the installation of operating systems used by USB-stick. This is due to their low cost and ability to perform rewriting many times.
We will look at how to make a bootable USB flash drive in Ubuntu Linux distribution environment, with no matter what - interesting utility we can be easily installed from the official repositories. We also consider the creation of a bootable Ubuntu USB drive in Windows.
I will clarify: the image of Ubuntu - this is what we say in the article, but can be any other way of Linux on the location of the distribution. Nothing will change, except for the size of USB-drive: at the end of the article we will touch on the subject, how to install a complete Ubuntu on a USB flash drive and get a fully working system. For these purposes will need a device with more memory.
The content of the article:
How to create a bootable USB flash drive Ubuntu in Windows
Let's say you downloaded the image from the official Ubuntu site and want to burn to a USB flash drive. If this must be done on Windows, then you most likely have not used Linux and do not know how to record images. Therefore, I say that just copy the image to a USB flash drive does not help, it is necessary to capture an image of Ubuntu on a USB flash drive.
The best program to create a bootable Ubuntu flash drive on Windows, and in general for recording images on a flash drive, I think Rufus. The program works well, is easy to use and do not need to install anything. You can download it via the link.
Connect the USB flash drive into your computer and run the program:
Select the device you will go recording, ie your USB flash drive:
Tick: Quick Format , Create a boot disk, and then in the drop-down list, set the ISO image :
Select the image of Ubuntu or another distribution with the button:
Click Start to start recording:
All we have to wait the end of the recording, and bootable flash drive is ready. Then you can restart the computer and proceed to install.
How to make a bootable USB flash drive in Ubuntu Linux
In Linux, we will look at some ways to make bootable USB flash drive Ubuntu. The first method - through the terminal via the standard Copy utility dd .
Connect the USB flash drive and specify the name of its device in the system. As a rule, it is / dev / sdb1, but there may be others. To be sure, look at all the connected devices with the command the fdisk :
Device of Boot Start End Sectors Size Id Type
/ dev / sdb1 * 2048 15,693,823 15,691,776 7,5G c W95 FAT32 (LBA)
As you can see, for the stick here contains the FAT32 file system, and also has its size in gigabytes - 7,5G.
Start up image on a USB flash drive with:
dd if=~/Downloads/ubuntu.iso of=/dev/sdb1
Here I mean? that ~ / Downloads / ubuntu.iso - an installable image, and / dev / sdb1 - your flash drive.
Wait for the creation of a bootable Ubuntu USB drive, and you're done.
images are much easier to write to a USB flash drive using the graphical tools. In Linux, also has a program to create a bootable Ubuntu flash drive. Unetbootin she called. It is very easy to install from the official repositories of any distribution, the name of the same package.
For example, in Ubuntu:
sudo apt install unetbootin
Let's look at how it can help to make a bootable USB flash drive Ubuntu.
Connect the USB flash drive and run the utility command:
Put the switch to the disk image :
Select the installation image using the icon buttons [...]
Select the device for recording and press OK .
Bootable flash drive Ubuntu is ready. You can install the system. But now it is only suitable, if you want a full bootable USB flash drive to be mounted on her programs and changes in the configuration files, you need to install Ubuntu on a USB flash drive.
Installing Ubuntu on a USB flash drive
In fact, it's not as difficult as it seems to you now. This Linux - here you can do whatever you want, including to install the system on a flash drive.
First, follow all the regular setting until you get to the disk partitioning. The layout method selection dialog box, select Another option:
Further, in the disk layout window, you will see two connected to the drive system, one of them - your hard drive, the other - the flash drive. To determine who is who, we can size:
Unlike a typical installation, Ubuntu bootable flash drive does not require a swap partition, it is even contraindicated, because the system will often overwrite the data, and so you just reduce the lifetime of the stick. Other sections also can not divide like a regular installation. Just create a root partition with the ext2 file system. It is necessary to select the file system, so that, again, reduce the number of disk writes.
Then perform the installation as usual. Bootable flash drive will be successfully created, but it is important to perform a few tweaks after the completion of the process all with the same goal - to reduce the number of disk writes.
It is necessary for all sections and add the noatime option nodiratime. As well as the folder for the temporary files in the connected memory.
To do this, open the file / etc / fstab and add the following lines:
Then, for all partitions placed on a flash drive, add the above options. For example, it:
More, if you do not plan to install the program, you can remount the root in read-only mode.
It is important to note that Ubuntu bootable flash drive with the operating system installed on it - not a good idea. The number of entries in the USB-drive is limited, so although all listed here optimize and increase the lines of the carrier service, no one can predict when the device fails. This option works, but is not a reliable system.
That's all we have considered the most easiest way to create a bootable USB flash drive or any other Ubuntu distro in Windows, and in Linux. Now you can even install a complete system on a flash drive. If you have any questions, ask them in the comments.