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

Who owns the data dictionary?

2 Answers  


Tell me command which is use for create quota database in Linux.

7 Answers   Wipro,


How to recover a deleted file in linux ?

5 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,


What is Hard mount and soft Mount?

0 Answers   Cap Gemini,






User unable to login in server then how can u troubleshooting it? Example: server at Bangalore. in that server two users try to login in server. 1st user able to login. but second user unable to login so how can troubleshoot it ?

5 Answers   Oracle,


rpm package installation error in centos 6.4 [root@localhost packages6.4]# rpm -ivh nfs-utils-1.2.3-36.el6.i686.rpm warning: nfs-utils-1.2.3-36.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: keyutils >= 1.4-4 is needed by nfs-utils-1:1.2.3-36.el6.i686 libevent is needed by nfs-utils-1:1.2.3-36.el6.i686 libevent-1.4.so.2 is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue.so.1 is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue.so.1(libgssapi_CITI_2) is needed by nfs-utils-1:1.2.3-36.el6.i686 libnfsidmap.so.0 is needed by nfs-utils-1:1.2.3-36.el6.i686 libtirpc is needed by nfs-utils-1:1.2.3-36.el6.i686 libtirpc.so.1 is needed by nfs-utils-1:1.2.3-36.el6.i686 nfs-utils-lib >= 1.1.0-3 is needed by nfs-utils-1:1.2.3-36.el6.i686 rpcbind is needed by nfs-utils-1:1.2.3-36.el6.i686

1 Answers  


i installed clustering packages.When i try to run it getting LUCI error...what is it..??

0 Answers  


what is the difference between semaphore, mutex & spinlock?????

1 Answers   Patni,


why /etc/shadow file do not have any permission ?

0 Answers   IBM,


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

1 Answers  


how to install linux OS? pls send step by step

3 Answers  


Categories