Installing and Booting Vista from a USB Flash Drive
Vista February 25th. 2008, 5:02pmMy brother recently had to swap hard drives in his ThinkPad. Seeing as his fancy IBM doesn’t have a disc drive, he needed to figure out a different way of installing Vista on the machine after the swap. Now like most of us he had seen the many articles stating you can install Vista from a USB drive so he decided to give it a go. To start off with he found the instructions on Kurt Shintaku’s blog but it turned out they were not entirely applicable.
What the many people who cite this method don’t say is that you have to have a computer with Vista already installed to follow the procedure. Why? Because diskpart works differently in Vista and XP. For one thing you can’t use diskpart to format disks in XP.
He formated the disk to FAT32 as per the instructions but for what he describes as “an eternity” all he got was error messages: This is not a system disk, there is an error on the disk etc. So he tried to format it in NTFS. But that just resulted in new error messages such as “Can’t find NTLDR” (NTLDR being the start file for NTFS file systems).
Then, after what must have been years of experimenting (if we are to believe that it took a full eternity to figure out something was wrong) with different partitioning software, he found a working algorithm:
Before you begin,
- the USB drive main partition needs to be active
- you have to copy the contents of your vista install disk onto the USB drive
- you need to make sure the USB drive’s boot sector is the correct one this is how I did it:
OK. Here we go:
- Go into hardware properties of the usbdrive: My Computer -> right click the USB drive -> select Properties -> select Hardware -> select the correct drive -> select Properties again -> select Policies -> select Optimize for Performance.(This is to make it formatable with NTFS, so strictly speaking it’s not necessary, it’s just how I got it working. If you do this, you have to remember to always use Safe Eject on this drive. If you don’t you might corrupt some files.)
- Open Command Prompt and write the following (commands in bold italics):
- diskpart
- list disk
- find the drive you want and then type: select drive # (so if it’s disk 1, you type disk 1)
- clean
- create partition primary
- select partition 1
- active
- assign
- exit
This should delete everything on the USB drive and then make a new partition without a file system on it.
- Find out what drive letter your USB drive has (you find out by looking for it in My Compuber). Still in Command Prompt, type: format f: /fs:ntfs
It will ask you for confirmation and then a name. - Now that you have a clean USB drive it’s time to fill it. Find your Vista Install Disk and find out what drive letter it has. in my example it’s d:so, still in Command Prompt type: xcopy d:\*.* /s/e/f/r/h/x f: (where f: is your drive letter for the USB drive). There are probably 3 slashes more than stricty necesary, but it’s nice to stay on the safe side. /s/e/f should copy all files and subfolders while /r/h/x should keep the ownerships and copy any hidden files.
- Here comes the fun part; Make the USB drive bootable into Vista Install.
On the Vista Disk there is a folder called boot. Copy this folder to your hard drive (and remember where you put it). Using Command Prompt, find this folder and
type: bootsect /nt60 f: It’s very important that you are carefull with this command since it can change the bootsector on all drives on the computer if you manage to screw it up. To be safe you can write just: bootsect or: bootsect /help the first time and get some understanding of what you are doing. If you are too lazy, here is the short explanation: Bootsect is a small program that changes the bootsector on a drive (or all drives or just the system drive) to either want to boot with ‘NTLDR’ or the new system that uses the file ‘bootmgr’. If you try to do this from the usbdrive it won’t work as it should since you are trying to edit the disk you are using the program on. I think it’s supposed to make it able to boot from FAT32 systems too, but i didn’t get that to work, so I say stick to NTFS. - Now you should have an USB drive that you can use to install Vista from boot (provided your PC will let you boot from USB that is).
[Disclaimer: I do not take responsibility for any destroyed computers / lost data / marital break-ups resulting from trying this procedure. Although my brother usually knows what he’s doing he has also destroyed an impressive number of computers. Consider yourself warned!]



















