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

why you are using nis server

2 Answers  


How to trace any process background processing?

5 Answers  


what is NIS Server...?

2 Answers   IBM,


1 which file contains information about os wether it's 32 bit or 64 bit os 2 difference between logical block and physical block?? 3 what is the size of logical block and physical block?? 4 daemon for nfs on client end as well as server end??? 5 how to confirm from client end about nfs server sharing?? 6 what contains information about file and directory creating time or modification time??

4 Answers   Oracle,


how to recollect root password

3 Answers   Google,






in linux gui desktop icon was lost how con u back this icons

2 Answers  


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  


what is the use of runlevel 4 in redhat linux? in which cases it will use.

1 Answers  


How find out drivers of installed devices in linux (RHEL)?

2 Answers  


i want to install XP on RHEL5 with virtualization tell me step by step configuration

1 Answers  


What are RPM?s, what do they offer?

2 Answers  


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

2 Answers   Yahoo,


Categories