Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I need help and your expertise on XFS. We have accidentally deleted some important files from our SGI XFS system and fortunately we done have backup for the files. Is there any luck that we can still undelete the deleted file on XFS.
I have checked thru a few website but unfortunately the findings are not good. I was told it is impossible to undelete a file in XFS.
Does anyone know any undelete tool that we can use ? Any suggestion would be great. Your input or ideal would be very appreciated. Thank you for sharing.
If a service might still have a handle to the files, you could use "lsof" to determine the process that is using them. I'm not certain what you mean by the "SGI". Besides Meaning Silicon Graphics, are you running Linux on an SGI machine rather than a Unix? ( You posted in Linx-General ). If that is the case, and you are using the Linux, then you have the /proc pseudo filesystem. If you haven't rebooted, and since the file is important maybe a background service still has it open. If that is the case, check: lsof | grep <filename>
Thank you for your advise. Yes, we are running Linux on SGI machine.Some of the deleted files are very old files that I afraid no background service still has it open. Any chances to recover them ? we havent reboot the server.
Sorry, I'm not familiar with the XFS filesystem. For text files, you can use grep or a similar tool to try to locate the file on the device itself. Having located where the file is you can use the dd command with an offset to copy the file. This type of thing is often done from an image of the drive. You might also try looking at the info or man page for the "fine" command. Some files have particular "magic numbers" which could be used to locate the file. The patterns that "file" uses are listed in /usr/share/misc/magic.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.