Friday, November 8, 2013

Installing Kali On Hard Disk using usb

Booting and installing Kali from a USB stick is the easiest and fastest method of getting up and running. In order to do this, we first need to create the Kali ISO image on a USB drive. 

Preparing for the USB copy

  1. Download Kali linux.
  2. If running Windows, download Win32 Disk Imager.
  3. No special software is needed for a *nix OS.
  4. A USB Key (at least 2GB capacity).

Kali Linux Live USB Install Procedure

Imaging Kali on a Windows Machine

  1. Plug your USB stick into your Windows USB port and launch the Win32 Disk Imager software
  2. Choose the Kali Linux ISO file to be imaged and verify that the USB drive to be overwritten is the correct one.
  3. kali-usb-install-windows
  4. Once the imaging is complete, safely eject the USB drive from the Windows machine. You can now use the USB device to boot into Kali Linux.
If you just want to use Kali live, you can stop right here. Reboot and press F-12 or whatever shows up the multiboot menu, select the USB drive and run kali live.

Imaging Kali on a Linux Machine

Creating a bootable Kali Linux USB key in a Linux environment is easy. Once you’ve downloaded your Kali ISO file, you can use dd to copy it over to your USB stick as follows:
WARNING. Although the process of imaging Kali on a USB stick is very easy, you can just as easily destroy arbitrary partitions with dd if you do not understand what you are doing. 
In other words, you can completely mess up your hard drive to a state from which repair would required professional help. You have been warned.
  1. Plug in your USB device to your Linux computer’s USB port.
  2. Verify the device path of your USB storage with dmesg.
  3. Proceed to (carefully!) image the Kali ISO file on the USB device:
 dd if=kali.iso of=/dev/sdb bs=512k
That’s it, really! You can now boot into a Kali Live / Installer environment using the USB device.

Adding Persistence to Your Kali Live USB

Adding persistence (the ability to save files and changes across live boots) to your Kali Linux image can be very useful in certain situations. To make your Kali Linux USB stick persistent, follow these steps. In this example, we assume our USB drive is /dev/sdb. If you want to add persistence, you’ll need a larger USB device than we listed in our prerequisites above.
  1. Image the Kali Linux ISO to your USB stick as explained above, using the “Linux Method” and dd.
  2. Create and format an additional partition on the USB stick. In our example, we usegparted by invoking: 

     gparted /dev/sdb
  3. Your current partitioning scheme should look similar to this: 

    usb-persistence-basic-partitioning
  4. Proceed to format a new partition of your desired size to be used for persistence. In our example, we used all the remaining space available. Make sure the volume label of the newly created partition is persistence, and format it using the ext4 filesystem.
    usb-persistence-creating-partition
  5. Once the process is complete, mount your persistence USB partition using the following commands:

     mkdir /mnt/usb
     mount /dev/sdb2 /mnt/usb
     echo "/ union" >> /mnt/usb/persistence.conf
     umount /mnt/usb
  6. Plug the USB stick into the computer you want to boot up. Make sure your BIOS is set to boot from your USB device. When the Kali Linux boot screen is displayed, select “Live boot” from the menu (don’t press enter), and press the tab button. This will allow you to edit the boot parameters. Add the word “persistence” to the end of the boot parameter line each time you want to mount your persistent storage. 
    usb-persistence

