Saturday 1 February 2014

how to make a bootable usb

Several time while exploring more about pc,Things go wrong and computer starts crashing,This thing happens a lot when you are learning new tweaks or hacks,
And several times you need to re-install your os, and sometimes you need a bootable drive to that.
To make a bootable dvd, you first have to purchase it.and DVDs sometimes get scratches,which affects its functionality.and now a days about everyone have usb drives.
So these things make a bootable usb preferable over the dvd.
hence this post is dedicated for that.This post is only for

From WINDOWS

  Universal usb installer is a great tool for windows to make a bootable usb drive.
I will prefer it because it won't just help you to make a usb bootable with an OS but it will also help you to create a live cd for several antiviruses, plus it's fast,simple and at the same time it dosen't weighs much(about 1.04mb).It also offers a direct download link to OS's iso if you don't have it(I never used this option,so can't say how effective it is).
After downloading,open the exe it will popup a license agreement READ it and if you agree with it click on I agree,just kidding who the hell cares what is it there in the agreement.But you should read them sometimes specially when the software is paid one and you wanna publish it somewhere.
Now select the distribution from the drop down list,well it says select a linux distribution but windows is there in the list.you will fetch it in the bottom.it consists of three latest windows i.e. vista,7,8(for XP and earlier move to the cmd method).
Now browse for the iso file choose the dirve(make sure you're selecting the write drive,double check drive letter from explorer).
After all the tweaking click on create.Time taken depends on the size of the iso and your usb data transfer rate.
  cmd method : cmd can only make a bootable windows drive.And as cmd is offerred by windows you can understand why i said that only for and by the windows.

  • format the drive in ntfs format either the way you used to do or via cmd using diskpart(make sure to do a complete format,quick format won't here.)
  • extract the iso file using winrar or any iso extractor or mounter somewhere.
  • open the command prompt WITH ADMINISTRATOR RIGHTS
  • Type bootsect /nt60  drive_letter:

  • if this doesn't work then type cd location_where_you_extarcted_iso/boot/
  • Then type bootsect.exe /nt60 usb_drive: and you're screen should look something like this(if working in windows 8 alot like this).

  • Then copy the entire extracted files in the USB drive in which you have written the boot sector.



From LINUX

Under this section you will get three conditions.
  1. To make a bootable linux drive from a GUI application.
  2. To make a bootable linux drive from terminal.
  3. To make a bootable windows drive.
so let's start with the first conditions
Some linux distro has a inbuilt gui based application to get the job done,like mint has(i used linux mint 15 and 16 desktop version and they both have it,Don't know about previous version of this distro).well i don't think that a linux user is so dumb that it will need a guide to use that application.So i'm not going to get over the process,But if you're a novice to linux you can comment to ask your question. So,what if there is no such thing pre_installed,nothing you just have to get it installed. you can download unetbootin from here.
After downloading move to the folder where it is. Then right click in the folder (not over unetbootin and not over any other file). then you will get a option titled with "Open in Terminal" hit it you will get a terminal like this.(if this ain't work you,try cd command it surely will.)


Then type "sudo chmod +x unet" and hit TAB to autocomplete it if the autocomplete doesn't work that means you have more than one file in the same directory with the same name,until that last letter you typed so type some more letters,at the end your terminal should say "sudo chmod +x unetbootin-linux-585",if it does then hit enter.. it will prompt you for admin password enter the password and hit enter again.
Then type "./unetbootin-linux-585" and hit enter (don't forget to use that TAB button.) and now your screen should look like this. and from here you can do it on your own.(But if can't,you can let me know that via comment box sitting below)

Well you should get that window of UNetbootin poped up by now,but if for some reason this don't get right.you can try installing UNetbootin via repository.
To add repository and install it from there,open your terminal,and Type the following.
    sudo add-apt-repository ppa:gezakovacs/ppa sudo apt-get update sudo apt-get install unetbootin sudo unetbootin

Now the second condition totally cmd method Open your terminal cause this is the second method. Type the following in the terminal
sudo -i
fdisk -l (note your usb drive letter from here it would be like sdb1,sdc1,sdb2,sdc2....)
sudo umount /dev/sdbx (now replae the x and b accordingly.See the image below for reference.)
sudo dd if=/path/to/linux.iso of=/dev/sdbx bs=1M

ref

To make a windows bootable usb from linux you need program called winusb.To install that open terminal and type
sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update
sudo apt-get install winusb
Then open the.......(now,you know what to do,right??),
        

You should always make a bootable USB before trying new tweaks because when you mess the things up,then too you have a way to recover.
Meet you soon and in next post I will gonna tell you how to recover the files when you already messed up the PC.
Till then LIVE,BREATHE and BLOG...;)

1 comment: