Sat, 28 Jun 2008
Cloning Hard drives using G4L and Knoppix
This document outlines how to use G4L(ghost for linux) with knoppix.
Disclaimer :- Please use this document carefully and with your own responsibility.I cannot be handled responsible for any data loss corruption or damage of any sort.By referring to this doc you own complete responsibility of your actions.In case of doubt of liability/responsibility pls do not use this website.
Problem Description
As always people have thought about the above problem description and found various kinds of solutions with varying level of success in different environment/scenarios.
Using G4L along with Knoppix solves one of its important shortcomings of auto-hardware detection.Knoppix is one of the best live-CD's with a very very good automatic hardware detection.
Another advantage of using it with Knoppix is that a lot of folks already have Knoppix CD/DVD which they use as their swiss knife and this script fits very well in the arsenal without having to install anything.
How-to use G4L with Knoppix
Here is a list of software which you will need
Other Notes
Other Alternatives
Disclaimer :- Please use this document carefully and with your own responsibility.I cannot be handled responsible for any data loss corruption or damage of any sort.By referring to this doc you own complete responsibility of your actions.In case of doubt of liability/responsibility pls do not use this website.
Problem Description
- You want clone a hard drive especially in cases like you bought a bigger hard drive and you want to migrate your old data as well as settings etc from one machine to another machine. to proprietary solutions like Norton Ghost.
- You are looking for a solution which is platform/OS/filesystem independent
- You are looking for a bit-by-bit cloner of hard drive..
As always people have thought about the above problem description and found various kinds of solutions with varying level of success in different environment/scenarios.
- Alternative 1 : g4u
- Pros - Very light weight , fits on a floppy or a USB drive and on CD.Hard Drive to be cloned can hold any type of filesystem including ntfs/fat etc.Since it is a bit by bit copy it does not matter what OS/filesystem is on the hard drive.
- Cons - Since it is so small it obiviously cannot fit all the drivers required for accessing all the different harddrives/network cards and also is very very weak in auto-detection of hardware.If it cannot detect your hardrive obviously it cannot clone it.Since it is bit-by-bit copy of the harddrive the image is a little bigger then other alternatives and it is slower also , but this can be overcome to some extent.
- Alternative 2 : g4l bootable ISO
- Pros - Lightweight can fit on a small USB drive or on a mini-CD disc.Hard Drive to be cloned can hold any type of filesystem including ntfs/fat etc.Since it is a bit by bit copy it does not matter what OS/filesystem is on the hard drive.
- Cons - Hardware/Network card detection is very weak compared to Knoppix.If it cannot detect your hardrive obviously it cannot clone it.Since it is bit-by-bit copy of the harddrive the image is a little bigger then other alternatives and it is slower also , but this can be overcome to some extent.
- Alternative 3 : Partimage
- Pros - Works on partitions as opposed to entire drives.So the image created by partimage of the partition is smaller as it is intimately aware about the filesystem on the partition.
- Cons - Ironically the Pros of partimage are its Cons also because it cannot create an image of filesystems it which it does not support.You will be responsible for manually creating partition tables / MBR etc.Currently it does not work on LVM.
Using G4L along with Knoppix solves one of its important shortcomings of auto-hardware detection.Knoppix is one of the best live-CD's with a very very good automatic hardware detection.
Another advantage of using it with Knoppix is that a lot of folks already have Knoppix CD/DVD which they use as their swiss knife and this script fits very well in the arsenal without having to install anything.
How-to use G4L with Knoppix
Here is a list of software which you will need
- Knoppix live CD or DVD : Download the ISO from http://knoppix.net/get.php
- Download source code(it is just shell script) of g4l from http://sourceforge.net/projects/g4l/
- Boot with knoppix CD on the machine which has the hard drive to be cloned/backed up/restored
- On the command prompt of knoppix do "su"
- Goto to the /tmp folder by typing "cd /tmp" as root
- Make a directory named g4l by typing in "mkdir g4l"
- Download g4l sources from sourceforge.net using wget into
the g4l directory created in step 4> like "wget http://easynews.dl.sourceforge.net/sourceforge/g4l/files3.tar.gz"
- In step 4> I have used the v0.21 as the source , you can use whichever is the latest version.
- Untar the files by issuing the following command "tar -zxvf
files3.tar.gz" into the /tmp/g4l folder
- Now add the path of jetcat-mod to the path variable by typing "export PATH=$PATH:/tmp/g4l/"
- Now go back to the folder which has the g4l scripts by typing "cd /tmp/g4l/"
- Now you are ready to run the g4l scripts , so just type in ./g4l.
- Now you are all set and if everything goes well you can start cloning hard drives and use the functionality of G4L in knoppix.
- Since g4l is a bit by bit copier of hard drives , in order to achieve better compression it is highly recommended that you follow the steps on http://fbim.fh-regensburg.de/~feyrer/g4u/#shrinkimg otherwise the image creation will be very slow and the files will be very very big.
Other Notes
- You can copy the g4l scripts(just the scripts from the g4l/bootcd/rootfs/ ) and the jetcat executable to a usb stick and then just plop in the usb stick along with knoppix CD and then you dont have to download the files again
- Since g4l needs ftp server you can always use the ftp server which comes with knoppix.The docs are locaed here http://knoppix.net/wiki/FTP_FAQ
- Once you have a local ftp server setup on knoppix you can also use a secondary hard drive to clone to the second hard drive which has a different geometry.Currently I do not know of a way in g4l to write the cloned image to a file.
- If future versions of knoppix carry the G4L scripts and the jetcat executable , it will become very very easy.
- The above instructions might also work for other Live-CD's as long as ncftp is already there on the lice-cd.
Other Alternatives
- I have moved to Truecrypt, you can read my review at Truecrypt Files on an encrypted Filesystem
- Wonders of 'dd' and 'netcat': Cloning OS harddrives
- WikiStartEn - Linbox Rescue Server - Trac
- Clonezilla
posted at: 15:44 | category: /linux | permanent link to this entry
Thu, 26 Jun 2008
KWORLD ATSC 340U Dongle HDTV USB Stick ATSC/ClearQAM AC3 Output - Retail
I bought this tuner from newegg when it was on sale for $35.
I have basic cable from comcast and I was able to pickup local channels in HD(clearQAM).
The video quality is good and overall im pretty happy with this tuner
Buying a USB extension cable for this tuner is an absolute must as otherwise it keeps on disconnecting at the slightest move and sometimes it feels like it will break also.
One thing to remmeber though this tuner will not work with encrypted channels like ESPN etc .FCC mandates that cable comapnies to carry unencrypted channels which are transmitted over the air , and with this tuner you can only see those channels.
N.B. I have read on many forums that KWorld is very bad as far as rebates and most of the people have not got their rebates.I don't have any first hand experience on this .
I have basic cable from comcast and I was able to pickup local channels in HD(clearQAM).
The video quality is good and overall im pretty happy with this tuner
Buying a USB extension cable for this tuner is an absolute must as otherwise it keeps on disconnecting at the slightest move and sometimes it feels like it will break also.
One thing to remmeber though this tuner will not work with encrypted channels like ESPN etc .FCC mandates that cable comapnies to carry unencrypted channels which are transmitted over the air , and with this tuner you can only see those channels.
N.B. I have read on many forums that KWorld is very bad as far as rebates and most of the people have not got their rebates.I don't have any first hand experience on this .
posted at: 00:15 | category: /reviews | permanent link to this entry
Mon, 16 Jun 2008
Leaders Need a work life balance
I came across a very nice article about work-life balance in this 24x7 , always on , culture.
I don't know about others but in general I have seen an increasing demand from employers to be working in a 24x7 mode.The problem becomes more complex when your immediate team members or reports are distibuted in 3-4 timezones.
The problem becomes more complex for white collar jobs , who are considered as "exempt" and expected to work 24x7 without getting overtime pay etc.There is a nice Slashdot article about it .
And in this internet connected world it is very hard to draw a line between work and life.
We will see how future will shape up , my current belief is that we will be moving to a per hour basis, but time will tell.
I don't know about others but in general I have seen an increasing demand from employers to be working in a 24x7 mode.The problem becomes more complex when your immediate team members or reports are distibuted in 3-4 timezones.
The problem becomes more complex for white collar jobs , who are considered as "exempt" and expected to work 24x7 without getting overtime pay etc.There is a nice Slashdot article about it .
And in this internet connected world it is very hard to draw a line between work and life.
We will see how future will shape up , my current belief is that we will be moving to a per hour basis, but time will tell.
posted at: 03:00 | category: /worklifebalance | permanent link to this entry
Sat, 14 Jun 2008
Friend of a Friend(FOAF)
Recently I wanted to check out the semantic web concept as I strongly believe that over the next couple of years we will be moving to semantic web as that seems to be a natural progression of loosely coded html and data scattered in various formats like text/html etc.
Anyways , FOAF is a nice concept similar to various other YASN(yet another Social Network) like myspace/linkedin etc the only think is that it is open in the sense that there is no company behind it who can lock your data.
I created a FOAF file describing myself and it is located at My FOAF.To read this you can use a FOAF explorer
You can read more about semantic web at http://semanticweb.org or more about FOAF at http://www.foaf-project.org/
There is a nice addon for firefox for semantic web it is called Semantic Radar
Anyways , FOAF is a nice concept similar to various other YASN(yet another Social Network) like myspace/linkedin etc the only think is that it is open in the sense that there is no company behind it who can lock your data.
I created a FOAF file describing myself and it is located at My FOAF.To read this you can use a FOAF explorer
You can read more about semantic web at http://semanticweb.org or more about FOAF at http://www.foaf-project.org/
There is a nice addon for firefox for semantic web it is called Semantic Radar
posted at: 04:31 | category: /cuttingedge | permanent link to this entry
Fri, 13 Jun 2008
Bitzi Involvement
I created a society for Free software a couple of years ago on bitzi, you can see the file collection at http://bitzi.com/society/FLOSS_Free_Libre_Open_Source_Software
So what I do is whenever I download any free/open source software etc I add the magnet/e2dk (kind of fingerprint of the file) so that when other people who download via p2p networks are sure that the contents are good.
So what I do is whenever I download any free/open source software etc I add the magnet/e2dk (kind of fingerprint of the file) so that when other people who download via p2p networks are sure that the contents are good.
posted at: 17:21 | category: /worklog | permanent link to this entry




