Wednesday, May 18, 2011

Recover files using ubuntu live cd

Once Ubuntu live cd boots up, open a terminal by clicking Applications in the top left of the screen, and then selecting Accessories > Terminal.



To undelete our files, we first need to identify the hard drive that we want to undelete from. In the terminal window, type in:



sudo fdisk –l



and press enter.



What you’re looking for is a line that ends with HPSF/NTFS (under the heading System). In our case, the device is “/dev/sda1”. This may be slightly different for you, but it will still begin with /dev/. Note this device name.



If you have more than one hard drive partition formatted as NTFS, then you may be able to identify the correct partition by the size.If your hard drives are of different size, then this information can help you track down the right device name to use. Alternatively, you can just try them all, though this can be time consuming for large hard drives.



Now that you know the name Ubuntu has assigned to your hard drive, we’ll scan it to see what files we can uncover.



In the terminal window, type:



sudo ntfsundelete



and hit enter. for example:



sudo ntfsundelete /dev/sda1



The names of files that can recovered show up in the far right column. The percentage in the third column tells us how much of that file can be recovered.





Note: ntfsundelete is immediately available in the Ubuntu 9.10 Live CD. If you are in a different version of Ubuntu, or for some other reason get an error when trying to use ntfsundelete, you can install it by entering “sudo apt-get install ntfsprogs” in a terminal window.



To quickly recover the two JPGs, we will use the * wildcard to recover all of the files that end with .jpg.



In the terminal window, enter



sudo ntfsundelete –u –m *.jpg



which is, in our case,



sudo ntfsundelete /dev/sda1 –u –m *.jpg




The files are recovered from the NTFS hard drive and saved in the current working directory of the terminal. By default, this is the home directory of the current user, though we are working in the Desktop folder.



Note that the ntfsundelete program does not make any changes to the original NTFS hard drive. If you want to take those files and put them back in the NTFS hard drive, you will have to move them there after they are undeleted with ntfsundelete. Of course, you can also put them on your flash drive or open Firefox and email them to yourself – the sky’s the limit!



We have one more file to undelete – our MPG.




Note the first column on the far left. It contains a number, its Inode. Think of this as the file’s unique identifier. Note this number.



To undelete a file by its Inode, enter the following in the terminal:



sudo ntfsundelete –u –i



In our case, this is:



sudo ntfsundelete /dev/sda1 –u –i 14159




This recovers the file, along with an identifier that we don’t really care about



However, Ubuntu lets us know visually that we can’t use these files yet. That’s because the ntfsundelete program saves the files as the “root” user, not the “ubuntu” user.



We can verify this by typing the following in our terminal window:



ls –l




We want these three files to be owned by ubuntu, not root. To do this, enter the following in the terminal window:



sudo chown ubuntu



If the current folder has other files in it, you may not want to change their owner to ubuntu. However, in our case, we only have these three files in this folder, so we will use the * wildcard to change the owner of all three files.



sudo chown ubuntu *



The files will now look normal, and we can do whatever we want with them.



Sourav Bhattacharya
Kolkata

Sunday, May 8, 2011

The Last House on the Left (2009)

sourav,technology

The Last House on the Left (2009):If bad people hurt someone you love, how far would you go to hurt them back?

IMDB Rating 6.6/10

After kidnapping and brutally assaulting two young women, a gang led by a prison escapee unknowingly finds refuge at a vacation home belonging the parents of one of the victims -- a mother and father who devise an increasingly gruesome series of revenge tactics.

Sourav Bhattacharya
Kolkata

The Machinist (2004)

Sourav Bhattacharya,IT Expert

The Machinist (2004):How do you wake up from a nightmare, when you're not asleep?

IMDB Rating 7.8/10

An industrial worker who hasn't slept in a year begins to doubt his own sanity.

Sourav Bhattacharya
Kolkata 

The Killing Room (2009)

sourav,Kolkata,Networking,IT


The Killing Room (2009):Once you're in, there's no way out

IMDB Rating 5.7/10

Four individuals sign up for a psychological research study only to discover that they are now subjects of a brutal, classified government program.

Sourav Bhattacharya
Kolkata

Carriers (2009)

Sourav,kolkata,System Administrator

Carriers (2009)

IMDB Rating 6.2/10

Four friends fleeing a viral pandemic soon learn they are more dangerous than any virus.

Sourav Bhattacharya
Kolkata

Eden Lake (2008)

Sourav Bhattacharya,System Administrator,3 Years Experienced,Kolkata

Eden Lake (2008):A weekend by the lake, with views to die for.

IMDB Rating 6.9/10


Refusing to let anything spoil their romantic weekend break, a young couple confront a gang of loutish youths with terrifyingly brutal consequences.

Sourav Bhattacharya
Kolkata