April 10th, 2008 at 5:02 pm
[…] …http://www.techspot.com/vb/all/windows/t-12086-Problems-with-XCOPY-over-networked-drive.htmlInstalling and Booting Vista from a USB Flash Drive My brother recently had to swap hard drives in his ThinkPad. Seeing as his fancy IBM doesn??t have […]
April 24th, 2008 at 4:46 am
Nice article. Thanks.
Like your brother, I lacked an optical drive on the PC in qesiton and any other Vista machine.
With this article and a bit of fiddling myself I was able to make active the inactive bootable Vista partition on my HDD.
One clarification I would like to make to your article is that I had to boot a XP machine with the Vista installation disk, in order to get to a Vista command prompt and run diskpart in there. Apart from that, I did everything else as described above.
June 6th, 2008 at 6:33 am
Hi
I’m just new to these stuff and i was interested in this article but there is something that i don’t get .. every time i do list disk it just gets me the disk 0 which is m HDD .. can u help me with that please
.
June 11th, 2008 at 5:00 pm
@VoldEMorT
may be after step open cmd and type diskpart, you can type disk list to see which is your usb drive.. if you have 2 HDD, then the usb drive must be disk 2..
hope this can solve your problem..
June 11th, 2008 at 5:00 pm
@VoldEMorT
may be after step open cmd and type diskpart, you can type list disk to see which is your usb drive.. if you have 2 HDD, then the usb drive must be disk 2..
hope this can solve your problem..
June 26th, 2008 at 5:38 am
VoldEMorT;
I’ve seen that sometimes the USB drive won’t show up in diskpart. I don’t remember exactly why, but it might help trying a different USB drive. I think I saw the same thing the first couple of times I tried to make a USB HDD bootable, and I think I solved it by doing a complete reformat of the drive in partition commander or something like that.
I wouldn’t recommend trying that seeing as when trying to figure out how to do all this I actually spent 18 hours fiddleing with 2 USB drives and a USB HDD in 3 or 4 different partitioning programs. (would have been alot easier to just find my USB DVD drive, but where’s the fun in that)
I have seen that some USB drives are harder to find in diskpart. My expirience is that it’s usually easier to find the high end USB drives like Corsair.
If I remember correctly (was a while ago I did this) what I did was to go into some partitioning program and remove all the partitions on the USB drive and then add a new one that was active and format it to NTFS.
Some USB drives won’t show up in most partitioning programs, one of my first ones I lost all the data I had on it when I accidentaly managed to crash a format of the drive, it wouldn’t show up as a drive anymore. I had to go to the manufactorers website and download a program from them to be able to reformat it so that it was usable again.
Also to Andrew;
When I was figuring this out I couldn’t use the vista version of diskpart, that was actually my main problem since al the guides i found all required vista in the first place. So it should be completely possible to follow this guide without having to get into the vista version of diskpart.
But if you can use it, the vista version has a few more posibilities that could make the process a bit quicker
July 14th, 2008 at 6:06 am
Only thing I might comment on is that it isn’t necessary to format the flash drive to ntfs. Fat32 will work just fine. In fact, it isn’t a good idea to “ntfs” your flash drive at all, because you may not be able to get it back to original again.
July 15th, 2008 at 10:56 pm
I only had some trouble getting Bootsect to fix the bootsector of a fat32 drive to be able to use bootmgr to boot with. It should be possible to get it working, but i didn’t.
The only flash drives i’ve had trouble with getting back to original state have been some really cheap drives that windows refused to find in diskpart and a drive that crashed during a format. with newer drives it shouldn’t be a problem.
a simple way of doing it should just be to reverse step 1 of the guide, redo step 2 and do step 3 with /fs:fat32 instead of /fs:ntfs.
Haven’t tried it though so i’m not a 100% sure.
If you only use the usb drive on windows computers it can actaully be smarter to have it in ntfs because of native disk compression and being able to save larger files.