Making a bootable Pen Drive for Installation of Hamara

From Hamara Wiki
Jump to: navigation, search

In MS-Windows

1. Have a download manager. For instance, http://freedownloadmanager.org/ is one such client, install it as you would any MS-Windows program.

2. Now download the .iso you want from https://www.hamaralinux.org/download .

Now here you have two choices -

a. http://downloads.hamaralinux.org/final/hamara_1.0.2_i686.iso - (32 bit) b. http://downloads.hamaralinux.org/final/hamara_1.0.2_amd64.iso -(64 bit)

Notes -

1. The release number shared is just a symbol. The release numbers will change as newer releases come. 2. The difference between 32-bit and 64-bit are basically on how much memory they can use, how much hard disk space they can use as well as also a bit on multi-core and parallel processing as well.

The 32-bit cannot use more than 4 GB of RAM so you cannot have too many web-pages in a browser open as well as many applications running at the same time without being sluggish. Modern browsers need and do lot of things in the background hence they use quite a bit of memory.

The 64-bit on the other hand, can theoretically can address upto 18 Exabytes but due to current processor and other technologies can only address upto 4 Pebibyte/Petabyte . One Pebibyte/Petabyte is 1024 Tebibyte/1000 Terabyte so we have quite some time to go at least on consumer devices.

Once the .iso is downloaded, check that the .iso is correct by downloading ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe and using it to compare the sha1sum from the one given on the site to the one that is generated by running sha1sum against it.

The way to do it is like this :-

a. Go to Start > Run (or you use can Alt+F4)

b. Write CMD to start the Windows shell

c. Give the path where you downloaded the sha1sum utility against the path where you have downloaded the .iso . As an example :-

C:\D:\sha1sum.exe D:\hamara_1.0.2_amd64.iso

It will generate an sha1sum. Copy the sha1sum to your notepad and compare it with the sha1sum shared on the website. If the two are same, then we are in business.

Now it is time to put it on the pen-drive.

Put the pen-drive in your Windows machine, make sure the pen-drive is empty or the contents backed up and run Rufus.

Make sure that Rufus knows the full path to the .iso image and the pen-drive is also being found.

Look through all the options and depending on your system, memory, OS and port you should have the USB disk in sometime.

In GNU/Linux

In GNU/Linux it is pretty simple. download the file using either wget.

Doing it is simple. Simply go to a directory which has enough space and start to download.

   $mkdir hamara_ISO_CD
   $cd hamara_ISO_CD
   /hamara_ISO_CD $ wget http://downloads.hamaralinux.org/final/hamara_1.0.2_amd64.iso

If for some reason it stops, do the following :-

   /hamara_ISO_CD $ wget -c http://downloads.hamaralinux.org/final/hamara_1.0.2_amd64.iso

Once the .iso is downloaded, simply use sha1sum to see the same. Here is an old one :-

   /hamara_ISO_CD$ sha1sum hamara-sugam_1.0_290715_amd64.iso 
   dee195698f42ed39e75bdd298abbe24bbb6de3da  hamara-sugam_1.0_290715_amd64.iso

Once comparison of the sha1sum from the one given on the web-page is done and they are the same, then all is good. If it isn't then there is a problem. If the file-size is same and everything then come talk to us on the mailing list/forum/IRC and we will sort it out.

Once that is done, now it is time to copy the image to the usb disk.

Before diving in, take a moment and put the usb disk in and see where the usb disk is mounted/put up.

While there are various ways to know that, one of the more simpler ways is to use lsblk.

For instance, see :-

   $ lsblk
   NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
   sda      8:0    0 465.8G  0 disk 
   ├─sda1   8:1    0   1.9G  0 part [SWAP]
   ├─sda2   8:2    0  93.1G  0 part /
   └─sda3   8:3    0 111.8G  0 part /home
   sdb      8:16   1   3.8G  0 disk 
   └─sdb1   8:17   1   3.8G  0 part /media/shirish/4719-38E5
   

so it is telling me that the usb disk that I put up is in sdb1. You could run the same command before putting the disk and the same command after putting in the disk.

While it doesn't share the whole path, the path is

   /dev/sdb1 

Once you know this the command is

   dd if=/path/to/iso of=/dev/sdb1 bs=8192 conv=sync 

Within 2-3 minutes the USB disk should be ready to use.