38 comments:

  1. I am trying to image kali 1.0.7 into a memorycard size is 4gb, using a card reader and win32 disk imager , but I keep getting an error message, Error 5: Access denied to lock usb, pls can I get help as to wats the problem,

    ReplyDelete
    Replies
    1. some SDCards have a lock, verify locking mechanism/slide (is read-only, or rw?) Like at old floppy disks.

      Delete
  2. i m getting an error messg when creating a new virtual machine via vmware..its--could not detect which opertng systm is in the disc image..
    plz help me what should i do..

    ReplyDelete
  3. Can I use a HDD for this purpose instead of a USB ??

    ReplyDelete
    Replies
    1. You don't want to lose all your data in the HDD in case things go wrong. It's like using a swimming pool to store a drop of water. A simple 8 gb flash drive is just perfect.

      Delete
  4. What will happen to my computer after I install it? I loss my files? I will not get back on Windows ...?
    Thank you in advance,
    Coen (-Sorry, Google Translation)

    ReplyDelete
    Replies
    1. Search on google for Live OS . Read a bit about it. Kali supports live boot from USB. Learn about that too. Then use it live (recent versions have persistence too).

      Delete
  5. If you get an Error, "Volume Lock", you must format your USB to 64bit.

    Right click it and look for 32, click it and choose 64 instead.

    :)

    ReplyDelete
    Replies
    1. it was a SD card... Tell me, how to format a usb to 64bit?:D

      Delete
  6. hahaha most of you are exactly what he meant by "needs a one page guide to download a tool"

    ReplyDelete
  7. Thanks! you saved my life, I tried many tools such usb universal installer, unetbootin, rufus, and others with no luck to install kali from usb on my hard drive thanks again and thanks to GREAT dd command :-)

    ReplyDelete
    Replies
    1. Ever try BalenaEtcher? It's awesome if you have a mac!

      Delete
  8. Thanks for your thorough guidance. :)

    ReplyDelete
  9. Is it normal for my USB to be corrupted to FAT32 format for Kali Live after imagin the .iso?

    ReplyDelete
  10. wht is dd commands ?

    ReplyDelete
    Replies
    1. Al your info is on the net. Just use google m8.

      Delete
    2. dd if=/path/to/file of=/dev/sdb(usually) bs=512k

      if= input file (image file)
      of= output file (all ^nix-like distros treats all devices from a PC as files)
      bs=bytes per sector=512 kilobytes(k)


      Delete
  11. Um when I tried to boot from the USB, my computer said that it "didn't authenticate"
    Please help
    (I'm new at this)

    ReplyDelete
  12. After upgrade linux kali 2018.1 x64 persistence keyborad a mouse dont work !

    ReplyDelete
  13. can i install Kali on internal HDD?

    ReplyDelete
  14. Buy Pioneer BDR-XD05S Blu-Ray Player Burner - 6X Slim Portable External BDXL, BD, DVD and CD Drive for Windows and Mac with 3.0 USB - Write and Read on Laptop or Desktop, Includes Carry case (Silver): Blu-beam Drives - Amazon.com FREE DELIV pioneer bdr-xd05s region free

    ReplyDelete
  15. This is Very very nice article. Everyone should read. Thanks for sharing. Don't miss WORLD'S BEST CarGame

    ReplyDelete
  16. The preparation comes in the form of figuring out your own requirements and expectations from that product. usb c port

    ReplyDelete
  17. I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you! SAS Hard Drive

    ReplyDelete
  18. We are tied directly into the sate’s renewal database which allows us to process your request almost instantly. SAS Hard Drive

    ReplyDelete
  19. Gangaur Realtech is a professionally managed organisation specializing in real estate services where integrated services are provided by professionals to its clients seeking increased value by owning, occupying or investing in real estate. https://etcher.download/

    ReplyDelete
  20. Thanks for such super useful and decent post on installing kali on hard disk. This was very helpful topic definitely. Preparing usb copy and installation procedures you uncovered were very praiseworthy and knowledgeable. BTW crystal flash drives are nice choice for wedding, business presentation, products promotion and the other ads channel. With its elegant design, it will help you catch much attention from your clients. Especially the crystal part, it is as pure as diamond; therefore such usb model brings advanced design and raise the gift sales for your brand. It will be one of the best option for customized usb and gift usb and hugdiy can be an excellent place to make your first choose.

    ReplyDelete
  21. Very insightful article. You put so much relevant information regarding the installation of Kali on hard dish using usb drive. It might be praised by the tech users and fans. The coding and command formats were also knowledgeable. For best 1tb hard drive the theyoureviews perhaphs will be a good source to take a try. Thanks for sharing such a helpful touch.

    ReplyDelete
  22. USB is the shortened form for Universal Serial Bus. It's anything but another transport standard, yet utilized in the PC field of interface innovation. USB is the finish of 1994 by Intel, Compaq, IBM, Microsoft and different organizations mutually proposed. In any case, up to this point, it was generally applied.micro pc usb

    ReplyDelete
  23. Your blog is representing a hard core experience of Classroom, now not next to the bedroom even it is in your fists. Contact leading companies for best Pen drive course app development services .

    ReplyDelete
  24. Very Well Explained your Blog is just amazing and provides profound knowledge. I would also like to induce your attention to masterspas for wide range of Swimming Spa Pools

    ReplyDelete
  25. One of the benefits of what is a USB drive is that it is more portable than a floppy disk. Even though the last size of a floppy disk was 3½ inches in diameter and could easily fit in a short pocket, a USB flash drive is smaller than that, about the size of one's thumb. Bulk Flash Drive

    ReplyDelete
  26. Greeting Shashwat, you did a super handy project for your numerous fans and readers. Surely it's an adorable and conducive job. Installing Kali on hard disk drive using usb you stated steps by steps were really very interesting and tech-knowledgeable. I was impressed much reading through the details such as preparing for the USB copy, Kali Linux Live USB Install Procedure, imaging Kali on a Linux Machine, adding persistence to Kali live USB and so on. This was indeed and awesome work. I can also share about the best and honest tech and gadget recommendations, comparisons and reviews to make the right choice of your digital hardware and gadget. To get more information please take a tour here pickagadget.in.

    ReplyDelete

© Kali Tutorials, 2016. Unauthorized use and/or duplication of this material without express and written permission from this site’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Shashwat Chaudhary and Kali Tutorials with appropriate and specific direction to the original content.
Bitcoin: 1B5aLqJcMW7zznffTxQwta8JTZsxBDPguC