LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-15-2021, 03:49 AM   #1
doom_23
LQ Newbie
 
Registered: Feb 2021
Location: Poland
Distribution: Debian Sid
Posts: 12

Rep: Reputation: Disabled
Make bootable Windows XP usb from Linux


Hello. I have a winxp.iso that I want to flash to an usb drive. But all programs I found can't flash Windows XP.
I tried
Code:
dd winxp.iso /dev/sdX bs=4M status=progress oflag=sync
then flashed mbr with
Code:
ms-sys -m /dev/sdX
but it does not work. The idea I have is to use WinSetupFromUsb from wine, but I haven't been able to make usb devices visible in the last one.
 
Old 02-15-2021, 04:08 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You need to make the ISO USB bootable, click the link in my footnote for instructions.
 
Old 02-15-2021, 04:39 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
if and of are missing (at least)
Code:
dd if=<source> of=<destination> other_flags
 
Old 02-15-2021, 05:51 AM   #4
doom_23
LQ Newbie
 
Registered: Feb 2021
Location: Poland
Distribution: Debian Sid
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
if and of are missing (at least)
Code:
dd if=<source> of=<destination> other_flags
Yeah, I've just noticed it but in a terminal I wrote it correctly:
Code:
sudo dd if=winxp.iso of=/dev/sdb bs=4M status=progress oflag=sync
 
Old 02-15-2021, 06:04 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,537

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Did you do the isohybrid command as windows iso files are not. The link below discusses varius methods of creating bootable USB's including a separate section on xp.

https://techgage.com/article/creatin...ve-installers/
 
Old 02-16-2021, 06:00 AM   #6
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
Are you certain the flash drive works with other ISO images and able to boot to the same machine you are wanting to use?

Just curious.
 
Old 02-16-2021, 08:53 AM   #7
doom_23
LQ Newbie
 
Registered: Feb 2021
Location: Poland
Distribution: Debian Sid
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok, I successfully did it. I followed by this tutorial.
We need a RUFUSLDR file. I didn't find one in the internet so I have uploaded it - http://www.mediafire.com/file/phq13g.../RUFUSLDR/file
First, format you drive with FAT32 file system. I did it using gparted.

Then run
Code:
sudo fdisk /dev/sdX
where /dev/sdX - is your flash drive. Then hit "w".

Download ms-sys from here, extract it, open terminal in the extracted folder and run
Code:
make
After compilation has been finished, go to bin directory and run
Code:
sudo ./ms-sys -w /dev/sdXY
and then
Code:
sudo ms-sys -p /dev/sdXY
Copy the files from iso to your usb drive.
Place RUFUSLDR file on the root level.
Copy NTDETECT.COM from i386 to the root level.
Copy txtsetup.sif from i386 to the root level.
Open the new copy of txtsetup.sif and Ctrl+F for [SetupData]. Right under that header, put this line:
Code:
SetupSourceDevice = "\device\harddisk1\partition1"
Then reboot your PC press "c" in your grub menu, and run these commands:
Code:
insmod ntldr
set root=(hdx,msdosy) (replace x and y as appropriate, in my case it was hd1,msdos1)
ntldr /RUFUSLDR
boot
Now install Windows XP
 
Old 02-16-2021, 08:57 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I wonder what ISO you had. I used genuine XP install disk, pulled an ISO image of it and used isohybrid and dd. It worked like charm, so I wrote it down here .
 
  


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
Can I transfer boot sector to a non-bootable image file and make it bootable? lucmove Linux - Software 16 09-23-2020 09:33 PM
[SOLVED] Can I make a USB hard drive bootable with same procedure to make USB stick bootable? Tem2 Linux - Hardware 1 02-16-2019 08:25 AM
[SOLVED] How do you make a bootable ISO from a bootable USB stick? bt101 Linux - Newbie 20 09-27-2018 09:09 AM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 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