Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I'm running centos 6 on a vps and I deleted a very important folder containing a website. So I tried foremost but the program isn't finding a single thing. From what I gather I need to specify the partition to search on. If I run cat /proc/partitions I get nothing. so I did df-h and that shows:
I know the partition I need is is /dev/simfs. I managed to install foremost-1.5.7-1.el6.rf.x86_64 and ran it but this is the output I get:
Quote:
[root@vps ~]# foremost -a -t jpg,html -i /dev/simfs -v
Foremost version 1.5.7 by Jesse Kornblum, Kris Kendall, and Nick Mikus
Audit File
Foremost started at Fri Nov 6 09:28:56 2020
Invocation: foremost -a -t jpg,html -i /dev/simfs -v
Output directory: /root/output
Configuration file: /usr/local/etc/foremost.conf
Processing: stdin
|------------------------------------------------------------------
File: stdin
Start: Fri Nov 6 09:28:56 2020
Length: Unknown
Num Name (bs=512) Size File Offset Comment
the program just sits there doing nothing. there's a ton of stuff i just deleted (along with the folder I shouldn't have deleted) so it should be finding lots of things. thanks for any help.
thanks but I can't make a disk copy, this is a vps.
I don't see how compiling from source would help, if I have the program I have the program.
is my command wrong in some way?
I don't get this. why does the program just sit there and not do anything?
thanks but I can't make a disk copy, this is a vps.
I don't see how compiling from source would help, if I have the program I have the program.
is my command wrong in some way?
I don't get this. why does the program just sit there and not do anything?
Compiling from source enables you to switch on debug output.
my command does say /dev/simfs
I am running as root
foremost -t jpg -i /dev/simfs doesn't do anything. the cursor just drops to the next line and sits there doing nothing.
thanks for your input here.
the cursor just drops to the next line and sits there doing nothing.
It isn't doing nothing, it's waiting for input from stdin - as identified by the lines "Processing: stdin" and "File: stdin" in the output you posted in post #1.
In post #4 descendant_command quoted the relevant part of the manual to explain this behaviour:
Quote:
-i file
The file is used as the input file. If no input file is specified or the input file cannot be read then stdin is used.
Enabling debug mode may well tell you why Foremost cannot read the file.
As per post #3, if you compile with DEBUG flag, you will enable over a hundred "ifdef DEBUG" blocks in the Foremost source code, which will enable things like:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.