Creating a bootable flash memory stick to install from it.
GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
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.
Creating a bootable flash memory stick to install from it.
Hi: I want to install windows 7 on the hard disk of my machine. I have the iso image. As I lack an optical drive, I must create a bootable pendrive (USB flash memory stick) from which to install to hard disk. Looking in Google how to do this, I find that all these sites refer to some special purpose program to write the pendrive (I have at this time a running windows, windows 7, on the hard disk, but it hangs every now and then). My question is: in the case of windows 7 and later, isn't is enough to do
the command itself is ok; usually there's no need to define a block size, but syncing afterwards is important:
Code:
dd if=the_iso_image of=/dev/sdb ; sync
but i doubt that this will result in a "bootable windows usb" - which is entirely a windows problem.
not even all linux distros can be transfered to usb like this.
If you have a Linux machine with Grub2 available, you can use the method described below to install Grub to the flash drive and then copy the extracted files of the windows iso to the flash and boot and install from it. This requires manually creating the menuentry in the grub.cfg file and following directions exactly. Worked for me from a flash drive and a hard drive partition.
Microsoft Windows is a special-case beast. (ahem ...) You need to use their tools to install it on a bootable drive. Even if you use grub to afford yourself a selection of Windows images to install (a very handy thing for an administrator in a large company to do ...), you still must use Microsoft's tools to prepare the image.
Microsoft is, as we all know, very sensitive to the problem of people booting rogue or unauthorized or modified versions of their operating system. (They're sensitive to it, because their star customers are ...) They do a lot of funky-stuff in the very earliest parts of their boot-process.
The following worked:
1. With cfdisk I created a primary type 7 partition (/dev/sdb1) on the pendrive and marked it bootable.
2. mkfs.ntfs -f /dev/sdb1
3. lilo -M /dev/sdb mbr
4. Mount the Win 7 iso image and the pendrive and copy all files in the former to the latter.
5. The stick is ready to boot and install Win 7.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.