How to recover a deleted file in linux ?

Answers were Sorted based on User's Feedback



How to recover a deleted file in linux ? ..

Answer / senthil

Determine the partition in which the file you wish to
recover was located by using the command pwd (present work
directory)
and unmount the current directory by using the command
umount. Use the "debugfs" command. The "debugfs" command is
used to handle most major errors and bugs that can occur in
Linux by using #debugfs /usr/directory name.Use the "lsdel"
once you have begun the debug of the file system.Recover
those files you wish to undelete and take backup of that file.

Is This Answer Correct ?    6 Yes 4 No

How to recover a deleted file in linux ? ..

Answer / sureshkumar

Photorec is data recovery tool. using this tool you can
recovery files from your hard dsik.it's running in the
console mode...

Is This Answer Correct ?    2 Yes 0 No

How to recover a deleted file in linux ? ..

Answer / nagesh.ponnapalli

single user mode
#init 1
#grep -b 'search-text' /dev/partition > file.txt
To recover text file starting with "nixCraft" word on
/dev/sda1 you can try following command:
# grep -i -a -B10 -A100 'nixCraft' /dev/sda1 > file.txt

Next use vi to see file.txt. This method is ONLY useful if
deleted file is text file. If you are using ext2 file
system, try out recover command. .

Is This Answer Correct ?    1 Yes 0 No

How to recover a deleted file in linux ? ..

Answer / prakash

Determine the partition in which the file you wish to
recover was located by using the command pwd (present work
directory)
and unmount the current directory by using the command
umount. Use the "debugfs" command. The "debugfs" command is
used to handle most major errors and bugs that can occur in
Linux by using #debugfs /usr/directory name.Use the "lsdel"
once you have begun the debug of the file system.Recover
those files you wish to undelete and take backup of that file.

Note- all the right but when my directory use to web server
and running some live domain and site then do's not umount
possible

Is This Answer Correct ?    1 Yes 0 No

How to recover a deleted file in linux ? ..

Answer / suri

Determine the partition in which the file you wish to
recover was located by using the command pwd (present work
directory)
and unmount the current directory by using the command
umount. Use the "debugfs" command. The "debugfs" command is
used to handle most major errors and bugs that can occur in
Linux by using #debugfs /usr/directory name.Use the "lsdel"
once you have begun the debug of the file system.Recover
those files you wish to undelete and take backup of that file

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More Linux AllOther Interview Questions

What is the difference between ext3 and ext4?

0 Answers   IBM,


What is the other method of installing Linux O.S other than Text, GUI mode? Why we prefer that for installation of Linux in Real time?

2 Answers  


I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????

6 Answers   IBM,


What command can you use to review boot messages?

6 Answers  


Why is it suggested to disable journalism in ext4 filesystem?

0 Answers   IBM, TCS,


How to sort a file of size 2N bytes, if I have N bytes of memory?

2 Answers   Yahoo,


am installed windows and later i installed ubuntu i want to unistall ubuntu can any one tel the procedure to uninstall ubuntu in my windows 7 please mail to me ---kiranpulsar2007@gmail.com and later i want to install ubuntu after uninstalling ubuntu tel the procedure for that also i dont know to patrition the hard disk drive please tel to them please reply

1 Answers  


1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?

0 Answers   Oracle,


what is the difference between NIS and DNS...?

5 Answers   IBM,


How to apply patch for multiple servers .

1 Answers   IBM,


My root password has been changed, how can i enter into the system without root password?

6 Answers  


What is page-in and page-out in redhat linux?

1 Answers  


Categories