Skip to main content

Posts

Showing posts with the label recover

Recover deleted files in linux using Photorec easily

PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (thus, its 'Photo Recovery' name) from digital camera memory. PhotoRec ignores the filesystem and goes after the underlying data, so it will still work even if your media's filesystem has been severely damaged or re-formatted. For more safety, PhotoRec uses read-only access to handle the drive or memory support you are about to recover lost data from. Important: As soon as a pic or file is accidentally deleted, or you discover any missing, do NOT save any more pics or files to that memory device or hard disk drive; otherwise you may overwrite your lost data. This means that even using PhotoRec, you must not choose to write the recovered files to the same partition they were stored on. FAT, NTFS, ext2/ext3/ext4 filesystems store files in data blocks (also called clusters under Windows). The cluster or block size remains at...

Recover your Linux Root Password

Just follow the below steps to recover it. 1. Reboot your system and at the GRUB press "e" . Edit the first line and make sure it says "linux single". Then press "b" to boot the new entry line. 2. You will now have access to a BASH prompt. Enter the following commands: cd /etc nano passwd and look for a line somewhere at the top of the file that looks like this: root:x:0:0:root:/root:/bin/bash You must remove the "x" from that line so it will look like this: root::0:0:root:/root:/bin/bash And save the file. 3. Run the following command: nano shadow Edit the first line in the shadow file by removing the encrypted password. The line must now look exactly like this: root:::: Now save the file. 4. Reboot the system and log in as a normal user, then set your new root password using the following commands: $ sudo su $ passwd courtesy: http://www.geekinterview.com/talk/15727-linux-tips-recover-u-r-root.html

Restore grub boot loader

I installed ubuntu and then vista, i found that my ubuntu grub was lost.. I followed these steps to "restore" the " grub boot loader" of ubuntu. Here are the steps 1. Boot from the ubuntu Live CD. 2. Now open a terminal from Applications -> Accessories -> Terminal. 3. Now you need to start grub as root $ sudo grub Following was the output for me [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub> 5. Now find the disk location of your ubuntu installation grub> find /boot/grub/stage1 i got it as (hda0,2) 6. Now you will need to set the root device with the help of the above result. grub> root (hd0,2) 7. Now setup the grub grub> setup (hd0) 8. Exit grub grub> quit Now restart the system. Your ubuntu grub will be back.