Skip to main content

Bootable usb pendrive using cmd

Creating a usb pendrive using command prompt is not hard, it is one of the most common ways to create a bootable usb.
      This method does not work if your operating sistem is windows xp or windows 8 , you cannot select the primary partition in comand prompt.
       You just need to follow these simple steps:
  1. First step is to obtain the windows files from somewhere and save them to a folder in your pc. You can rip a windows dvd , or if you have the iso image file you can open it with magic disc or daemon tools or even winrar , and you need to copy the whole content to a folderanywhere in your pc , you just need to make sure you know where it is located.
  2. Make sure your usb stick is inserted, go to start search cmd , right click the  file and selectrun as administrator. The command prompt will appear, now you need to write the following comands:
  3. diskpart→list disk→select disk 1(chose  the usb device, you will recognize it by its size)→clean(this will erase the usb)→create partition primary→select partition 1→active→format fs=ntfs(this will format the usb drive and will take 10-15 minutes)→Untitled 5
  4. After the format is done you have to continue writting  in command promt :  →assign(now you will notice that the usb drive changed its letter to (H): or (G))→exit(this command will exit the disk part function)
  5. Now you have to write the path to the executable file in your windows saved folder , make sure that in your windows folder you have the boot folder with the bootsect executable file.Untitled 8
  6. In my case the command goes like this:   E:→cd win 7 sp1→
           →cd boot→bootsect.exe/nt60 h:(h is the letter of the usb drive ,this comand will update the boot core)→exit (this will exit command prompt).
Untitled 6
  1. Now you have to copy all the files in the windows folder to your usb drive. Untitled 7
  2. ALL DONE. You can now restart your pc and boot from the usb hard drive.

Comments

Popular posts from this blog

Reasons not to buy Akaso action camera if you are from india

Recently I made a full review of the action camera I brought after doing a ton of research and time. Having used it for a couple of months I feel extremely glad that it meets up to my expectations. But recently, I accidentally tipped off the camera without an external case and it cracked my lens. This, in turn, added a shady spot on my phone or video and I cannot use that anymore (Some phones of the cracked lens below)     I immediately mailed the akaso team to ask if there is anything they could do but unfortunately, this was their response. Oops, that was not what I was expecting and then I asked them I could get any details of the replacement parts or anything like that so that I can order it online. But that didn't happen it took a lot of time for them to respond me back(I have been bugging them on Facebook and email).  But after some time they left me with this response which I had no other choice but to accept. After getting the 50%re...

Create a docker image from your GitHub or Bitbucket repository | 2020

Are you wasting your valuable local resources and internet building your Docker images in your local machine, then its time to shift the gear towards using docker hub. With the docker hub, you can create a docker image just by using your GitHub or Bitbucket repositories as most of the projects are on them. So check out the video below to understand how that can be done. Feel free to post any queries comments below 😎.

THM — RUST — [task 13] challenge - writeup

Before starting this you must get familiar with all the previous tasks and run some code in the tasks and get familiar with error handling and using crates. If you have difficulty completing the previous tasks here is a walkthrough video of them. TryHackMe — learn Rust — [Task 13] : So as given the string is already encrypted and all you have to do is to decrypt in the order of rot13 -> base64 -> ROT13 -> plaintext and find the flag. To do that you can head to https://crates.io/ to find external packages which will decrypt the text for you out of the box, so search for packages such as base64 and rot13 to make use of them to use them in our code. So here are some packages which I used cipher-crypt = “0.17.0” base64 = “0.12.3” will use cipher-crypt for rot13 and base64 for base 64 decryption. So now you can add them to your dependencies in Cargo.toml file(as below) Now you are all set to use the packages it in your code. Then you can import these packages in your code as be...