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 are the different types of Backups..?

6 Answers   IBM, SDG,


how do you configure linux system as a router?

4 Answers   HCL,


how do i check which package has installed some command suppose ls , mkdir or whatever ???

8 Answers  


How to load the old kernel without rebooting server

1 Answers  


How to apply patch for multiple servers .

1 Answers   IBM,






what is the gate of ftp server in redhat linux?

0 Answers  


I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers

0 Answers  


What is the minimum number of partitions you need to install Linux?

30 Answers  


What are the differences between FTP , NFS , SAMBA servers explain separately.

0 Answers  


How is the difference between ftp and sftp ? and explain how to create ftp server and sftp server with example ?

2 Answers   Bank Of America, IBM,


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,


When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?

4 Answers   IBM,


Categories