LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-27-2021, 04:42 PM   #1
waljoh
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Rep: Reputation: Disabled
Using mtftar to open and convert .bkf files created by ntbackup to tar format


I am trying to open some old backup files created under Windows using ntbackup.exe

I have tried running ntbackup under wine, and ntbackup under Windows 10, both without success as the .dll files necessary are undefined, and seemingly incompatible.

There is a utility mtftar that will convert a .bkf file to a tar format. I am not having much luck with that.

I am running Linux Mint Cinnamon.

Downloading from github : https://github.com/geocar/mtftar and changing the include in tar.c to include <openssl/md5.h> I get the following:

/mtftar_master$ make
cc -Doff64_t=__off64_t -c -o tarout.o tarout.c
tarout.c: In function ‘tarout_md5’:
tarout.c:59:2: error: unknown type name ‘md5_state_t’
59 | md5_state_t state;
| ^~~~~~~~~~~
tarout.c:60:2: error: unknown type name ‘md5_byte_t’
60 | md5_byte_t digest[16];
| ^~~~~~~~~~
tarout.c:61:2: warning: implicit declaration of function ‘md5_init’ [-Wimplicit-function-declaration]
61 | md5_init(&state);
| ^~~~~~~~
tarout.c:62:2: warning: implicit declaration of function ‘md5_append’ [-Wimplicit-function-declaration]
62 | md5_append(&state, (const md5_byte_t *)tf->filename, strlen(tf->filename));
| ^~~~~~~~~~
tarout.c:62:28: error: unknown type name ‘md5_byte_t’
62 | md5_append(&state, (const md5_byte_t *)tf->filename, strlen(tf->filename));
| ^~~~~~~~~~
tarout.c:63:2: warning: implicit declaration of function ‘md5_finish’ [-Wimplicit-function-declaration]
63 | md5_finish(&state, digest);
| ^~~~~~~~~~
make: *** [<builtin>: tarout.o] Error 1

My knowledge of C is not up to interpreting the errors/warnings.

Any clues as to the way forward?
 
Old 10-27-2021, 05:06 PM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Have you tried to build with the bundled md5?
 
1 members found this post helpful.
Old 10-28-2021, 03:50 AM   #3
waljoh
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks Shruggy..

I missed the obvious, having downloaded the sources. md5 here is XML and linked to another place, and I missed it.

It compiled ok, but here I hit another brick wall of ignorance.. make install is failing, and using checkinstall I get this:


This package will be built according to these values:

0 - Maintainer: [ john@fuga7 ]
1 - Summary: [ mtf utility ]
2 - Name: [ mtftar ]
3 - Version: [ 20211028 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ mtftar ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Recommends: [ ]
12 - Suggests: [ ]
13 - Provides: [ mtftar ]
14 - Conflicts: [ ]
15 - Replaces: [ ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
make: *** No rule to make target 'install'. Stop.

**** Installation failed. Aborting package creation.

Cleaning up...OK

Bye.
 
Old 10-28-2021, 05:35 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Well, there's no target 'install' in the Makefile. Not every makefile has it. This one just builds the binary, mtftar. You can copy that file to ~/bin or to /usr/local/bin or wherever you like. Or just run it as ./mtftar.
 
Old 10-28-2021, 01:03 PM   #5
waljoh
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi again Shruggy,

Thanks for that. Sorry to be so thick.

I had tried executing directly, but without the ./ .. but I imagined there was more to install than putting it in somewhere accessible. I can find my way around most run of the mill admin stuff but the processes involved in retrieving and compiling stuff are not familiar ground. I think my last exercise was getting OpenHantek - pc based oscilloscope - going, and that was a couple of years ago.

I have developed an engine monitoring application for a boat on Arduino, but the menu driven development environment spoils you.

Anyway, I now have my missing photos from 2004 safely in a tar file, for which I am very grateful, and no thanks to Microsoft!

I started working with minicomputers in 1971 (mainly assembler).. Apple 2 Pascal in 1981.. Databasic in 1993 ProIV in 1994 and escaped to the sea in 2003..

Cheers, John
 
Old 10-28-2021, 01:04 PM   #6
waljoh
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
xxx

Last edited by waljoh; 10-28-2021 at 01:08 PM. Reason: Duplication
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
Is there a linux program that will open MS .bkf files? ice2921 Linux - Software 4 01-04-2012 12:48 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
reading NTBackup tapes in Linux PeterM Linux - Software 2 09-14-2005 01:19 PM
How do I un tar a .tar, .tar.z, .tar.gz file vofkid Linux - Newbie 4 03-15-2002 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration