Install windows 7 From Pen drive

Windows OS Specific Topics
User avatar
SemiconductorCat
Major
Major
Posts: 455
Joined: Mon Aug 22, 2011 8:42 pm
Location: currently in hyperspace

Install windows 7 From Pen drive

Post by SemiconductorCat » Wed Jan 25, 2012 3:25 pm

Hi ,
I just came there to download something ,seeking for some download links.
My DN links are not working now anyway, Some member there had asked how could he
install windows 7 from a pen drive.

I think I have found a option , I'm not tested this yet and please let me know if you have
done this successfully.

Image

the software name is Universal USB installer 1.8.7.4 , it have clearly given that option.
I suggest you to test and reply back with the results too.

sandun.
--thanks in advance--
User avatar
Nandika
Captain
Captain
Posts: 247
Joined: Sat Oct 15, 2011 11:40 am
Location: Galle-Sri Lanka

Re: Install windows 7 From Pen drive

Post by Nandika » Wed Jan 25, 2012 6:42 pm

Hello ECs,
You can also try this methord for install Windows7 or XP from pen drive.I have succeed before.
1.format your pen drive with default option.
2.open command prompt.
3.go to system folder.
Ex:cd windows/system32(if you not in system partition,use "cd.." and "cd" command to enter system partition.)
4.type "diskpart.exe".now you will be able to see new console window with DISKPART> line.(if you are using Windows7 with default User security settings,will be able to see a warning click "yes" from it.)
5.type "list disk" command on console window.you will be able to see list of available HDD,pen drive in console window.
6.then type "select <disk n>".n is your drive number witch you want to create bootable pen drive.
ex:if your pen driv is Disk 1,n=1
(will see "Disk n is now the selected disk." on console)
8.type "clean" command.
(will see "DiskPart succe... ")
9.type "creat partition primary".
(now you have a partition in pen drive for set bootable status.will see "DiskPart succeeded creati... ")
10.now type "select partition 1" to select partition you created.
(will see "partition 1 is ... ")
11.type "active".
(will see "DiskPart marked the curr... ")
12.now you must format that partition with NTFS file system.type "format fs=ntfs quick" for it.
(wil see "100 percent compl..." and "DiskPart succesf... ")
14.now copy all contents of your Windows7 DVD\downloaded image.

Now you have a Windows7 or XP.
For boot,
select Removable from your BIOS or sellect your pen drive from quick boot menu.

thank.

[ Post made via Mobile Device ] Image
User avatar
Herath
Major
Major
Posts: 417
Joined: Thu Aug 05, 2010 7:09 pm

Re: Install windows 7 From Pen drive

Post by Herath » Wed Jan 25, 2012 8:02 pm

Hey nandika,
Have you tested your method?. I am just wondering since there is no step for installing the boot sector code on to the flash drive. Microsoft had provided a little command line tool for that but I can not remember the name at the moment.
The following is my recommended method from Microsoft.
http://www.microsoftstore.com/store/mss ... vd_dwnTool
User avatar
SemiconductorCat
Major
Major
Posts: 455
Joined: Mon Aug 22, 2011 8:42 pm
Location: currently in hyperspace

Re: Install windows 7 From Pen drive

Post by SemiconductorCat » Wed Jan 25, 2012 10:04 pm

what is typically a windows [fat32, NTFS] bootsector does is read another 16 sectors [16*512 bytes] to the memory
and it's code will locate the NTLDR in the root directory and copy it to memory and jumps into it.NTLDR then
read the boot.ini and show a menu options about which operating system do you need to load,something like this.
Image
and then it will execute ntdetect.com and neoskrnl,exe [that's where kernel code began to execute]

For more info: http://en.wikipedia.org/wiki/NTLDR

When we format our drive as FAT/NTFS inside windows , it typically placing those 17 sector bootcode implicitly.
There is a command to repair it in the windows maintance console. It's
http://www.microsoft.com/resources/docu ... x?mfr=true
fixmbr.


NOTE: So actually there's nothing need to write to the MBR, the bootcode in the MBR is already there.
But in windows installation disk the bootmanager is named as BOOTMGR instead of NTLDR in some DVD
iso downloads. In that case I think first try renaming it to NTLDR or try some tool like that I given above.


There is also a opensource version of the windows bootmanager and it's known as freeldr.
Here is the project page for freeldr.It's a part of the ReactOS operating system too. you guys may
have lots of fun with it.
http://www.reactos.org/wiki/FreeLoader
because you could freely read it's code there.How nice?
User avatar
Herath
Major
Major
Posts: 417
Joined: Thu Aug 05, 2010 7:09 pm

Re: Install windows 7 From Pen drive

Post by Herath » Wed Jan 25, 2012 10:23 pm

SandunDhammikaPerera wrote: When we format our drive as FAT/NTFS inside windows , it typically placing those 17 sector bootcode implicitly.
So, if this is true, copying windows setup files after formatting a pen drive with FAT filesystem should create a bootable flash disk right?.
The following is the tool i was talking about. And it is available with Windows Automated Installation Kit aka WAIK.
http://technet.microsoft.com/en-us/libr ... 10%29.aspx
User avatar
Nandika
Captain
Captain
Posts: 247
Joined: Sat Oct 15, 2011 11:40 am
Location: Galle-Sri Lanka

Re: Install windows 7 From Pen drive

Post by Nandika » Thu Jan 26, 2012 9:10 am

Hi Herath,
This methord is actually tested by me.
it worked 100% correctly.
this had in Wijaya Pariganaka magazine February 2011.
i cant describe inside activities of this methord.it also not in magazine.
i dont know about boot secter well.if you can,describe me.i think boot sector has data and instruction for give to BIOS program.
some time,at formating automatically creat it as Sandun saied.

thanks

[ Post made via Mobile Device ] Image
User avatar
Nandika
Captain
Captain
Posts: 247
Joined: Sat Oct 15, 2011 11:40 am
Location: Galle-Sri Lanka

Re: Install windows 7 From Pen drive

Post by Nandika » Thu Jan 26, 2012 11:21 am

flowing are some images while did my methord.
i cant connect my computer using cable or bluetooth.
there are photo taken by me from my mobile.
and i cant post all in one post.i tried,lost my time only.

[ Post made via Mobile Device ] Image
User avatar
Herath
Major
Major
Posts: 417
Joined: Thu Aug 05, 2010 7:09 pm

Re: Install windows 7 From Pen drive

Post by Herath » Thu Jan 26, 2012 11:28 am

Hi,
I just had a look about that issue. Only diskpart do that. Formatting with Windows Explorer or the format.com does not make the disk bootable. :) . I am not sure about linux mkfs commands though.
User avatar
Nandika
Captain
Captain
Posts: 247
Joined: Sat Oct 15, 2011 11:40 am
Location: Galle-Sri Lanka

Re: Install windows 7 From Pen drive

Post by Nandika » Thu Jan 26, 2012 11:38 am

[ Post made via Mobile Device ] Image
Attachments
Photo-0034.jpg
Photo-0034.jpg (320.93 KiB) Viewed 15454 times
User avatar
Nandika
Captain
Captain
Posts: 247
Joined: Sat Oct 15, 2011 11:40 am
Location: Galle-Sri Lanka

Re: Install windows 7 From Pen drive

Post by Nandika » Thu Jan 26, 2012 11:59 am

[ Post made via Mobile Device ] Image
Attachments
Photo-0045.jpg
Photo-0045.jpg (456.18 KiB) Viewed 15454 times
Post Reply

Return to “Windows”