LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-15-2009, 05:54 PM   #1
endertux
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
creating windows 7 bootable usb from linux


I only have linux machines in my home right now and was wondering if it is possible to create a bootable Windows 7 USB flash drive from within linux using only a .ISO file.
Is there some utility that can do that, or am I stuck without WoW until I can get to a windows machine and use that to make the disk? (^.o)
 
Old 10-17-2009, 02:59 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Slackware current
Posts: 8,457

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
AFAIK windows doesn't boot from USB
You can however install windows in a virtual machine in linux.
 
Old 04-24-2010, 02:25 AM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 479

Rep: Reputation: 113Reputation: 113
I know this is an old thread, but I was also wondering how to do this and figured it out.

Format your USB drive as NTFS (also make sure the partition is marked bootable)

Mount your Windows 7 ISO and copy the files to the USB drive

Download ms-sys

Install it
Code:
tar xvf ms-sys-2.1.5.tar.gz
cd ms-sys
make
make install #as root
Write a Windows 7 MBR to your USB drive (as root)
Code:
ms-sys -7 /dev/sdX
Replace 'X' with your USB drive letter

You now have a bootable USB Windows 7 installer

Last edited by piratesmack; 04-24-2010 at 02:29 AM.
 
Old 05-26-2010, 08:21 AM   #4
oobe
Member
 
Registered: Sep 2003
Distribution: slackware
Posts: 82

Rep: Reputation: 15
Thanks heaps for this i dont have any windows installs and been looking for a guide as i need to do this exactly I havent tried it yet will edit this Thanks post to confirm it works


EDIT: works well I tried FAT32 at first but it didnt work

Last edited by oobe; 05-27-2010 at 12:02 AM.
 
Old 05-26-2010, 04:47 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 5,907

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
All you have to do is make it active and copy the files to it. See here for exact ms page. http://technet.microsoft.com/en-us/m.../dd535816.aspx

Follow steps in page using linux commands.


Follow this.

format in fat32 if not already.
mark as active. (may have to use hp tools or syslinux to get it to be active some usb devices are real stinkers)
copy dvd to flash and reboot.
 
Old 05-27-2010, 12:06 AM   #6
oobe
Member
 
Registered: Sep 2003
Distribution: slackware
Posts: 82

Rep: Reputation: 15
Jefro i saw that guide and many others as you can see its for people who already have a working windows install which of course I proudly do not.

all that guide really tells you is to format the stick and copy the files over I already knew that before researching the subject the problem was installing a reliable boot sector.
 
Old 05-27-2010, 03:35 PM   #7
jefro
Guru
 
Registered: Mar 2008
Posts: 5,907

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
(may have to use hp tools or syslinux to get it to be active some usb devices are real stinkers)
 
Old 05-12-2012, 08:23 PM   #8
soreau
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by piratesmack View Post
I know this is an old thread, but I was also wondering how to do this and figured it out.

Format your USB drive as NTFS (also make sure the partition is marked bootable)

Mount your Windows 7 ISO and copy the files to the USB drive

Download ms-sys

Install it
Code:
tar xvf ms-sys-2.1.5.tar.gz
cd ms-sys
make
make install #as root
Write a Windows 7 MBR to your USB drive (as root)
Code:
ms-sys -7 /dev/sdX
Replace 'X' with your USB drive letter

You now have a bootable USB Windows 7 installer
I also found this to be helpful, but I could not get it working at first. The comment "mark as active." was misleading. Instead, I just set the boot flag in gparted after formatting to ntfs. Copied the files over, installed the boot loader and it boots now.
 
  


Reply

Tags
bootable, flash, iso, usb, windows


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a bootable knoppix 6 usb schaut Debian 3 06-18-2009 08:41 PM
creating a bootable WinXP USB stick in Fedora 10 manuleka Linux - Software 1 05-17-2009 10:47 PM
LXer: Creating A Bootable Ubuntu USB Thumbdrive From Windows With uSbuntu Live Creato LXer Syndicated Linux News 0 04-24-2009 03:00 PM
creating a bootable usb thumb drive tlarkin Linux - Software 13 02-21-2006 06:39 AM
Creating a bootable slackware ISO in Windows XP!?!?! black hole sun Linux - Newbie 10 07-11-2004 12:17 AM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration