Saturday, November 7, 2009

Recover EXT3 Partitions and Data - Ubuntu Linux.

Note : Please use this option only as final option for recovering data from Corrupted ext3 partitions. In my case, I recovered all files and folders from a corrupted ext3 partition, in which Madriva 2007 was installed. I used my ASUS eeePC with Ubuntu 9.10 (Karmic Koala) version, for this. The Hard disk was connected to eeePC through USB cable.

Steps :

1. Connect the corrupted HardDisk to your Laptop using USB cable.
2. Boot your computer with UBUNTU (preferably).
3. Make sure that Harddisk is unmounted (usually you can not mount a corrupted partitioned Harddisk).
4. Open a "Terminal" type the following command and press ENTER.

/sbin/fsck.ext3 -b 57345 /dev/sdc7

Where /dev/sdc7 was the partition to be recovered. Use "Sudo" as prefix for the above command if you get messages such as " Permission denied".

5. The above command will recover partition and will prompt for "yes". (In my case, I gave "y" to all prompts). After the execution of this command, e2fsck starts automatically.

6. Finally you will find that all files and directories are recoverd in the partition. You may check by mounting the partition and browsing.

Note : When I was usig the command I recovered A-Z files and folders as it was. But due to my mistake, I run the command once again on the recoverd partition. Finally I left with only single folder named "lost+found". I browsed the folder to see my lost files and folders and it was stored in several sub-folders. One example is, My Desktop folder was found in ""#76511" folder. When I tried to copy the folder to other folder, I could not copy the files / folders and I was getting error message that the "file or folder" does not exist. Then I used "kget" command to copy the files and folders to other folders. (i.e. Right click on files and goto "Download with kget" option and then chose the Destination folder, wher the files and folders to be copied). Please note that "kget" can be used only for files and not for folders. Hence you need to create folders manually, wherever needed.

Reference : An article on Net + My effort.

Thursday, November 5, 2009

A Solution - Broken Downloads in Ubuntu Linux.


Suppose you are downloading a file from Internet using your web browser (Mozilla Firefox). Suddenly, Internet gets disconnected. At that moment you have no choice but to re-download, usually. Because, if you select "retry" option, download starts from the beginning and you will lose all the partial data that you have downloaded. I found a solution for this, which helps to continue the downloads from the point where it got disconnected previously.

1. Open a "Terminal" window / "Konsole" window.
2. Change directory to the Download directory. e.g. If you are downloading to a folder "/home/v", then type the command cd /home/v.
3. Then type the following command to continue downloading,

wget -c

Where, is the Download link for the file example.deb which need to be downloaded.
-c option enables you to continue downloads.

Please note that you can get Download Link of the file in Downloads section of your browser, you can just right click on the broken download file and copy the link location.

(Note :
1. Another option is to use wget command alone in order to download bigger files.
2. Usually broken download creats a file named "example.deb.part".
3. I took help from Nanda N, KarMic for this, thanks to her.

Install NGSPICE & MAGIC - VLSI Tools for Ubuntu OS.

         Installation of VLSI design tools such as "ngspice" and "magic" is fairely easy in Ubuntu Linux OS. The simple steps are given below. Please note that Ubuntu uses "debian" packages.

Steps :

1. Go to the below sites and download the packages.




Note : XSPICE is a dependent package for NGSPICE.

2. Install packages using following command.

$ dpkg -i magic_7.5.129-1_i386.deb

$ dpkg -i xspice_17.0.0-1_i386.deb ngspice_17.0.0-1_i386.deb

Note: You can not install "xspice" & "ngspice" independently. You need to install both at a time.

Happy Designing....

Note : I took help from Mr. Prassana Kalyan, KarMic for this. Thanks to him.

Wednesday, November 4, 2009

Useful Packages Available in Ubuntu.

        I have tried to List some of the Packages that are really helpful. These packages all come with Ubuntu Linux.

gparted - Partition Manager.
ubuntu-rescue-remix - Data Recovery Tool
brasero - CD burner tool. - Presently 3.2 version has lot more features when we talk about MailMerge, Conditional Formatting and Total Number of Cells available.
otrs2 - Open Ticket Request System software.
xsane - Scanner Software.
Gimp - Graphical Editor which is almost same as Photoshop.
usb-creator - Usb Startup disk creator software.
Image-Writer - Write .img images on disks.
synaptic - Package manager software tool.
Apache2 - Web Server.
Squirrelmail - webmail server software.
mplayer - Movie Player
totem - Audio Player.
firefox - Webbrowser
evolution - email client (same as thunderbird).
gedit - Test editor for gnome
gdm - Gnome Display manager.