Thursday, February 28, 2008

Install Linux from iso image without buring on CD

It's a very obvious practice to burn the downloaded iso images of linux (in general sense any operating systems) prior to the installation to an optical removable media (CD/DVD). However, for a change we will see how we can install a new linux distribution from an existing linux distribution and without making any copies of iso image of the operating system on a CD/DVD.

There are some pre-requisites for this task, which are as follow:
- A preinstalled linux distribution with superuser rights
- The GRUB bootloader- A Pre-downloaded Linux iso image (we will be installing zenwalk linux which can be downaloded from http://www.zenwalk.org/modules/tinycontent/index.php?id=1)
- Free disk space to install the new linux distribution from the iso image
Now folllow the below mentioned steps:
-> Start your existing linux distribution
-> Copy the zenwalk iso in your home folder say /root/home
-> Execute the following commands :
#su
#mkdir -v /mnt/zenwalk
#mount -o loop /root/home/zenwalk-x.x.iso /mnt/zenwalk
#mkdir -v /boot/zen_iso
#cp /mnt/zenwalk/isolinux/*.* /boot/zen_iso

-> Now fire up your favourite text editor, open /boot/grub/menu.lst for edititing and paste the following lines at the end:
title Install Zenwalk
root (hd0,x)
kernel /zen_iso/vmlinuz-2.6.xx.x root=/dev/hdax+1 ramdisk_size=100000 init=/etc/init lang=us fromhd=/dev/null bootfrom=/dev/hdax+1/root/home/zenwalk.x.x.iso
initrd /zen_iso/initrd.splash
-> Now save your work, you have edited your GRUB so that it will take you to the Zenwalk kernel
-> Reboot your system and select 'Install Zenwalk' option
-> This will start your Zenwalk kernel
-> Escape from installation menu
-> Mount your existing linux partition somewhere at /mnt/linux by the following command:
#mkdir -v /mylinux
#mount /dev/hdx+1 /mylinux

-> Mount the Zenwalk iso image from this partition as given below:
#mkdir -v /zw_install
#mount -o loop /mylinux/root/home/zenwalk-x.x.iso /zw_install
-> Restart the Zenwalk installation program by the following command
#setup
-> Follow the on screen instruction for partitioning etc.
-> Specify the 'other' location to be /zw_install
-> Proceed to the installtion process
This should install the Zenwalk without burning it to a DVD/CD!Note: To determine your linux partition you may use lvmdisscan grep "hda" command

Saturday, January 26, 2008

Easiest Way Finding PI

Once again we have decided to play with the mysterious ∏. However, this time rather than just merely talk about this mysterious figure we will be implementing a simple algorithm to find an approximate value of the same. The said method as follows:
  • Inscribe a circle in a square
  • Randomly generate points in the square
  • Determine the number of points in the square that are also in the circle
  • Let n be the number of points in the circle divided by the number of points in the square
  • PI ~ 4 n
  • Note that the more points generated, the better the approximation

A simple C program for the same may be downloaded from here:http://equinox-northeast.110mb.com/xus/pi.c

kindly send your feedbacks and bug reports on xitij1983@rediffmail.com

Sunday, December 23, 2007

Recover the Linux Boot Loader (Grub)

Most of the Linux users who are using multiple operating systems installations in a single hard drive. Many of them (Especially those of Microsoft's) have to encounter the erasure and re-writing of MBR (Master Boot Record) after re-installing or fresh installing Windows after Linux. This situation is very frustating as despite the Linux partition being intact, one has to reinstall the Linux distribution everytime after installation of Windows.
By issuing the below commands, one can retrieve his/her previous Grub Bootloader screen in 6 easy steps.
Prerequisites:
  • You need a bootable Linux CD (Preferably a live CD)
  • Please note that the Linux partiton for which you are going to recover the MBR should be installed on an un-encrypted filesystem
Stpes:
  • Boot with the bootable linux CD
  • Invoke the shell
  • Give the following commands
  • # grub (This will drop you on the grub prompt)
  • grub>geomettry (hd0) (Your Primary Hard Drive. Determine the Linux Partition number say "n")
  • grub>root (hd0,n) ("n" is your linux partition searched by the previous command)
  • grub>setup (hd0,n)/boot/grub/menu.lst
  • quit

Voila!!.... just restart your computer and find your previous MBR restored!!

Sunday, December 16, 2007

All new Top500 along with one at India in Top5

The latest Top500 list was rejuvinated with a never before 478.2 TFop/s delivered by as ususal much discussed the BlueGene/L System, (a joint development of IBM and the Department of Energy's (DOE) National Nuclear Security Administration (NNSA) and installed at DOE's Lawrence Livermore National Laboratory in Livermore, the United States) breaking its own record of 280.6 TFop/s. There were many new players seen sucha as for the first time ever, India placed a system in the Top 10. The Computational Research Laboratories, a wholly owned subsidiary of Tata Sons Ltd. in Pune, India, installed a Hewlett-Packard Cluster Platform 3000 BL460c system. achieved 117.9 TFlop/s performance.
The Top5 list as follows:
United States
Germany

3 SGI/New Mexico Computing SGI Altix ICE 8200, Xeon quad SGI
Applications Center (NMCAC)
United States
TATA SONS
India
Sweden
For more results please visit: http://top500.org/lists/2007/11

Friday, June 29, 2007

2007's first Top500 list is out leaded by BlueGene!

As I disclosed in my one later post dated Sunday, May 20, 2007 I am posting a yet another post on fastest supercomputer of the world. The list was published during at the International Supercomputing Conference (ISC ’07) in Dresden, Germany (http://www.supercomp.de) on June 27, 2007. Who else it can be other than BlueGene??


Yes, IBM BlueGene (http://top500.org/system/7747) installed at Lawrance Livermore National Laboratories, US (http://www.llnl.gov) topped on the list for the consequent forth time since its commissioning by delivering a stunning and steady 280.6 Teraflops! (Trillions of computations per second). In addition there were two other Supers which crossed the 100 Tflop mark -- the upgraded Cray XT4/XT3 at Oak Ridge National Laboratory, ranked No. 2 with a benchmark performance of 101.7 TFlops and Sandia National Laboratory’s Cray Red Storm system, which ranked third at 101.4 TFlops.

Sunday, June 17, 2007

The unending π game

3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
This unending figure has always attracted philosphers, mathematicians, scientists, engineers and programmers ever since last 4 Millenia. A few intersting links of the efforts made by them are listed as below. Any addenda to the same are always welcome.
  1. A very good history of these efforts : http://www.codehappy.net/pi.htm
  2. An illustrative collection of different methods for calculating this magic figure: http://documents.wolfram.com/v5/Demos/Notebooks/CalculatingPi.html
  3. Algortihms and code to achieve π (PI) for mathamatics and computer science experts: http://www.cygnus-software.com/misc/pidigits.htm
  4. An incradible PI search page to find digits upto 200 million PI digits: http://www.angio.net/pi/piquery
  5. Collection of PI formula applied by various people: http://www.colab.sfu.ca/PiDay/3_14/PiTOC.html
  6. A nice collection of binaries as well as sources programs for PI: http://myownlittleworld.com/miscellaneous/computers/pilargetable.html

Friday, June 1, 2007

Fedora 7 is released excluding the "Core"!!

After almost 24 months of continuous development and 6 concurrent core releases, Red Hat supported the Fedora was finally released as Fedora 7 alone excluding the core factor and combining the core and extras on May 31, 2007 (Just Yesterday!). It is considered to be the most stable version amongst its previous variants packed with varios features including various Spins, increased start-up and shut-down speed, secured wireless, support for encrypted FS, beautiful themes and many more to be found at http://fedoraproject.org/wiki/Releases/7/Features%3A?action=show.
In total F7 must be provided a few GB of space in your hard drive! (Now even live CD and a small bootable iso image is also available). So grab it now from here: http://fedoraproject.org/get-fedora.html

Google Search