Clonezilla is a partition and disk cloning program. If you want to do one of the following, it can be very helpful:

  1. a full backup of your system including program files, master boot partition etc.
  2. backup of one partition of your disk
  3. clone your hard disk to a solid state drive (SSD) to improve the performance.
  4. replace hard disk or SSD of your laptop with a larger one.

My case was number four: I bought a used laptop which had a 256 GB SSD. I wanted to replace it with a 500 GB SSD.

I connected the new SSD to a USB3 gate via cable as seen below and booted the laptop with Clonezilla ISO image.

SATA 6GB/s connector with both USB 2 and USB 3 connections.

SATA 6GB/s connector with both USB 2 and USB 3 connections.


The process was rather fast since both read and write was on SSD and the connection was via a USB3 gate.

Clonezilla copies partitions one by one. Here you see that it copies the main partition of the Windows 7 operating system.

Clonezilla copies partitions one by one. Here you see that it copies the main partition of the Windows 7 operating system.

So after copying was finished, I replaced the old SSD of the laptop with the new one and booted the system. It was identical to the previous system, nothing was changed at all !

so far so good. so it was time to format the extra space of the new SSD. But the partition on the new and large SSD was copied from the small SSD !!!! The system could not recognise that there are 250 GB more space on the disk !

After some googling, I realized that I can fix the partition using Fixpart.

So I booted the system via Debian 8 live CD and then downloaded the fixpart and installed that via dpkg command. Then I followed the instructions step by step and finally got an updated partition table. After that I installed gparted in the live environment of the Debian Jessie and it could recognise the unallocated memory as you can see in the following image:

Gparted could see the unallocated memory only after I fixed the partition table via Fixpart.

Gparted could see the unallocated memory only after I fixed the partition table via Fixpart.

The rest was easy, just a normal Linux installation which I explain in the next post !

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

# jessie-updates, previously known as ‘volatile’
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

# jessie-backports, previously on backports.debian.org
deb http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free

# multimedia
deb http://www.deb-multimedia.org/ jessie main non-free
deb http://www.deb-multimedia.org/ jessie-backports main

Python 3 is gradually replacing Python 2 and is some of the newest Linux distributions like Fedora 23, it is installed as default.

So the question is if you have a library of python 2.x programs and you want to start learning python 3 and updating your codes, how can you install all the necessary packages like matplotlib, scipy, nompy, etc for both versions of python without messing up the system (since Linux desktops e.g. gnome, KDE, etc use python themselves).

Using Anaconda or Miniconda is one of the solutions. I tried miniconda since I do not want the whole Anaconda packages. According to its webpage, “Anaconda is a completely free Python distribution … It includes over 195 of the most popular Python packages for science, math, engineering, data analysis.” Both Anaconda and Miniconda are available for Linux, Mac OSX, and Windows. This way, you install a fresh version of python on your home directory, so doing anything to that does not affect your operating system.

Package installation using conda

Assume you have installed the package via your package manager. Now we have the command  “conda” available on command line. We can create two different environments for python 2 and python 3 packages:

$conda create -n mypy2 python=2 numpy

$conda create -n mypy3 python=3 numpy

and similarly you can install any other package, e.g. ipython, scipy, etc.

When the environment exist, you can use the normal “install’ command, like pip:

$ conda install numpy python=3

How to use it?

You can add something like the following to your .bashrc file:

export PATH=”/home/user_name/miniconda/bin:$PATH”

Then in the command line, you can activate the environment you want to work with:

$source activate mypy2

and you get an output in terminal like this:

discarding /home/user_name/miniconda/bin from PATH
prepending /home/user_name/miniconda/envs/mypy2/bin to PATH

When you are done, you can deactivate it:

$source deactivate

conda has easy options to install, update or remove a package or the whole environment.For instance, you can remove a whole environment at once:

$conda remove -n mypy2 –all

Typing “conda” in terminal, you get the help file:

$ conda
usage: conda [-h] [-V] [–debug] command …

conda is a tool for managing and deploying applications, environments and packages.


positional arguments:
info          Display information about current conda install.
help         Displays a list of available conda commands and their help strings.
list            List linked packages in a conda environment.
search     Search for packages and display their information. The input is a regular expression.To perform a search with a   search string that starts with a -, separate the search from the options with –, like ‘conda search — -h’. A * in the results means that package is installed in the current environment. A . means that package is not installed but is cached in the pkgs directory.
create       Create a new conda environment from a list of specified packages.
install         Install a list of packages into a specified conda environment.
update       Update conda packages to the current version.
remove      Remove a list of packages from a specified conda environment.
uninstall     Alias for conda remove. See conda remove –help.
run             Launches an application installed with conda. To include command line options in a command, separate the   command from the other options with –, like conda run — ipython –matplotlib
config        Modify configuration values in .condarc. This is modeled after the git config command. …
init             Initialize conda into a regular environment (when conda was installed as a Python package, e.g. using pip).
clean         Remove unused packages and caches….

Questar 8 inch

Questar 8 inch (old) telescope and the Losmandy G-11 mount.

Questar 8 inch (old) telescope and the Losmandy G-11 mount.

The above image shows preparation for an observing session after a busy observing day. The telescope was pretty old but good enough to see the Venus-Jupiter conjuction on June 30, 2015.

Python pip

pip is a very helpful command to install python package either with or without root password. You can install a fresh python binding in your home directory. To install pip, you can do one of the following depending if you use redhat/centos/fedora or Debian/ubuntu:

Debian:  #apt-get install python-pip

Fedora: # yum install python-pip     (on fedora 23, yum was replaced by dnf).

then, you can easily use yum to manage your python packages:

$pip install numpy –user      # –user indicates that you install it in your home directory

$pip install numpy –upgrade   # to upgrade an installed package

$pip uninstall numpy

$pip show numpy    # This will show the installed version and directory of a package

Name: numpy
Version: 1.8.2
Location: /usr/lib/python2.7/dist-packages

$pip list       # it will print a list of installed packages with their versions.
$pip list –outdated      # check each package with the latest available version and remark the outdated ones.
the following reviews everything and reports about problems:

# pip-review

What can be installed with pip?

There are several thousand packages that can be installed via pip. I do NOT recommend to click on this link (the page is very big). The easiest way to check if a particular package exists in pip is the following command:

$ pip search numpy

so far, I have introduced PYMC, which performs Bayesian fitting (and a lot more) in Python. Now, I would like to note the EMCEE package developed at MIT. It is very easy to install and can be readily used for simple regression fitting, which is my everyday practice.

juts check the link and I hope it is clear enouph.

In an earlier post a while ago, I discussed about possibility to have a very bright comet this November/December. The updates are mostly disappointing as comet ISON does not perform the best expected. Alan Mac Robert from Sky and Telescope reviews the status of this comet recently and provided realistic estimated for expected brightening:

It can still be cached by small telescopes. However, the chance of having a bright (naked-eye) comet like Hale-Bopp is not significant.