LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-13-2015, 04:30 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
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
Code:
dd if=the_iso_image of=/dev/sdb bs=some_apropriate size,
assuming /dev/sdb is the pendrive?
 
Old 06-13-2015, 07:06 PM   #2
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
I used this, which worked for me. Didn't require another Windows install or special Ubuntu apps.

https://serverfault.com/questions/67...dia-from-linux
 
Old 06-13-2015, 08:18 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,985

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Microsoft technet site and maybe a few other microsoft sites had the directions to make a bootable usb installer for windows.
 
Old 06-15-2015, 10:35 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
Old 06-15-2015, 02:36 PM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
AFAIK the `dd` command doesn't work for Windows ISO images (it didn't when I tried it on a Windows 10 ISO image).

It only works for so-called "isohybrid" GNU/Linux ISO images.

You could try USBWriter or Rufus from Windows.
http://sourceforge.net/p/usbwriter/wiki/Documentation/
https://rufus.akeo.ie/
 
Old 06-15-2015, 04:36 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
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.

http://onetransistor.blogspot.ch/201...om-ubuntu.html
 
Old 06-16-2015, 08:09 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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.
 
Old 06-16-2015, 03:26 PM   #9
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
The guide I linked to worked for me. No MS tools needed.
 
Old 06-21-2015, 04:02 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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.
 
  


Reply



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
Bootable USB Stick Creating Program in Xubuntu? Novatian Linux - Software 6 07-21-2013 04:02 PM
Software for bootable memory stick mechanicaldesign Red Hat 1 04-19-2010 07:57 AM
creating a bootable WinXP USB stick in Fedora 10 manuleka Linux - Software 1 05-17-2009 10:47 PM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 04:56 PM
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 11:39 PM.

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